:root {
  --white: #fbfbf8;
  --black: #050505;
  --ink: #171717;
  --muted: #686868;
  --line: #d8d8d0;
  --soft: #f1f1ec;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Inter", "Helvetica Neue", "Arial", "Segoe UI", system-ui, sans-serif;
  --purple: #5e3aee;
  --purple-light: rgba(94, 58, 238, 0.08);
  --card-bg: #ffffff;
  --dot-color: #5e3aee;
  --toggle-bg: #eaeaea;
  --toggle-border: rgba(0, 0, 0, 0.1);
  --glow-opacity: 0.05;
  --topbar-bg: rgba(251, 251, 248, 0.75);
  --topbar-border: rgba(255, 255, 255, 0.85);
  --topbar-bg-scrolled: rgba(251, 251, 248, 0.88);
  --topbar-border-scrolled: rgba(94, 58, 238, 0.12);
  --about-panel-bg: rgba(251, 251, 248, 0.55);
  --heading-grad-1: #5e3aee;
  --heading-grad-2: #1c0e4c;
  --heading-grad-3: #050505;
  --btn-bg: #120b2e;
  --btn-text: #fbfbf8;
  --btn-hover-bg: #19103c;
}

[data-theme="dark"] {
  --white: #0a051d; /* Deeper space background */
  --black: #f3efff; /* Crisp off-white text */
  --ink: #ffffff;
  --muted: #a59ad6; /* Muted lavender */
  --line: #1c0e44; /* Borders */
  --soft: #12092c; /* Containers */
  --purple: #9d7dfa; /* Bright neon purple */
  --purple-light: rgba(157, 125, 250, 0.15);
  --card-bg: #11082b; /* Card container background */
  --dot-color: #9d7dfa;
  --toggle-bg: #1c0e44;
  --toggle-border: rgba(255, 255, 255, 0.15);
  --glow-opacity: 0.3;
  --topbar-bg: rgba(10, 5, 29, 0.75);
  --topbar-border: rgba(255, 255, 255, 0.08);
  --topbar-bg-scrolled: rgba(10, 5, 29, 0.88);
  --topbar-border-scrolled: rgba(157, 125, 250, 0.15);
  --about-panel-bg: rgba(18, 9, 44, 0.55);
  --heading-grad-1: #bfabff;
  --heading-grad-2: #e2daff;
  --heading-grad-3: #ffffff;
  --btn-bg: #bfabff;
  --btn-text: #0a051d;
  --btn-hover-bg: #a588ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-image: 
    radial-gradient(circle, rgba(94, 58, 238, 0.08) 0%, transparent 60%),
    radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 65%);
  background-repeat: no-repeat;
  background-size: 70vw 70vw;
  background-attachment: fixed;
  background-position: 10% 20%, 90% 80%;
  animation: body-gradient-wave 25s ease-in-out infinite alternate;
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes body-gradient-wave {
  0% {
    background-position: 10% 20%, 90% 80%;
  }
  50% {
    background-position: 35% 45%, 65% 55%;
  }
  100% {
    background-position: 20% 10%, 80% 90%;
  }
}

img {
  display: block;
  max-width: 100%;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  background: var(--black);
  transform-origin: left center;
  transform: scaleX(0);
  animation: page-progress linear both;
  animation-timeline: scroll(root);
}

@keyframes page-progress {
  to {
    transform: scaleX(1);
  }
}

.cursor-light {
  display: none;
}

@media (hover: hover) {
  .cursor-light {
    display: block;
    position: fixed;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    z-index: -1;
    width: 34vw;
    height: 34vw;
    pointer-events: none;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05), transparent 68%);
    transform: translate(-50%, -50%);
    transition: width 500ms var(--ease), height 500ms var(--ease);
  }
}

.bg-digital-dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot-color) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  opacity: 0.2;
  animation: scroll-dots 35s linear infinite;
}

@keyframes scroll-dots {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -300px;
  }
}

.topbar {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 1280px;
  min-height: 68px;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--topbar-border);
  border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 450ms var(--ease);
}

