/* ==========================================================================
   CSS STYLE SHEET — AKSHAY CHITWAR PORTFOLIO
   Design: Swiss Editorial, Playarc.gg–Inspired, Marker Accent System
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
  --bg-primary: #F2EFE8;
  --bg-secondary: #EBE7DC;
  --bg-card: #EBE7DC;
  --bg-glass: rgba(242, 239, 232, 0.82);

  --border-color: rgba(13, 13, 12, 0.12);
  --border-hover: rgba(13, 13, 12, 0.85);
  --border-strong: #0D0D0C;

  --text-primary: #0D0D0C;
  --text-secondary: #333331;
  --text-muted: #7C7B76;

  --accent-yellow: #ffe633;
  --accent-yellow-rgb: 255, 230, 51;
  --accent-blue: #ffe633;
  --accent-blue-rgb: 255, 230, 51;
  --accent-hover: #ffe633;
  --accent-hover-rgb: 255, 230, 51;
  --accent-gold: var(--text-primary);

  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-space: 'Space Grotesk', sans-serif;

  --cursor-size: 8px;
  --cursor-ring-size: 36px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Dark Mode Theme Tokens --- */
html.dark {
  --bg-primary: #0D0D0C;
  --bg-secondary: #171716;
  --bg-card: #171716;
  --bg-glass: rgba(13, 13, 12, 0.85);

  --border-color: rgba(242, 239, 232, 0.14);
  --border-hover: rgba(242, 239, 232, 0.85);
  --border-strong: #F2EFE8;

  --text-primary: #F2EFE8;
  --text-secondary: #C5C3BC;
  --text-muted: #8E8D87;

  --accent-yellow: #ffe633;
  --accent-yellow-rgb: 255, 230, 51;
  --accent-blue: #ffe633;
  --accent-blue-rgb: 255, 230, 51;
  --accent-hover: #ffe633;
  --accent-hover-rgb: 255, 230, 51;
  --accent-gold: var(--text-primary);
}

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

html.custom-cursor-enabled,
html.custom-cursor-enabled * {
  cursor: none;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  background-color: var(--bg-primary);
  /* Subtle 40px major grid only — clean editorial feel */
  background-image:
    linear-gradient(to right, rgba(13, 13, 12, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 13, 12, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

/* Thin framing border */
body::before {
  content: "";
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  border: 1px solid rgba(13, 13, 12, 0.06);
  pointer-events: none;
  z-index: 9999;
}

@media (max-width: 768px) {
  body::before {
    top: 0.35rem;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
  }
}

/* --- Custom Cursor --- */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease,
    width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s,
    background-color 0.3s;
}

html.custom-cursor-enabled .custom-cursor-dot {
  display: block;
  width: var(--cursor-size);
  height: var(--cursor-size);
  background-color: #000;
  border-radius: 50%;
  z-index: 10000;
  transition: opacity 0.3s ease, width 0.2s, height 0.2s, background-color 0.2s;
}

html.custom-cursor-enabled .custom-cursor-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cursor-ring-size);
  height: var(--cursor-ring-size);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  z-index: 9999;
}

.custom-cursor-dot.visible,
.custom-cursor-ring.visible {
  opacity: 1;
}

.custom-cursor-dot.hovered {
  width: 12px;
  height: 12px;
  background-color: #000;
}

.custom-cursor-ring.hovered {
  width: 56px;
  height: 56px;
  border-color: var(--accent-hover);
  background-color: rgba(var(--accent-hover-rgb), 0.1);
}

