:root {
  --bg-light: #F3F3F1;
  --card-light: #FFFFFF;
  --line-light: #E4E4E0;
  
  --bg-dark: #050505;
  --card-dark: #111111;
  --line-dark: #232323;
  
  --ink: #0A0A0A;
  --ink-soft: #5E5E5E;
  --on-dark: #F5F5F5;
  --on-dark-soft: #9A9A9A;
  
  --accent: #2F5BFF;
  --accent-2: #C6FF3D;
  
  --radius-card: 20px;
  --radius-pill: 999px;
  
  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html, body {
  overflow-x: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  color: var(--on-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-counter {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 5rem);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.2em;
}

.preloader-word {
  perspective: 1200px;
  display: flex;
}

.preloader-char {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* Custom Cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  /* mix-blend-mode: difference; Removed for scroll performance */
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-2);
  border-radius: 50%;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  transition: width 0.3s ease, height 0.3s ease;
}

.cursor-text {
  opacity: 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--bg-dark);
  transition: opacity 0.3s ease;
}

.cursor-ring.is-view {
  width: 70px;
  height: 70px;
  background-color: var(--accent-2);
}

.cursor-ring.is-view .cursor-text {
  opacity: 1;
}

.cursor-ring.is-link {
  width: 56px;
  height: 56px;
  background-color: transparent;
}

/* Touch devices hide cursor */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  transform-origin: 0% 50%;
  transform: scaleX(0);
  z-index: 9000;
}

/* Scroll to Top */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--accent-2);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 900;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.scroll-top-btn:hover {
  background-color: var(--accent);
  color: var(--card-light);
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* Layout & Utilities */
.desktop-only { display: none; }
@media (min-width: 992px) {
  .desktop-only { display: block; }
  nav.desktop-only, .drawer-right.desktop-only { display: flex; }
  .mobile-only { display: none; }
}
@media (max-width: 991px) {
  .desktop-only { display: none !important; }
}

/* Button */
.btn-primary {
  background-color: var(--ink);
  color: var(--card-light);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.65, 0.05, 0, 1);
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--accent);
  z-index: -1;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0.05, 0, 1);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.site-header.is-dark .btn-primary {
  background-color: var(--card-light);
  color: var(--ink);
}
.site-header.is-dark .btn-primary:hover {
  color: var(--card-light);
}
.site-header.is-dark .btn-primary::before {
  background-color: var(--accent);
}

/* Navbar */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 5000;
  padding: 0 clamp(1rem, 4vw, 3rem);
  pointer-events: none;
  transition: filter 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(243,243,241, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-pill);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: background 0.4s ease, border-color 0.4s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.site-header.is-dark .nav-container {
  background: rgba(20,20,20, 0.75);
  border: 1px solid var(--line-dark);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  background-color: var(--card-light);
  color: var(--ink);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  transition: background 0.4s ease, color 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-logo::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
}

.site-header.is-dark .nav-logo {
  background-color: var(--card-dark);
  color: var(--on-dark);
}

.site-header.is-dark .nav-logo::before {
  background: var(--on-dark);
}

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

.nav-link {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  transition: color 0.3s ease;
}

.site-header.is-dark .nav-link {
  color: var(--on-dark);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-header.is-dark .nav-link::after {
  background-color: var(--on-dark);
}

.nav-link:hover::after, .nav-link.is-active::after {
  transform: scaleX(1);
}

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

.menu-btn {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color 0.3s ease;
}

.site-header.is-dark .menu-btn {
  color: var(--on-dark);
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  pointer-events: none;
  visibility: hidden;
}

.drawer.is-open {
  pointer-events: all;
  visibility: visible;
}

.drawer-left {
  width: 65%;
  background-color: var(--bg-dark);
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: clamp(2rem, 8vw, 10vw);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Open via GSAP */
}

.drawer-right {
  width: 35%;
  background-color: #141414;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Open via GSAP */
}

@media (max-width: 991px) {
  .drawer-left {
    width: 100%;
    padding: 0 2rem;
    justify-content: center;
  }
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--on-dark);
  white-space: nowrap;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.4s ease, color 0.4s ease;
}

.drawer-link:hover {
  transform: translateX(16px);
  color: var(--accent);
}

.drawer-link-index {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--on-dark-soft);
  margin-top: 0.5em;
}