.topbar.is-scrolled {
  background: var(--topbar-bg-scrolled);
  border-color: var(--topbar-border-scrolled);
  box-shadow: 0 15px 35px rgba(94, 58, 238, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.topbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.topbar-header {
  display: flex;
  align-items: center;
}

.logo-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #bfabff 0%, #5e3aee 60%, #3515b8 100%);
  box-shadow: 0 0 10px rgba(94, 58, 238, 0.6);
  margin-right: 10px;
  animation: dot-glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes dot-glow-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(94, 58, 238, 0.5);
  }
  100% {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(94, 58, 238, 0.85);
  }
}

.resume-btn-mobile {
  display: none !important;
}

.resume-btn-desktop {
  display: inline-flex;
}

.mark {
  display: inline-flex;
  align-items: center;
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.toplinks {
  display: flex;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 40px);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: 20px;
}

main,
.footer {
  width: min(calc(100% - 32px), 1280px);
  margin: 0 auto;
}

main {
  padding-bottom: 80px;
}

.intro {
  min-height: min(72dvh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-name {
  margin: 0 0 8px;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.micro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: 100%;
  margin: clamp(48px, 8vw, 96px) auto 24px auto;
  text-align: center;
  font-size: clamp(5.8rem, 14vw, 14rem);
  line-height: 0.78;
  letter-spacing: -0.072em;
  font-weight: 950;
  text-transform: uppercase;
  
  /* Dark moving cinematic text gradient */
  background-image: linear-gradient(to right, 
    var(--heading-grad-1) 0%, 
    var(--heading-grad-2) 50%, 
    var(--heading-grad-3) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aurora-drift 4.5s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

.intro h1 {
  margin-top: 0;
}

.hero-tagline {
  margin-bottom: 12px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.056em;
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-tagline-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.tagline-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.hero-tagline-new i.ph-sparkle {
  color: var(--purple);
  font-size: 1.15rem;
  flex-shrink: 0;
  animation: sparkle-glow 3s ease-in-out infinite alternate;
}

@keyframes sparkle-glow {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.18) rotate(15deg);
    opacity: 1;
  }
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.045em;
  text-align: center;
}

/* CTA Orbit Rings */
.cta-orbit-container {
  position: relative;
  width: 400px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  transform: rotate(-5deg);
}

.orbit-svg-back,
.orbit-svg-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 120px;
  pointer-events: none;
}

.orbit-svg-back {
  z-index: 1;
}

.orbit-svg-front {
  z-index: 3;
}

.orbiting-chevron-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
  offset-path: path('M 360,60 C 360,15 40,15 40,60 C 40,105 360,105 360,60 Z');
  offset-rotate: auto;
  animation: chevron-orbit 7s linear infinite;
}

.orbiting-chevron-container:nth-of-type(2) {
  animation-delay: -3.5s;
}

.orbiting-chevron-container svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 6px rgba(157, 125, 250, 0.95));
}

@keyframes chevron-orbit {
  0% {
    offset-distance: 0%;
    z-index: 1;
  }
  49.9% {
    z-index: 1;
  }
  50% {
    offset-distance: 50%;
    z-index: 3;
  }
  99.9% {
    z-index: 3;
  }
  100% {
    offset-distance: 100%;
    z-index: 1;
  }
}

.primary-cta {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 9px 0 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.98rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 36px rgba(94, 58, 238, 0.35);
  transform: rotate(5deg);
  transition: transform 550ms var(--ease), background-color 550ms var(--ease), box-shadow 550ms var(--ease);
  position: relative;
  z-index: 2;
}

/* Bottom Glow Flare */
.primary-cta::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  width: 60%;
  height: 5px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.9) 0%, rgba(94, 58, 238, 0) 80%);
  filter: blur(2px);
  border-radius: 50%;
  opacity: 0.85;
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
  pointer-events: none;
}

.primary-cta span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  transition: transform 550ms var(--ease);
}

.primary-cta:hover {
  transform: translateY(-3px) rotate(5deg);
  background-color: var(--btn-hover-bg);
  box-shadow: 0 16px 48px rgba(94, 58, 238, 0.55);
}