.cursor-text {
  font-family: monospace;
  font-size: 7px;
  color: #000;
  font-weight: bold;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.custom-cursor-ring.hovered .cursor-text {
  opacity: 1;
}

@media (pointer: coarse) {
  * {
    cursor: auto !important;
  }

  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

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

.font-space {
  font-family: var(--font-space);
}

/* --- Utility Classes --- */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section-padding {
  padding: 6rem 0;
}

#work.section-padding {
  padding-top: 3rem;
}

/* Marker Swoosh Highlight */
.yellow-highlight,
.marker-swoosh {
  position: relative;
  display: inline-block;
  color: #0D0D0C !important;
  z-index: 1;
  padding: 0 4px;
  margin: 0 2px;
}

.yellow-highlight::before,
.marker-swoosh::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  bottom: 4px;
  height: calc(100% - 8px);
  background: var(--accent-yellow);
  border-radius: 3px;
  opacity: 0.95;
  z-index: -1;
  transform: rotate(-0.5deg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.yellow-highlight:hover::before,
.marker-swoosh:hover::before {
  transform: rotate(0deg) scaleX(1.02);
  opacity: 1;
}

/* Marker Highlight */
.marker-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 2px;
}

.marker-highlight::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 4px;
  height: 42%;
  background-color: var(--accent-yellow);
  border-radius: 2px 6px 3px 5px;
  z-index: -1;
  transform: rotate(-1.5deg);
  opacity: 0.88;
}

html.dark .marker-highlight {
  color: #F2EFE8 !important;
}

/* Marker Underline Black (Clients) */
.marker-underline-black {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.marker-underline-black::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5 Q 50 8 99 5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 0px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.03);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  transition: var(--transition-fast);
}

.tag:hover {
  background-color: #000;
  color: var(--accent-hover);
  border-color: #000;
}

/* ==========================================================================
   FLOATING PILL NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.logo:hover {
  transform: scale(1.03);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.logo-svg {
  height: 32px;
  width: auto;
  display: block;
}

.logo-svg polygon,
.logo-svg path {
  fill: var(--text-primary);
  transition: fill 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-poly-top {
  animation: logoTopFlyIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo:hover .logo-poly-bottom {
  animation: logoBottomFlyIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoTopFlyIn {
  0% {
    transform: translateY(-25px);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes logoBottomFlyIn {
  0% {
    transform: translateY(25px);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Floating Pill Nav */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.5rem;
  background: rgba(242, 239, 232, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 13, 12, 0.1);
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill-link {
  font-family: var(--font-space);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease;
}

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

html.dark .nav-pill-link:hover {
  color: var(--text-primary);
  background-color: rgba(255, 230, 51, 0.18);
}

.nav-pill-link.active,
html.dark .nav-pill-link.active {
  color: #000;
  background-color: var(--accent-yellow);
  font-weight: 600;
}

/* Scroll state */
.site-header.scrolled .nav-pill {
  background: transparent;
  border-color: rgba(13, 13, 12, 0.15);
}

/* Header Actions & Theme Toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.theme-toggle-btn {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 100px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
  position: absolute;
  top: 2px;
  width: 22px;
  height: 22px;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  transition: color 0.3s ease;
  user-select: none;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.theme-toggle-btn .icon-sun {
  left: 3px;
  color: var(--bg-primary);
}

.theme-toggle-btn .icon-moon {
  left: 31px;
  color: var(--text-muted);
}

.theme-toggle-knob {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--text-primary);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  z-index: 1;
}

html.dark .theme-toggle-knob {
  transform: translateX(28px);
  background-color: var(--accent-yellow);
}

html.dark .theme-toggle-btn .icon-sun {
  color: var(--text-muted);
}

html.dark .theme-toggle-btn .icon-moon {
  color: #0D0D0C;
}

/* Dark Mode Overrides */
html.dark body {
  background-image:
    linear-gradient(to right, rgba(242, 239, 232, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 239, 232, 0.04) 1px, transparent 1px);
}

html.dark body::before {
  border-color: rgba(242, 239, 232, 0.08);
}

html.dark .custom-cursor-dot {
  background-color: var(--accent-yellow);
}

html.dark .custom-cursor-ring {
  border-color: rgba(242, 239, 232, 0.3);
}

html.dark .cursor-text {
  color: #000;
}

html.dark .nav-pill {
  background: rgba(23, 23, 22, 0.75);
  border-color: rgba(242, 239, 232, 0.15);
}

html.dark .site-header.scrolled .nav-pill {
  background: rgba(13, 13, 12, 0.92);
  border-color: rgba(242, 239, 232, 0.2);
}