.drawer-close, .drawer-close-mobile {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--on-dark);
}

.drawer-brand {
  margin-top: auto;
  margin-bottom: 3rem;
}

.drawer-wordmark {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--on-dark);
}

.drawer-tagline {
  color: var(--on-dark-soft);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.drawer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.social-pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  color: var(--on-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.social-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(47, 91, 255, 0.2);
}

.drawer-footer {
  font-size: 0.8rem;
  color: var(--on-dark-soft);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-top {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(140px, 18vh, 180px);
  width: 100%;
}

.hero-bg-text-wrap {
  width: 100%;
  text-align: center;
  z-index: 1;
}

.hero-bg-text {
  font-size: 5vw; /* Fallback size; JS will calculate exact fit */
  width: 100%;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  justify-content: center;
  opacity: 0;
}

.hero-portrait-wrap {
  position: absolute;
  bottom: -20px; /* Let it sit just above cards */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  height: 80svh;
  max-height: 900px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-portrait {
  height: 100%;
  width: auto;
  object-fit: contain;
  transform-origin: bottom center;
}

.hero-ring {
  position: absolute;
  bottom: 10%;
  width: 60vh;
  height: 60vh;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50%;
  animation: spin 40s linear infinite;
  z-index: -1;
}

.hero-orbit-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

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

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none; 
}

.hero-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: all;
  text-align: center;
}

.hero-card {
  background-color: var(--card-light);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--line-light);
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.hero-card-left {
  max-width: 380px;
  margin-bottom: 5vh;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-card-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero-card-list {
  list-style: none;
}

.hero-card-list li {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
}

.hero-card-list li i {
  color: var(--accent);
  font-size: 0.9rem;
}

.hero-card-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 45px;
  margin-bottom: 5vh;
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.stat-divider {
  width: 100%;
  height: 1px;
  background-color: var(--line-light);
}

.floating-chip {
  position: absolute;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  background: var(--card-light);
  color: var(--ink);
  z-index: 4;
}

.chip-left {
  top: 35%;
  left: 15%;
  animation: float 3.5s ease-in-out infinite alternate;
}

.chip-right {
  top: 45%;
  right: 18%;
  animation: float 4s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-15px); }
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  margin-bottom: 1.5rem;
  transition: color 0.1s linear;
}

@media (max-width: 991px) {
  .hero-portrait-wrap {
    height: 450px;
  }
  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem; 
  }
  .hero-center-block {
    order: 1;
    margin-bottom: 1rem;
  }
  .hero-card-left {
    order: 2;
  }
  .hero-card-right {
    order: 3;
  }
  .hero-card-left, .hero-card-right {
    margin-bottom: 0;
    max-width: 100%;
    width: 100%;
  }
  .hero-card-right {
    flex-direction: row;
    justify-content: space-around;
  }
  .stat-divider {
    width: 1px;
    height: auto;
  }
  .chip-left { top: 25%; left: 5%; }
  .chip-right { top: 35%; right: 5%; }
}

@media (max-width: 575px) {
  .hero-portrait-wrap { height: 320px; }
  .hero-content { padding-top: 1rem; }
}

/* Manifesto */
.manifesto {
  padding: clamp(5rem, 12vw, 10rem) 0;
}
.manifesto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.manifesto-text {
  font-size: clamp(2rem, 5.2vw, 5rem);
  text-align: center;
  color: rgba(10,10,10, 0.16);
  line-height: 1.2;
}
.manifesto-word {
  display: inline-block;
  margin-right: 0.25em;
  color: inherit;
  transition: color 0.1s;
}

/* About */
.about {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background-color: var(--bg-light);
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  gap: clamp(3rem, 6vw, 6rem);
}

.about-col-left {
  flex: 1;
}

.about-photo-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15); /* for parallax */
}

.about-col-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.about-p strong {
  color: var(--ink);
  font-weight: 500;
}

.about-principles {
  margin-top: 2rem;
  border-top: 1px solid var(--line-light);
}

.principle-row {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-light);
}

.principle-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  margin-right: 2rem;
  width: 2rem;
}

.principle-text {
  font-size: 1.1rem;
  font-weight: 500;
}

.hire-me-btn {
  margin-top: 3rem;
  width: 110px;
  height: 110px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--card-light);
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0, 1);
  align-self: flex-start;
}