.primary-cta:hover::after {
  transform: scaleY(1.3);
  opacity: 1;
}

.primary-cta:hover span {
  transform: translateX(3px);
}

.section {
  padding: 84px 0;
  scroll-margin-top: 84px;
  border-top: 1px solid var(--line);
}

.section-copy {
  max-width: 1060px;
  margin-bottom: 48px;
}

.section-copy.centered-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-pretitle {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  background-image: linear-gradient(to right, 
    var(--heading-grad-1) 0%, 
    var(--heading-grad-2) 50%, 
    var(--heading-grad-3) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aurora-drift 4.5s ease-in-out infinite alternate;
}

.section-subtitle {
  margin: 16px auto 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.5;
}

.work-filters {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid var(--line);
  border-radius: 99px;
  margin: 0 auto 48px auto;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  z-index: 10;
  position: relative;
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 8px 20px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-radius: 99px;
  cursor: pointer;
  transition: all 300ms var(--ease);
}

.filter-btn:hover {
  color: var(--black);
}

.filter-btn.active {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(94, 58, 238, 0.25);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 24px;
}

.work-item {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-bg);
  overflow: hidden;
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateY(0) rotate(0) scale(1);
  opacity: 1;
  transition: opacity 300ms var(--ease), transform 450ms var(--ease), box-shadow 750ms var(--ease), border-color 750ms var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
}

@media (hover: hover) {
  .work-item.is-visible:hover {
    transform: translateY(-8px) rotate(var(--tilt, 0deg)) scale(1);
    box-shadow: 0 24px 80px rgba(94, 58, 238, 0.08);
    border-color: rgba(94, 58, 238, 0.2);
  }
}

.work-item.hidden-filter {
  display: none !important;
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--soft);
  max-height: 400px;
}

.original-media {
  margin: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: auto;
  display: block;
}

.original-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 800ms var(--ease);
}

.work-item:hover .original-media img {
  transform: scale(1.02);
}

.card-divider {
  width: 100%;
  height: 1px;
  background-color: var(--line);
  margin: 10px 0 12px 0;
}

.card-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--black);
  z-index: 3;
  letter-spacing: -0.01em;
}

.card-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--purple);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--white);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(94, 58, 238, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-highlight {
  border: 1.5px solid rgba(94, 58, 238, 0.35) !important;
  box-shadow: 0 16px 48px rgba(94, 58, 238, 0.06) !important;
}

.work-item.featured-wide .card-media-wrapper {
  max-height: none;
}

@media (min-width: 981px) {
  .work-item.featured-wide {
    grid-column: span 12;
  }
}


.card-copy {
  padding: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.card-tag {
  display: inline-flex;
  width: fit-content;
  border: 1.2px solid rgba(94, 58, 238, 0.2);
  color: var(--purple);
  background: rgba(94, 58, 238, 0.03);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.card-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 850;
  color: var(--black);
}

.card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  font-weight: 500;
}

/* Connection Tags Timeline */
.selected-tags-connection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
  position: relative;
  width: 100%;
  padding: 24px 0;
}

.selected-tags-connection::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(94, 58, 238, 0.12);
  z-index: 1;
}

.selected-tags-connection .connection-badge {
  background: var(--white);
  padding: 6px 16px;
  border: 1.2px solid rgba(94, 58, 238, 0.15);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--purple);
  z-index: 2;
  position: relative;
  box-shadow: 0 4px 12px rgba(94, 58, 238, 0.02);
}

.selected-tags-connection .connection-dot {
  width: 6px;
  height: 6px;
  background-color: var(--purple);
  border-radius: 50%;
  z-index: 2;
  position: relative;
  box-shadow: 0 0 6px rgba(94, 58, 238, 0.5);
}

.about-panel {
  position: relative;
  background: var(--about-panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 84px clamp(20px, 4vw, 48px);
}

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

.about-head {
  margin-bottom: 38px;
}

.about-head .micro i {
  color: var(--purple);
  margin-left: 4px;
}

.about-head h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  margin-top: 8px;
  letter-spacing: -0.04em;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(260px, 410px) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
}