html.dark .hero-end-to-end-line,
html.dark .hero-title-prefix::after,
html.dark .hero-explore-subtext::after,
html.dark .marker-underline-black::after {
  filter: invert(1);
}

html.dark .yellow-highlight,
html.dark .marker-swoosh {
  color: #0D0D0C !important;
}

html.dark .work-card-media {
  background-color: #222220;
}

html.dark .clients-img {
  filter: grayscale(100%) opacity(0.7) invert(1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

html.dark .clients-img:hover {
  filter: grayscale(0%) opacity(1) invert(0);
  transform: scale(1.15);
}

html.dark .modal-drawer {
  background-color: var(--bg-primary);
}

html.dark .btn-primary:hover,
html.dark .contact-button:hover,
html.dark .social-circle-btn:hover,
html.dark .back-to-top-btn:hover,
html.dark .modal-close-btn:hover {
  color: #000;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-hamburger.active .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-label {
  font-family: var(--font-space);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.mobile-nav-close {
  background: none;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-nav-close:hover {
  background-color: var(--accent-yellow);
  border-color: var(--border-strong);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease, padding-left 0.3s ease;
  position: relative;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background-color: var(--accent-yellow);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link:hover {
  padding-left: 0.75rem;
}

.mobile-nav-link:hover::before {
  width: 100%;
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.mobile-nav-credit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .nav-pill {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .logo-text {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }

  .logo-svg {
    height: 26px;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-centered-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 140px;
  padding-bottom: 2rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 75% 30%, rgba(0, 0, 0, 0.03) 0%, rgba(255, 255, 255, 0) 65%);
}

.hero-photo-top-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 0.5rem;
  position: relative;
  z-index: 2;
}

/* White Radial Glow Behind Hero Photo */
.hero-photo-top-stage::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 480px;
  max-width: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0) 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

html.dark .hero-photo-top-stage::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
}

.photo-frameless-wrap {
  position: relative;
  width: 440px;
  max-width: 90vw;
  height: 420px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
}

.photo-frameless-wrap .hero-portrait {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(1);
  height: 100%;
  max-height: 1000px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none;
}

.photo-frameless-wrap:hover .hero-portrait {
  transform: translateX(-50%) scale(1.06) !important;
}

.photo-frameless-wrap .hero-portrait.active {
  opacity: 1;
}

.hero-end-to-end-line {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 7px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5 Q 50 8 99 5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 5;
}

.hero-centered-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-content-centered {
  max-width: 880px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-centered-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  margin: 1.2rem 0;
}

.hero-centered-desc {
  max-width: 740px;
  margin: 1.5rem auto 2.2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-title-prefix {
  font-family: var(--font-space);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.hero-title-prefix::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5 Q 50 8 99 5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(30px);
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 780px;
  opacity: 0;
  transform: translateY(30px);
}

/* Bio Interactive Marker Highlights on Hover */
.bio-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 4px;
  border-radius: 2px;
  transition: color 0.3s ease;
}

.bio-highlight::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 1px;
  bottom: 1px;
  background-color: var(--accent-yellow);
  z-index: -1;
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.bio-highlight-1::after {
  transform: rotate(-0.9deg) scaleX(0);
}

.bio-highlight-2::after {
  transform: rotate(0.8deg) scaleX(0);
}

.bio-highlight-3::after {
  transform: rotate(-1.0deg) scaleX(0);
}

.hero-desc:hover .bio-highlight {
  color: #0D0D0C !important;
}

.hero-desc:hover .bio-highlight-1::after {
  transform: rotate(-0.9deg) scaleX(1);
}

.hero-desc:hover .bio-highlight-2::after {
  transform: rotate(0.8deg) scaleX(1);
}

.hero-desc:hover .bio-highlight-3::after {
  transform: rotate(-1.0deg) scaleX(1);
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
}

.hero-explore-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  position: relative;
}

.hero-explore-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0;
}

.hero-explore-subtext {
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  font-weight: 700;
  font-style: normal;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.hero-explore-subtext::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5 Q 50 8 99 5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-explore-buttons-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-explore-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Reusable Hand-Drawn Marker Arrow System */
.marker-arrow {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  color: var(--text-primary);
  opacity: 0.9;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, color 0.35s ease;
}

html.dark .marker-arrow {
  color: var(--accent-yellow, #ffe633);
}

.marker-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.12));
}