.hire-me-text-ring {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  padding: 8px;
}

.hire-me-text-ring text {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
}

.hire-me-arrow {
  font-size: 1.5rem;
  position: absolute;
  transition: transform 0.5s ease;
}

.hire-me-btn:hover {
  transform: scale(1.12);
}

.hire-me-btn:hover .hire-me-arrow {
  transform: rotate(45deg);
}

@media (max-width: 991px) {
  .about-container { flex-direction: column; }
}

/* Core Expertise */
.theme-dark {
  background-color: var(--bg-dark);
  color: var(--on-dark);
}

.expertise {
  padding: clamp(5rem, 12vw, 10rem) 0;
  position: relative;
}

.expertise-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: url("../images/noise.png");
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
}

.section-heading {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  text-align: center;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

/* LEGACY EXPERTISE 
.expertise-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.expertise-pin-area {
  display: flex;
  align-items: center;
  position: relative;
  height: 80vh;
  width: 100%;
}

.expertise-content-left {
  flex: 1;
  position: relative;
  height: 100%;
}

.expertise-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  opacity: 0;
  visibility: hidden;
}

.expertise-item.is-active {
  opacity: 1;
  visibility: visible;
}

.exp-index {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.exp-title {
  font-size: clamp(3rem, 8vw, 8rem);
  color: #8a8a8a;
  line-height: 0.9;
  margin-bottom: 2rem;
  transition: color 0.4s ease;
}

.expertise-item.is-active .exp-title {
  color: var(--on-dark);
}

.exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
}

.expertise-content-right {
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-capsule {
  width: 280px;
  height: 480px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
  background-color: var(--card-dark);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.capsule-blob {
  position: absolute;
  top: -20%; left: -20%; right: -20%; bottom: -20%;
  background: conic-gradient(from 180deg at 50% 50%, var(--accent-2) 0deg, var(--accent) 180deg, var(--accent-2) 360deg);
  filter: blur(40px);
  opacity: 0.5;
  animation: spin 10s linear infinite;
}

.expertise-progress {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-dot {
  width: 6px;
  height: 6px;
  background-color: var(--line-dark);
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
}

.progress-dot.is-active {
  background-color: var(--accent);
  transform: scale(1.5);
}

.expertise-mobile {
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.mob-exp-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mob-exp-capsule {
  width: 100px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  overflow: hidden;
  position: relative;
}

.mob-exp-capsule .capsule-blob {
  filter: blur(15px);
}
*/

/* --- NEW EXPERTISE (v2) --- */
.xp-intro {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(4rem, 10vw, 8rem);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.xp-intro-left {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.1;
  flex: 1;
  max-width: 32rem;
}

.xp-intro-right {
  flex: 1;
  max-width: 34rem;
  color: var(--on-dark-soft);
  font-size: 1.1rem;
  line-height: 1.6;
}

.xp-rows {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.xp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  align-items: center;
  position: relative;
}

.xp-media {
  position: relative;
  aspect-ratio: 1/1;
  max-height: 100svh;
  overflow: hidden;
  width: 100%;
}

.xp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
  will-change: transform;
}

.xp-row[data-side="right"] .xp-media {
  order: 2;
}

.xp-row[data-side="right"] .xp-media img {
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
}

.xp-copy {
  max-width: 34rem;
  padding-inline: clamp(1.5rem, 6vw, 7rem);
  margin: 0 auto;
}

.xp-row[data-side="right"] .xp-copy {
  order: 1;
}

.xp-line {
  width: 48px;
  height: 1px;
  background-color: var(--on-dark-soft);
  margin-bottom: 2rem;
  transform-origin: left center;
}

.xp-title {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.xp-title-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.25em;
}
.xp-title-word-wrap:last-child {
  margin-right: 0;
}

.xp-title-word {
  display: inline-block;
  will-change: transform, color;
}

.xp-desc {
  color: var(--on-dark-soft);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.xp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xp-chip {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  background: #0e0e0e;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 8px 14px;
  transition: border-color 0.4s ease;
}

.xp-row:hover .xp-chip {
  border-color: var(--accent);
}

@media (max-width: 991px) {
  .xp-intro {
    flex-direction: column;
    gap: 1.5rem;
  }
  .xp-row {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 4rem;
  }
  .xp-row[data-side="right"] .xp-media {
    order: 1;
  }
  .xp-row[data-side="right"] .xp-copy {
    order: 2;
  }
  .xp-media {
    aspect-ratio: 4/3;
    max-height: none;
  }
  .xp-media img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%) !important;
  }
  .xp-copy {
    padding-top: 2rem;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
    max-width: 100%;
  }
}