.photo-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 410px;
}

.photo-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  filter: saturate(1.02) contrast(1.02);
}

.location-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(94, 58, 238, 0.08);
  white-space: nowrap;
  z-index: 2;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.location-badge:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 30px rgba(94, 58, 238, 0.16);
}

.location-badge i {
  color: var(--purple);
  font-size: 1.1rem;
}

.location-badge span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}

.bio-intro {
  border-left: 3px solid var(--purple);
  padding-left: clamp(18px, 3vw, 24px);
  margin-bottom: 38px;
}

.bio-intro p {
  max-width: 930px;
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.about-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease), border-color 600ms var(--ease);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(94, 58, 238, 0.06);
  border-color: rgba(94, 58, 238, 0.2);
}

.card-logos {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 12px;
  align-items: center;
}

.brand-logo {
  width: 20px;
  height: 20px;
  color: var(--black);
  opacity: 0.65;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.brand-logo:hover {
  opacity: 1;
  transform: translateY(-1px) scale(1.06);
}

.card-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.card-label {
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--purple);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.card-title {
  margin: 0 0 6px 0;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--black);
  letter-spacing: -0.02em;
}

.card-details {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}



.about-features-banner {
  width: 100%;
  margin-top: 56px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 16px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.015);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  transition: transform 300ms var(--ease);
}

.feature-item:not(:last-child) {
  border-right: 1px solid var(--line);
}

.feature-item:hover {
  transform: translateY(-2px);
}

.feature-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feature-content h5 {
  margin: 0 0 2px 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.01em;
}

.feature-content p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.topbar-contact {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  justify-content: center;
}

.topbar-contact .contact-item {
  font-size: 0.82rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--black);
  transition: color 300ms var(--ease), transform 300ms var(--ease);
}

.topbar-contact .contact-item i {
  color: var(--purple);
  font-size: 1.05rem;
}

.topbar-contact .contact-item:hover {
  color: var(--purple);
  transform: translateY(-1px);
}

.topbar-contact .contact-item.resume-btn {
  background: var(--purple-light);
  border: 1px solid rgba(94, 58, 238, 0.15);
  border-radius: 99px;
  padding: 5px 14px;
  color: var(--purple);
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}

.topbar-contact .contact-item.resume-btn i {
  color: inherit;
}

.topbar-contact .contact-item.resume-btn:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: end;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
}

.footer h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.footer p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-social,
.footer-utility {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 999px;
  color: var(--black);
  font-size: 1.2rem;
  transition: background 450ms var(--ease), color 450ms var(--ease), transform 450ms var(--ease);
}

@media (hover: hover) {
  .footer-links a.is-visible:hover {
    transform: translateY(-3px);
    background: var(--black);
    color: var(--white);
  }
}

.footer-links span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer small {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

.stagger-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  overflow: hidden;
  transition: transform 750ms var(--ease), box-shadow 750ms var(--ease);
}

@media (hover: hover) {
  .video-card.is-visible:hover {
    transform: translateY(-8px) rotate(var(--tilt, 0deg));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  }
}

/* AI Video Showcase Styling */
.ai-video-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.ai-video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  overflow: hidden;
  transition: transform 750ms var(--ease), box-shadow 750ms var(--ease);
}

.ai-video-card.landscape-card {
  width: 100%;
}

.ai-video-card.portrait-card {
  max-width: 480px;
  width: 100%;
}