/* Specific Instance: Hero CTA Button Arrow (Medium 100x55) */
.marker-arrow-hero-cta {
  top: -57px;
  left: calc(50% - 205px);
  width: 100px;
  height: 55px;
}

.marker-arrow-hero-cta svg {
  transform: scaleY(-1) rotate(90deg);
  transform-origin: center center;
}

.hero-explore-section:hover .marker-arrow-hero-cta {
  transform: translateY(-2px) scale(1.05);
  opacity: 1;
}

@media (max-width: 768px) {
  .marker-arrow-hero-cta {
    top: -22px;
    left: calc(50% - 125px);
    width: 52px;
    height: 29px;
  }
}

/* Explore More Section & Selected Projects Marker Arrow */
.explore-more-container {
  margin-top: 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.explore-more-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.explore-more-buttons-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.explore-more-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.marker-arrow-selected-projects {
  top: -38px;
  left: calc(50% - 170px);
  width: 65px;
  height: 36px;
}

.marker-arrow-selected-projects svg {
  transform: scaleY(-1) rotate(90deg);
  transform-origin: center center;
}

.explore-more-container:hover .marker-arrow-selected-projects {
  transform: translateY(-2px) scale(1.05);
  opacity: 1;
}

@media (max-width: 768px) {
  .marker-arrow-selected-projects {
    top: -14px;
    left: calc(50% - 110px);
    width: 32px;
    height: 18px;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.95rem 2.2rem;
  line-height: 1;
  border-top: 1.5px solid var(--border-strong);
  border-right: 1.5px solid var(--border-strong);
  border-bottom: 1.5px solid var(--border-strong);
  border-left: 1.5px solid var(--border-strong);
  border-radius: 0px;
  box-sizing: border-box;
  outline: none;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  color: #000;
  background-color: var(--accent-yellow);
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(var(--accent-yellow-rgb), 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section-label {
  font-family: var(--font-space);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 0;
}

.section-title::after {
  display: none;
}

/* ==========================================================================
   SELECTED WORK — DUAL GRID
   ========================================================================== */
.dual-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.grid-column {
  display: flex;
  flex-direction: column;
}

.grid-column-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.grid-column-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.works-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* --- Work Cards --- */
.work-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  transform-style: preserve-3d;
}

.work-card::before {
  content: '+';
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  z-index: 10;
  font-weight: bold;
}

.work-card::after {
  content: '[ SYS // AC.09 ]';
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: monospace;
  font-size: 8px;
  color: var(--text-muted);
  z-index: 10;
  letter-spacing: 0.05em;
}

.work-card-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #e8e8e8;
  overflow: hidden;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  transform: translateZ(20px);
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
  z-index: 1;
}

.work-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  filter: none;
}

.work-card:hover .work-thumbnail {
  transform: scale(1.05);
}

.work-overlay-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.work-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(40px) scale(0.8);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 15;
}

.work-play-indicator svg {
  width: 20px;
  height: 20px;
  fill: #000;
  transform: translateX(2px);
}

.work-card-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transform: translateZ(30px);
  transition: var(--transition-smooth);
}

.work-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.work-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  z-index: 1;
  padding: 0 4px;
}

.work-title::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  right: -4px;
  height: 100%;
  background-color: var(--accent-yellow);
  border-radius: 3px 6px 4px 5px;
  z-index: -1;
  transform: rotate(-0.5deg);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.work-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.work-views {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Card hover */
.work-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(var(--accent-yellow-rgb), 0.08);
}

.work-card:hover .work-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) translateZ(50px) scale(1.1);
}

.work-card:hover .work-title::after {
  opacity: 0.9;
  transform: rotate(-1deg) scaleX(1.02);
}

.work-card:hover .work-title,
html.dark .work-card:hover .work-title {
  color: #000 !important;
  text-decoration: none;
}

/* ==========================================================================
   THE EVOLUTION — TIMELINE
   ========================================================================== */