/* Projects */
.projects {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background-color: var(--bg-light);
  position: relative;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  position: relative;
}

.section-heading-wrap {
  text-align: center;
  margin-bottom: clamp(4rem, 10vw, 8rem);
}

.work-bg-text-wrap {
  position: sticky;
  top: 10vh;
  z-index: 0;
  text-align: center;
  overflow: hidden;
  height: 0; /* Let it not take space so cards scroll over */
}

.work-bg-text {
  font-family: var(--font-display);
  font-size: 42vw;
  line-height: 0.8;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 991px) {
  .work-bg-text-wrap {
    height: auto;
  }
}

.projects-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Mobile gap */
}

.project-card {
  background-color: var(--card-light);
  border-radius: var(--radius-card);
  border: 1px solid var(--line-light);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  transform-origin: top center;
  will-change: transform, opacity;
}

.project-card-cta {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) 2rem;
  background-color: var(--ink);
  color: var(--card-light);
  border-color: var(--ink);
}

.project-card-cta h3 {
  color: var(--card-light);
}

.project-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-index {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.project-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.project-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.project-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  background-color: rgba(0,0,0,0.04);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 11;
}

.project-visual {
  flex: 1.5;
  position: relative;
  perspective: 1000px;
}

.browser-frame {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-light);
  overflow: hidden;
  background-color: #f9f9f9;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: rotateX(2deg) rotateY(-2deg);
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}

.project-card:hover .browser-frame {
  transform: rotateX(0) rotateY(0);
}

.browser-header {
  height: 30px;
  background-color: #efefef;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

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

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d1d1d1;
}
.browser-dots span:nth-child(1) { background-color: #ff5f56; }
.browser-dots span:nth-child(2) { background-color: #ffbd2e; }
.browser-dots span:nth-child(3) { background-color: #27c93f; }

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

@media (max-width: 991px) {
  .project-card {
    flex-direction: column;
  }
  .project-visual {
    order: -1;
  }
}

/* Journey */
.journey {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background-color: var(--bg-light);
  overflow: hidden;
}

.journey-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.timeline-wrap {
  position: relative;
  margin-top: 4rem;
  margin-bottom: 6rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: var(--line-light);
  transform: translateX(-50%);
}

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--accent);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
}

.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 3rem;
}

.timeline-item.right {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 2.5rem;
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-light);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -6px;
}

.timeline-item.right .timeline-dot {
  left: -6px;
}

.timeline-date {
  font-family: var(--font-display);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-org {
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .timeline-line, .timeline-line-progress {
    left: 20px;
  }
  .timeline-item.left, .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 2rem 0 2rem 50px;
  }
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
    left: 14px;
    right: auto;
  }
}

.cert-marquee-wrap {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
  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);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: fit-content;
}

.marquee-track:hover {
  animation-play-state: paused !important; /* using GSAP or CSS */
}

.cert-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  background-color: var(--card-light);
  color: var(--ink);
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* What I Build */
.what-i-build {
  padding: clamp(5rem, 12vw, 10rem) 0;
  position: relative;
}

.wib-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.accordion-wrap {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-dark);
}

.acc-item {
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.4s ease;
}

.acc-item:hover {
  background-color: #0d0d0d;
}

.acc-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.acc-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  width: 3rem;
}

.acc-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--on-dark);
  flex: 1;
  transition: transform 0.4s ease;
}

.acc-item:hover .acc-title {
  transform: translateX(12px);
}

.acc-icon {
  font-size: 1.5rem;
  color: var(--on-dark);
  transition: transform 0.4s ease;
}

.acc-item.is-open .acc-icon {
  transform: rotate(45deg);
}

.acc-content-wrap {
  height: 0;
  overflow: hidden;
  transition: height 0.6s cubic-bezier(0.65, 0.05, 0, 1);
}