@media (hover: hover) {
  .ai-video-card.is-visible:hover {
    transform: translateY(-8px) rotate(0.2deg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  }
}

.ai-video-card .video-container {
  width: 100%;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.ai-video-card.landscape-card .video-container {
  aspect-ratio: 16 / 9;
}

.ai-video-card.portrait-card .video-container {
  aspect-ratio: 9 / 16;
}

.ai-video-card .video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-video-card:hover .video-title-link {
  color: var(--purple);
}

.ai-video-card:hover .video-title-link i {
  color: var(--purple);
  transform: translate(1.5px, -1.5px);
}

@media (hover: hover) {
  .ai-video-card:hover .video-overlay-link {
    transform: scale(1.1);
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
  }
}

.video-overlay-link {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--black);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--black);
  font-size: 1.35rem;
  z-index: 10;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.video-overlay-link:hover {
  transform: scale(1.1);
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.video-title-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 300ms var(--ease);
}

.video-title-link i {
  font-size: 1.05rem;
  color: var(--muted);
  transition: transform 300ms var(--ease), color 300ms var(--ease);
}

.video-title-link:hover {
  color: var(--purple);
}

.video-title-link:hover i {
  color: var(--purple);
  transform: translate(1.5px, -1.5px);
}

.video-card .video-container {
  width: 100%;
  background: var(--soft);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

.video-card .video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* Link hover-both behavior: hovering on the card highlights the title link and overlay link */
.video-card:hover .video-title-link {
  color: var(--purple);
}

.video-card:hover .video-title-link i {
  color: var(--purple);
  transform: translate(1.5px, -1.5px);
}

@media (hover: hover) {
  .video-card:hover .video-overlay-link {
    transform: scale(1.1);
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
  }
}

.video-card-copy {
  padding: 24px;
}

.video-card-copy h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.video-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Software & Tools Section */
.about-software-section {
  width: 100%;
  margin-top: 64px;
  margin-bottom: 32px;
}

.software-section-title {
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--purple);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  display: block;
}

.software-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.software-card {
  flex: 0 0 calc((100% - 144px) / 7);
  max-width: calc((100% - 144px) / 7);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
}

.software-icon-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  transition: transform 450ms var(--ease), border-color 450ms var(--ease), box-shadow 450ms var(--ease);
}

.software-img-icon {
  width: clamp(54px, 6.5vw, 72px);
  height: clamp(54px, 6.5vw, 72px);
  object-fit: contain;
  border-radius: 12px;
  opacity: 0.9;
  transition: transform 450ms var(--ease), opacity 450ms var(--ease);
}

.software-name {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--black);
  transition: color 450ms var(--ease);
}

/* Hover effects */
@media (hover: hover) {
  .software-card.is-visible:hover .software-icon-card {
    transform: translateY(-6px) rotate(var(--tilt, 0deg));
    border-color: rgba(94, 58, 238, 0.25);
    box-shadow: 0 16px 36px rgba(94, 58, 238, 0.08);
  }
  .software-card.is-visible:hover .software-img-icon {
    opacity: 1;
    transform: scale(1.06);
  }
  .software-card.is-visible:hover .software-name {
    color: var(--purple);
  }
}

/* Contact CTA Section */
.contact-cta {
  padding-top: 48px;
  padding-bottom: 80px;
  width: 100%;
}

.cta-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
}

.cta-content {
  max-width: 540px;
  text-align: left;
}

.cta-content h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 12px 0 16px 0;
  color: var(--black);
}