.evolution-chapters {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  position: relative;
}

.evolution-chapters::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 2px;
  height: 100%;
  background: var(--border-color);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 2rem;
  width: 2px;
  height: 0;
  background: var(--border-strong);
  z-index: 2;
  transform-origin: top;
}

.chapter-node {
  display: flex;
  position: relative;
  padding-left: 6rem;
  z-index: 2;
}

.chapter-marker {
  position: absolute;
  left: 1rem;
  top: 0.2rem;
  width: 2.2rem;
  height: 2.2rem;
  background-color: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease;
  z-index: 3;
}

.chapter-marker i {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
}

.chapter-node.active .chapter-marker {
  border-color: var(--border-strong);
  color: #0D0D0C !important;
  background-color: var(--accent-yellow);
  box-shadow: 0 0 12px rgba(var(--accent-yellow-rgb), 0.25);
}

.chapter-node:hover .chapter-marker {
  background-color: var(--accent-yellow);
  border-color: var(--border-strong);
  color: #0D0D0C !important;
}

.chapter-node:hover .chapter-marker i {
  transform: scale(1.15) rotate(12deg);
}

.chapter-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.chapter-meta {
  display: flex;
  flex-direction: column;
}

.chapter-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.chapter-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.chapter-company {
  font-family: var(--font-space);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

.chapter-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   PHILOSOPHY — SERVICE PILLARS
   ========================================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.philosophy-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  padding: 2.5rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.philosophy-icon {
  width: 60px;
  height: 60px;
  border-radius: 0px;
  background-color: transparent;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.philosophy-icon svg,
.philosophy-icon i {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 2;
}

.philosophy-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

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

.philosophy-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(var(--accent-yellow-rgb), 0.08);
}

.philosophy-card:hover .philosophy-icon {
  background-color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: #000;
}

/* Teams Focus Card */
.philosophy-layout-vertical {
  margin-top: 3rem;
}

.teams-focus-card {
  background-color: var(--accent-yellow);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
  color: #0D0D0C !important;
}

.teams-focus-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 0.75rem;
}

.teams-focus-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: #0D0D0C !important;
}

.focus-list-horizontal {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 2rem;
  width: 100%;
  padding: 0;
  margin: 0;
}