.acc-content {
  padding: 0 0 2rem 3rem;
  color: var(--on-dark-soft);
  font-size: 1.1rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .acc-content { padding-left: 0; }
  .acc-num { display: none; }
}

/* Connect / Footer */
.site-footer {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) 0 0 0;
  background-color: #000;
  overflow: hidden;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.footer-cta {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: clamp(4rem, 10vw, 8rem);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  color: var(--accent);
  margin-bottom: 2rem;
}

.footer-heading {
  font-size: clamp(3rem, 7vw, 6rem);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.word-rotator {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  text-align: left;
}

.rotator-word {
  grid-area: 1 / 1;
  opacity: 0;
  will-change: transform, opacity, filter, color;
  color: #888;
  white-space: nowrap;
}

.rotator-word.active {
  opacity: 1;
  color: #fff;
}

.footer-sub {
  font-size: 1.2rem;
  color: var(--on-dark-soft);
  margin-bottom: 3rem;
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.connect-section-buttons .social-pill {
  font-size: 1.15em;
  padding: 0.9em 1.4em;
}

.connect-section-buttons .social-pill i {
  font-size: 1.3em;
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line-dark);
  align-items: center;
}

.footer-col-title, .footer-org {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--on-dark);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--on-dark-soft);
}

.footer-links a {
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.col-center {
  text-align: center;
}

.footer-top-btn {
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: var(--on-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.4s ease;
}

.footer-top-btn:hover {
  transform: translateY(-8px);
}

.col-right {
  text-align: right;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--on-dark-soft);
}

@media (max-width: 767px) {
  .footer-bottom-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .col-right { text-align: center; }
}

.giant-wordmark-wrap {
  position: relative;
  margin-top: 2rem;
  width: 100%;
  padding-bottom: 4rem;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.giant-wordmark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 20rem);
  width: 100%;
  line-height: 1.1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  opacity: 1;
  letter-spacing: -2px;
}
/* --- Phase 1B: Certificates --- */
.cert {
  padding: clamp(5rem, 12vw, 10rem) 0;
  position: relative;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}

.cert-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.cert-header {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--on-dark-soft);
  margin-bottom: 1.5rem;
}

.cert-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.cert-desc {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--on-dark-soft);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 28px;
  background-color: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.cert-btn:hover {
  transform: translateY(-4px);
}

.cert-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

/* The Certificate Wall */
.cert-wall-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: 650px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.cert-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  height: 100%;
}

.cert-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  will-change: transform;
}

.cert-item {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  color: #000;
  aspect-ratio: 1.414 / 1; 
  transition: transform 0.3s ease;
}

.cert-item:hover {
  transform: scale(1.02);
}

/* Fallback HTML certificate styling */
.cert-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 4px solid rgba(0,0,0,0.03);
  margin: 8px;
  pointer-events: none;
}

.cert-fb-issuer {
  font-size: 0.65rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-fb-title-wrap {
  text-align: center;
  margin: 1rem 0;
}

.cert-fb-sub {
  font-size: 0.7rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.cert-fb-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: #111;
  margin-bottom: 0.5rem;
}

.cert-fb-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: #000;
  line-height: 1.2;
}

.cert-fb-line {
  height: 1px;
  background-color: #eee;
  width: 60%;
  margin: 0 auto 0.5rem auto;
}

.cert-fb-seal {
  align-self: flex-end;
  width: 30px;
  height: 30px;
  background-color: var(--accent);
  border-radius: 50%;
  position: relative;
}

.cert-fb-seal::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(255,255,255,0.8);
  border-radius: 50%;
}

.cert-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  border-radius: 8px;
  /* displayed via JS if loaded */
}

/* Lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cert-lightbox.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.cert-lightbox-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cert-lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 2;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

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

.cert-lightbox-content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 1000px;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-lightbox-item {
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1.414 / 1;
  background-color: #fff;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: #000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.cert-lightbox.is-open .cert-lightbox-item {
  transform: scale(1);
  opacity: 1;
}

.cert-lightbox-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  background-color: #111; 
}

/* Larger fallback styling in lightbox */
.cert-lightbox-item .cert-fb-issuer { font-size: 1rem; }
.cert-lightbox-item .cert-fb-sub { font-size: 1.2rem; }
.cert-lightbox-item .cert-fb-name { font-size: 2.5rem; }
.cert-lightbox-item .cert-fb-title { font-size: 1.8rem; }
.cert-lightbox-item .cert-fb-seal { width: 60px; height: 60px; }

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