.cta-content p {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.cta-actions .primary-cta {
  font-size: 0.98rem;
  padding: 0 12px 0 28px !important;
  min-height: 60px;
}

.cta-actions .primary-cta.contact-btn {
  transform: rotate(0deg) !important;
}

.cta-actions .primary-cta.contact-btn:hover {
  transform: translateY(-3px) rotate(0deg) !important;
}

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

.contact-sub-link {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 300ms var(--ease), transform 300ms var(--ease);
}

.contact-sub-link i {
  color: var(--purple);
  font-size: 1.1rem;
}

.contact-sub-link:hover {
  color: var(--purple);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .topbar {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
  }
  
  .topbar.is-scrolled {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .topbar-card {
    background: var(--topbar-bg-scrolled);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(94, 58, 238, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .topbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .resume-btn-mobile {
    display: inline-flex !important;
  }

  .resume-btn-desktop {
    display: none !important;
  }

  .topbar-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
  }

  .topbar-contact .contact-item {
    font-size: 0.85rem;
  }

  .toplinks {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 3.5vw, 20px);
    width: 100%;
    margin: 4px 0 0 0;
  }

  .toplinks a {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .intro {
    min-height: auto;
    padding-top: 220px;
  }

  .mobile-break {
    display: block;
  }

  .tagline-line {
    display: none;
  }

  .hero-tagline-new {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .about-body,
  .bio-facts,
  .footer {
    grid-template-columns: 1fr;
  }

  .primary-cta {
    width: fit-content;
  }

  .work-item {
    grid-column: span 12;
  }

  .photo-wrapper {
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .photo-wrapper img {
    width: min(100%, 520px);
  }

  .about-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card {
    min-height: auto;
    padding-bottom: 24px;
  }

  .about-features-banner {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    padding: 20px;
    gap: 16px;
  }

  .feature-item {
    padding: 8px 12px;
  }

  .feature-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }

  .bio-intro p {
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0;
  }

  .footer {
    align-items: start;
  }

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

  .video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: min(100%, 360px);
    margin: 0 auto;
  }

  .software-grid {
    gap: 16px;
  }

  .software-card {
    flex: 0 0 calc((100% - 96px) / 7);
    max-width: calc((100% - 96px) / 7);
  }

  .cta-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 40px 32px;
    gap: 32px;
  }

  .cta-content {
    max-width: 100%;
  }

  .cta-actions {
    align-items: center;
  }
}

@media (max-width: 640px) {
  main,
  .footer {
    width: min(calc(100% - 20px), 1280px);
  }

  .section {
    padding: 56px 0;
  }

  .intro {
    min-height: auto;
    padding: 240px 0 52px;
  }

  .micro {
    max-width: 100%;
    font-size: 0.68rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(3.55rem, 17vw, 4.7rem);
    line-height: 0.84;
    letter-spacing: -0.062em;
  }

  h2 {
    font-size: clamp(2.6rem, 13vw, 4.8rem);
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .cta-orbit-container {
    width: 400px;
    height: 120px;
    transform: scale(0.72) rotate(-5deg);
    transform-origin: center center;
    margin: 15px auto 35px auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .orbit-svg-back,
  .orbit-svg-front {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 120px;
    pointer-events: none;
  }

  .orbiting-chevron-container {
    display: block !important;
  }

  .primary-cta {
    min-height: 58px;
    display: inline-flex !important;
    align-items: center;
    gap: 18px;
    padding: 0 9px 0 24px !important;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 0.98rem;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 12px 36px rgba(94, 58, 238, 0.35);
    transform: rotate(5deg) !important;
    transition: transform 550ms var(--ease), background-color 550ms var(--ease), box-shadow 550ms var(--ease);
    position: relative;
    z-index: 2;
    width: auto !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .primary-cta:hover {
    transform: translateY(-3px);
  }

  .primary-cta span {
    flex: 0 0 40px;
  }

  .about-copy p {
    font-size: 18px;
    line-height: 1.6;
  }

  .work-filters {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 6px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 32px;
  }

  .work-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  /* Footer Mobile Redesign to 9:16 aspect ratio centered stack */
  .footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 24px !important;
    padding: 48px 20px 48px 20px !important;
    width: 100% !important;
    border-top: 1px solid var(--black) !important;
  }

  .footer h2 {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 10px 0 !important;
  }

  .footer p {
    font-size: 0.94rem !important;
    line-height: 1.5 !important;
    color: var(--muted) !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  .footer-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: auto !important;
    margin: 8px 0 !important;
  }

  .footer-social,
  .footer-utility {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  .footer-links a {
    width: 46px !important;
    height: 46px !important;
    border: 1px solid var(--black) !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    color: var(--black) !important;
    font-size: 1.25rem !important;
    background: transparent !important;
  }

  .footer small {
    font-size: 0.82rem !important;
    color: var(--muted) !important;
    margin-top: 8px !important;
  }

  /* Mobile Software & Tools styles */
  .about-software-section {
    margin-top: 48px;
    margin-bottom: 24px;
    text-align: center;
  }

  .software-section-title {
    margin-bottom: 16px;
  }

  .software-grid {
    gap: 16px;
    justify-content: center;
  }

  .software-card {
    flex: 0 0 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
  }

  /* Mobile Contact CTA styles */
  .contact-cta {
    padding-bottom: 56px;
  }

  .cta-card {
    padding: 36px 20px;
    border-radius: var(--radius);
  }

  .cta-sub-actions {
    flex-direction: column;
    gap: 12px;
  }
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 11, 46, 0.96); /* Brand dark color with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms var(--ease);
}

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

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
  z-index: 2100;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
  transform: scale(1.05);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  padding: 32px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.lightbox-content::-webkit-scrollbar {
  width: 6px;
}

.lightbox-content::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
}

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

.lightbox-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 20px;
  text-align: center;
  max-width: 640px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Tall Scrollable Layout override for long website layouts */
.lightbox.is-scrollable .lightbox-content {
  justify-content: flex-start; /* Align to top to allow natural scrolling down */
  overflow-y: auto;
  height: 90vh;
  padding: 40px 16px;
}

.lightbox.is-scrollable .lightbox-image {
  max-height: none; /* Expand naturally in height */
  width: min(840px, 100%);
  object-fit: initial;
}

/* Visual cue for zoomable images */
.card-media-wrapper {
  cursor: zoom-in;
}

.card-media-wrapper img {
  transition: transform 600ms var(--ease);
}

.card-media-wrapper:hover img {
  transform: scale(1.03);
}

/* Creative Upgrades - Theme Transitions */
body,
.topbar,
.topbar-card,
.work-item,
.about-card,
.software-icon-card,
.cta-card,
.video-card,
.ai-video-card,
.location-badge,
.about-features-banner,
.work-filters,
.filter-btn,
.theme-toggle-btn {
  transition: background-color 450ms var(--ease), color 450ms var(--ease), border-color 450ms var(--ease), box-shadow 450ms var(--ease), transform 450ms var(--ease);
}

/* Creative Upgrades - Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease);
  padding: 0;
  margin-left: 20px;
  margin-right: 8px;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  background: var(--purple-light);
  border-color: var(--purple);
}

.theme-toggle-btn .icon-sun {
  display: none;
}

.theme-toggle-btn .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .icon-sun {
  display: block;
  color: #f5f3ff;
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
  display: none;
}

/* Creative Upgrades - Infinite Brand Ticker */
.ticker-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 64px;
  margin-bottom: 32px;
}

.ticker-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  gap: 50px;
  align-items: center;
  animation: marquee-scroll 32s linear infinite;
  padding-right: 50px; /* Ensure gap between loops */
}

.ticker-track span {
  font-size: clamp(1.2rem, 3.2vw, 2.2rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}

.ticker-dot {
  width: clamp(8px, 1.2vw, 14px);
  height: clamp(8px, 1.2vw, 14px);
  border-radius: 50%;
  background-color: var(--purple);
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 12px var(--purple);
}

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

/* Creative Upgrades - Custom Morphing Cursor Follower */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--purple);
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  display: none; /* Enabled via JS on hover-capable desktop viewports */
  align-items: center;
  justify-content: center;
  transition: width 350ms var(--ease), height 350ms var(--ease), background-color 350ms var(--ease), border-color 350ms var(--ease), border-radius 350ms var(--ease);
  will-change: transform, width, height, background-color, border-color;
  transform: translate(-50%, -50%);
}

.custom-cursor .cursor-text {
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 250ms var(--ease);
  white-space: nowrap;
  pointer-events: none;
}

/* State modifiers */
.custom-cursor.cursor-hover {
  width: 44px;
  height: 44px;
  background: var(--purple-light);
  border-color: var(--purple);
}



.custom-cursor.cursor-play {
  width: 76px;
  height: 76px;
  background: var(--purple);
  border-color: var(--purple);
}

.custom-cursor.cursor-play .cursor-text {
  opacity: 1;
}

/* Disable native cursor on hover-capable devices when custom cursor is active */
@media (hover: hover) {
  body.custom-cursor-active,
  body.custom-cursor-active a,
  body.custom-cursor-active button,
  body.custom-cursor-active .card-media-wrapper,
  body.custom-cursor-active .filter-btn,
  body.custom-cursor-active .video-overlay-link {
    cursor: none !important;
  }
  
  body.custom-cursor-active video {
    cursor: auto !important;
  }
}