.focus-list-horizontal li {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0D0D0C !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.focus-list-horizontal li i {
  color: #0D0D0C !important;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .focus-list-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .focus-list-horizontal {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AI FILMMAKING SECTION
   ========================================================================== */
/* ==========================================================================
   AI FILMMAKING SECTION — CONNECTED STAGE NODES (LIGHT & DARK MODE)
   ========================================================================== */
.comfy-node-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  position: relative;
  margin-top: 2rem;
  margin-bottom: 4rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark .comfy-node-wrapper {
  background-color: #121316;
  border-color: rgba(255, 230, 51, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.comfy-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

html.dark .comfy-header {
  background-color: #1a1b20;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.comfy-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comfy-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

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

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.comfy-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

html.dark .comfy-title {
  color: #F2EFE8;
}

.comfy-canvas {
  position: relative;
  padding: 2.5rem 1.5rem;
  background-color: var(--bg-primary);
  background-image: radial-gradient(rgba(13, 13, 12, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 360px;
  display: flex;
  align-items: center;
}

html.dark .comfy-canvas {
  background-color: #121316;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
}

.comfy-wire-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.comfy-wire {
  stroke: #0D0D0C;
  stroke-width: 1.5px;
  stroke-dasharray: none;
  animation: none;
  opacity: 0.75;
  transition: stroke 0.3s ease;
}

html.dark .comfy-wire {
  stroke: #FFFFFF;
  opacity: 0.85;
}

.ai-filmmaking-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 280px;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

html.dark .ai-card {
  background: rgba(26, 27, 32, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ai-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: 0 12px 32px rgba(var(--accent-yellow-rgb), 0.18);
}

.ai-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ai-card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

html.dark .ai-card-num {
  color: var(--accent-yellow);
}

.ai-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

html.dark .ai-card-title {
  color: #F2EFE8;
}

.ai-card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

html.dark .ai-card-desc {
  color: rgba(255, 255, 255, 0.7);
}

.ai-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 0.75rem;
}

html.dark .ai-card-tools {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.ai-card-tools .tool-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  background-color: rgba(13, 13, 12, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html.dark .ai-card-tools .tool-tag {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.node-port {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-yellow);
  border: 2.5px solid var(--bg-card);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

html.dark .node-port {
  border-color: #121316;
}

.port-in {
  left: -6px;
}

.port-out {
  right: -6px;
}

@media (max-width: 992px) {
  .ai-filmmaking-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .ai-filmmaking-stack {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .node-port {
    top: auto;
    transform: none;
  }

  .port-out {
    right: auto;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
  }

  .port-in {
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
  }
}

@media (max-width: 560px) {
  .ai-filmmaking-stack {
    grid-template-columns: 1fr;
  }
}

/* AI Filmmaking Full Width Showcase Video */
.ai-video-container {
  margin-top: 5rem;
  width: 100%;
}

.ai-video-container+.ai-video-container {
  margin-top: 3rem;
}

.ai-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #000;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.ai-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #000;
}

/* ==========================================================================
   HIGHLIGHTS & RECOGNITION
   ========================================================================== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.highlight-card {
  display: flex;
  gap: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  padding: 1.75rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: 0 6px 18px rgba(var(--accent-yellow-rgb), 0.08);
}

.highlight-icon {
  font-size: 1.5rem;
  color: var(--text-primary);
  background-color: transparent;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 0px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  background-color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: #000;
}

.highlight-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.highlight-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.icon-four-point-star {
  width: 22px;
  height: 22px;
  color: inherit;
  display: inline-block;
  vertical-align: middle;
}

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

/* ==========================================================================
   CLIENTS MARQUEE
   ========================================================================== */
.clients-section {
  padding: 1.5rem 0;
  background-color: var(--bg-primary);
  overflow: hidden;
  transition: background-color 0.3s ease;
}

html.dark .clients-section {
  background-color: #262830;
}

.clients-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: block;
  text-align: center;
  width: 100%;
  z-index: 6;
}

.clients-marquee {
  width: 100%;
  overflow: hidden;
  background: transparent;
  border: none;
  padding: 0.75rem 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

.clients-marquee::before,
.clients-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

html.dark .clients-marquee::before {
  background: linear-gradient(to right, #262830 0%, transparent 100%);
}

html.dark .clients-marquee::after {
  background: linear-gradient(to left, #262830 0%, transparent 100%);
}

.clients-track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: scrollLogos 62s linear infinite;
}

.clients-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  margin-right: 3rem;
  backface-visibility: hidden;
}

.clients-img:hover {
  filter: grayscale(0%) opacity(0.95);
  transform: scale(1.15);
}

/* Custom Brand Logo Sizing Adjustments */
.clients-img[src*="coindcx"],
.clients-img[src*="kia"],
.clients-img[src*="maruti-suzuki"],
.clients-img[src*="metro"],
.clients-img[src*="skoda"] {
  height: 25px;
}

.clients-img[src*="regeneron"],
.clients-img[src*="tata-motors"] {
  height: 22px;
}

.clients-img[src*="bmw"],
.clients-img[src*="emerson"],
.clients-img[src*="hinda"],
.clients-img[src*="mahindra"],
.clients-img[src*="mercedes-benz"],
.clients-img[src*="mg-motor"],
.clients-img[src*="mountain-dew"],
.clients-img[src*="nissan"],
.clients-img[src*="renault"],
.clients-img[src*="vertex"],
.clients-img[src*="volkswagen"] {
  height: 35px;
}

.clients-img[src*="novo-nordisk"],
.clients-img[src*="persistent"] {
  height: 40px;
}

@keyframes scrollLogos {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */
.contact-section {
  border-top: 1px solid var(--border-color);
  padding: 7rem 0 4rem 0;
  text-align: center;
}

.contact-wrap {
  max-width: 750px;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.95rem 2.2rem;
  line-height: 1;
  border-top: 1.5px solid var(--border-strong);
  border-right: 1.5px solid var(--border-strong);
  border-bottom: 1.5px solid var(--border-strong);
  border-left: 1.5px solid var(--border-strong);
  border-radius: 0px;
  box-sizing: border-box;
  outline: none;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-button:hover {
  color: #000;
  background-color: var(--accent-yellow);
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(var(--accent-yellow-rgb), 0.2);
  transform: translateY(-2px);
}

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

.contact-button:hover .contact-btn-icon {
  transform: translateX(3px) translateY(-3px);
}

/* Unified footer socials */
.footer-unified-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem 0;
  width: 100%;
}

.social-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 0px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-circle-btn:hover {
  transform: translateY(-3px);
  color: #000;
  border-color: var(--border-strong);
  background-color: var(--accent-yellow);
}

.footer-credit {
  margin-top: 2rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   PROJECT DETAIL MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

html.modal-active,
html.modal-active * {
  cursor: auto !important;
}

html.modal-active .custom-cursor-dot,
html.modal-active .custom-cursor-ring {
  opacity: 0 !important;
  display: none !important;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-drawer {
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background-color: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  padding: 3rem;
  overflow-y: auto;
  border-radius: 0px;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-drawer {
  transform: scale(1);
}

.modal-close-btn {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 0px;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.modal-close-btn:hover {
  border-color: var(--border-strong);
  background-color: var(--accent-yellow);
  color: #000;
}

.modal-video-container {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  background-color: #000;
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border-strong);
}

.modal-video-container iframe,
.modal-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  background-color: #000;
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.modal-grid-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-family: var(--font-space);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.spec-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.modal-narrative {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================================================
   FLOATING BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 0px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s, border-color 0.3s;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  transform: translateY(-3px);
  background-color: var(--accent-yellow);
  border-color: var(--border-strong);
  color: #000;
}

/* ==========================================================================
   FLOATING BACKGROUND CANVAS
   ========================================================================== */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .container {
    padding: 0 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .dual-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .chapter-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-drawer {
    width: 80%;
    padding: 2.5rem;
  }
}

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

  .hero-centered-layout {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .works-grid {
    gap: 2rem;
  }

  .chapter-node {
    padding-left: 3.5rem;
  }

  .chapter-content {
    grid-template-columns: 1fr;
  }

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

  .modal-drawer {
    width: 100%;
    padding: 1.5rem;
  }

  .modal-grid-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   SECTION RELATIVE ANCHORING
   ========================================================================== */
section {
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   EXPLORE MORE CONTAINER
   ========================================================================== */
.explore-more-container {
  margin-top: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ==========================================================================
   HANDWRITTEN HOVER NOTE FOR SELECTED PROJECTS BUTTON
   ========================================================================== */
.explore-more-buttons-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hover-note-views {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) scale(1);
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0D0D0C;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  z-index: 10;
  letter-spacing: 0.02em;
  padding-bottom: 6px;
}

.hover-note-views::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5 Q 50 8 99 5' stroke='black' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

html.dark .hover-note-views {
  color: var(--accent-yellow);
  text-shadow: 0 0 12px rgba(255, 230, 51, 0.25);
}

html.dark .hover-note-views::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5 Q 50 8 99 5' stroke='%23FFE633' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hover-note-line {
  display: inline;
  white-space: nowrap;
}

.hover-note-line+.hover-note-line::before {
  content: " ";
}

.explore-more-buttons-wrap:has(.btn-selected-projects:hover) .hover-note-views,
.btn-selected-projects:hover+.hover-note-views,
.hover-note-views.active {
  transform: translateX(-50%) scale(1.18);
}

@media (max-width: 768px) {
  .hero-desc,
  .hero-centered-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    text-wrap: pretty;
    padding: 0 0.5rem;
  }

  .hover-note-views {
    font-size: clamp(0.75rem, 3.4vw, 0.92rem);
    max-width: 90vw;
    text-align: center;
    line-height: 1.3;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .hover-note-line {
    display: block;
    white-space: nowrap;
  }

  .hover-note-line+.hover-note-line::before {
    content: none;
  }
}