@media (max-width: 767px) {
  .cert-wall-wrap {
    height: 500px;
  }
  .cert-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .cert-col {
    gap: 1rem;
  }
}

/* --- Phase 1C: Tech Stack --- */
.stack {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background-color: #000;
  color: var(--on-dark);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stack-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.stack-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--on-dark-soft);
  text-align: left;
  padding: 0 var(--container-px);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.stack-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.stack-marquee-wrap::before,
.stack-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15vw;
  z-index: 2;
  pointer-events: none;
}
.stack-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}
.stack-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}

.stack-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  will-change: transform;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.stack-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stack-icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.stack-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: #fff;
}

/* New Hero Layout 2 - Glowing Aura & Outline Typography */
.new-hero-layout-2 {
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  z-index: 1;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.2;
  animation: pulse-orb 8s infinite alternate ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background-color: #000;
  top: 10%;
  left: 20%;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background-color: #333;
  bottom: 10%;
  right: 20%;
  animation-delay: -4s;
}

@keyframes pulse-orb {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  100% { transform: scale(1.2) translate(50px, 50px); opacity: 0.8; }
}

.hero-content-wrapper-2 {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4rem;
  min-height: 80vh;
  margin-top: 80px;
  padding-bottom: 40px;
}

.hero-tech-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-display-text {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.display-line {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 18rem);
  line-height: 0.95;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0;
}

.display-line.align-left {
  text-align: left;
}

.display-line.align-right {
  text-align: right;
}

.display-line.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  transition: all 0.4s ease;
}

.display-line.outline-text:hover {
  color: var(--ink);
  -webkit-text-stroke: 2px transparent;
}

.display-subtitle {
  margin-top: 4rem;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.gradient-text {
  color: var(--ink);
}

.dot-separator {
  color: var(--ink-soft);
  margin: 0 10px;
}

.hero-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.hero-bio p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 300px;
}

.hero-scroll-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.hero-scroll-btn:hover {
  background-color: var(--ink);
  color: var(--bg-light);
}

@media (max-width: 768px) {
  .hero-tech-nav { display: none; }
  .hero-bottom-bar { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .display-subtitle { font-size: 0.85rem; letter-spacing: 2px; }
  .display-line { text-align: center !important; }
}

/* --- Hero Split Layout --- */
.hero-split {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #f1f2f3; /* soft light-gray */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 4vw 40px; 
}

.hero-split-image {
  position: absolute;
  top: 0;
  right: -2%;
  bottom: 0;
  width: 58%;
  background-image: url('../images/black\ and\ white\ -Picsart-AiImageEnhancer.png');
  background-size: cover;
  background-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
  mask-image: linear-gradient(to right, transparent 0%, black 40%);
  z-index: 0;
  opacity: 0; 
  transform: scale(1.05);
  will-change: transform, opacity;
}

.hero-split-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-split-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-split-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  color: #111;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
}

.hero-split-heading .split-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-split-heading .split-light {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-split-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #555;
  max-width: 45%;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-split-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
}

.split-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  background: #111;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.split-btn:hover {
  transform: translateY(-3px);
}

.split-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #111;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.split-link:hover {
  opacity: 0.6;
}

.hero-split-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-split-social a {
  color: #333;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-split-social a:hover {
  color: #000;
  transform: translateY(-3px);
}

.hero-split-scroll {
  position: absolute;
  bottom: 2rem;
  right: 4vw;
  z-index: 2;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero-split-scroll:hover {
  background: #000;
}

/* Responsive constraints */
@media (max-width: 1024px) {
  .hero-split-desc {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    padding-top: 100px;
    align-items: flex-start;
  }
  
  .hero-split-image {
    position: relative;
    width: 100vw;
    height: 45vh;
    margin-left: -4vw; 
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 40%);
    mask-image: linear-gradient(to top, transparent 0%, black 40%);
    order: -1;
    margin-bottom: 2rem;
  }
  
  .hero-split-desc {
    max-width: 100%;
  }
  
  .hero-split-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .hero-split-scroll {
    display: none;
  }
}
