:root {
    --bg: #050409;
    --bg-soft: #0c0913;
    --bg-card: rgba(255, 255, 255, 0.065);
    --white: #f7f2ff;
    --muted: #b9adc9;
    --purple: #9b5cff;
    --purple-soft: #c7a5ff;
    --purple-deep: #44206f;
    --line: rgba(255, 255, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.08);
    --shadow: 0 14px 34px rgba(99, 45, 166, 0.18);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 14px;
    --max: 1180px;
    --ease: cubic-bezier(.2,.8,.2,1);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #050409 0%, #0b0712 48%, #13091f 100%);
    color: var(--white);
    overflow-x: hidden;
  }
  
  /* Removed the fixed body::before and body::after background layers for smoother scrolling */
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img,
  video {
    display: block;
    max-width: 100%;
  }
  
  button {
    font: inherit;
    border: 0;
    cursor: pointer;
  }
  
  .container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
  }
  
  /* NAV */
  
  .nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(var(--max), calc(100% - 28px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(5, 4, 9, .92);
    box-shadow: 0 10px 34px rgba(0,0,0,.24);
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -.04em;
  }
  
  .brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 0 20px rgba(155, 92, 255, .35);
    flex-shrink: 0;
  }

  .brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .nav-links a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: .92rem;
    transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
  }
  
  .nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,.08);
  }
  
  .nav-cta {
    padding: 10px 16px;
    border-radius: 999px;
    color: #0d0615 !important;
    background: var(--white);
    font-weight: 800;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  }
  
  .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,255,255,.12);
  }
  
  .mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255,255,255,.08);
  }
  
  /* HERO */
  
  .hero {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 135px 0 70px;
    position: relative;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 52px;
    align-items: center;
  }
  
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--purple-soft);
    background: rgba(255,255,255,.07);
    font-size: .88rem;
    margin-bottom: 22px;
  }
  
  .eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 12px var(--purple);
  }
  
  h1 {
    font-size: clamp(3.4rem, 9vw, 7.8rem);
    line-height: .88;
    letter-spacing: -.08em;
    margin-bottom: 26px;
  }
  
  .gradient-text {
    display: inline-block;
    background: linear-gradient(100deg, #fff, var(--purple-soft) 45%, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .hero-copy {
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
    max-width: 650px;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 21px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  }
  
  .btn-primary {
    color: #0d0615;
    background: linear-gradient(135deg, var(--white), var(--purple-soft));
    box-shadow: 0 12px 30px rgba(155, 92, 255, .22);
  }
  
  .btn-secondary {
    color: var(--white);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.055);
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
  
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 42px;
    max-width: 620px;
  }
  
  .stat-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.045);
  }
  
  .stat-card strong {
    display: block;
    font-size: 1.55rem;
    letter-spacing: -.04em;
  }
  
  .stat-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.35;
  }
  
  /* HERO VISUAL */
  
  .visual-stage {
    position: relative;
    min-height: 620px;
  }
  
  .orb {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 370px;
    height: 370px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
      radial-gradient(circle at 35% 25%, #fff, rgba(199,165,255,.86) 13%, rgba(155,92,255,.58) 36%, rgba(68,32,111,.32) 58%, transparent 72%),
      linear-gradient(135deg, rgba(255,255,255,.14), transparent);
    box-shadow: inset -28px -32px 60px rgba(10, 4, 20, .48), 0 0 52px rgba(155,92,255,.25);
  }
  
  .media-card {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    box-shadow: var(--shadow);
    isolation: isolate;
  }
  
  .media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.58), transparent 52%);
    pointer-events: none;
    z-index: 1;
  }
  
  .media-card .placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #171020, #07040c 58%, #1b0f2b 100%);
    color: rgba(255,255,255,.48);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  
  .media-card small {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 14px;
    color: var(--white);
    font-weight: 800;
  }
  
  .card-one {
    width: 305px;
    height: 390px;
    top: 54px;
    left: 8px;
    transform: rotate(-8deg);
    animation: driftOne 10s linear infinite;
  }
  
  .card-two {
    width: 330px;
    height: 232px;
    top: 215px;
    right: 0;
    transform: rotate(8deg);
    animation: driftTwo 11s linear infinite;
  }
  
  .card-three {
    width: 255px;
    height: 185px;
    bottom: 36px;
    left: 96px;
    transform: rotate(5deg);
    animation: driftThree 12s linear infinite;
  }

  .hero-card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  @keyframes driftOne {
    0% {
      transform: rotate(-8deg) translate3d(0, 0, 0);
    }
  
    25% {
      transform: rotate(-7deg) translate3d(6px, -9px, 0);
    }
  
    50% {
      transform: rotate(-6deg) translate3d(10px, -4px, 0);
    }
  
    75% {
      transform: rotate(-7deg) translate3d(4px, 7px, 0);
    }
  
    100% {
      transform: rotate(-8deg) translate3d(0, 0, 0);
    }
  }
  
  @keyframes driftTwo {
    0% {
      transform: rotate(8deg) translate3d(0, 0, 0);
    }
  
    25% {
      transform: rotate(7deg) translate3d(-8px, 6px, 0);
    }
  
    50% {
      transform: rotate(6deg) translate3d(-12px, -3px, 0);
    }
  
    75% {
      transform: rotate(7deg) translate3d(4px, -8px, 0);
    }
  
    100% {
      transform: rotate(8deg) translate3d(0, 0, 0);
    }
  }
  
  @keyframes driftThree {
    0% {
      transform: rotate(5deg) translate3d(0, 0, 0);
    }
  
    25% {
      transform: rotate(6deg) translate3d(8px, 4px, 0);
    }
  
    50% {
      transform: rotate(7deg) translate3d(12px, -5px, 0);
    }
  
    75% {
      transform: rotate(6deg) translate3d(-5px, 5px, 0);
    }
  
    100% {
      transform: rotate(5deg) translate3d(0, 0, 0);
    }
  }
  
  .scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 999px;
    opacity: .75;
  }
  
  .scroll-indicator::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--white);
    animation: scrollDot 1.5s ease-in-out infinite;
  }
  
  @keyframes scrollDot {
    0% {
      transform: translateY(-10px);
      opacity: 0;
    }
  
    35%, 70% {
      opacity: 1;
    }
  
    100% {
      transform: translateY(11px);
      opacity: 0;
    }
  }
  
  /* SECTIONS */
  
  section {
    padding: 90px 0;
  }
  
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 34px;
  }
  
  .section-kicker {
    color: var(--purple-soft);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .75rem;
    margin-bottom: 12px;
  }
  
  h2 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: .95;
    letter-spacing: -.07em;
  }
  
  .section-text {
    max-width: 480px;
    color: var(--muted);
    line-height: 1.7;
  }
  
  /* MARQUEE */

    .marquee {
        display: flex;
        width: 100%;
        overflow: hidden;
        border-block: 1px solid var(--line);
        background: rgba(255,255,255,.035);
        padding: 18px 0;
        mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    }
    
    .marquee-track {
        display: flex;
        width: max-content;
        animation: marqueeMove 42s linear infinite;
    }
    
    .marquee-group {
        display: flex;
        align-items: center;
        gap: 26px;
        white-space: nowrap;
        padding-right: 26px;
    }
    
    .marquee span {
        color: rgba(255,255,255,.72);
        font-size: clamp(1.1rem, 2.5vw, 2rem);
        font-weight: 850;
        letter-spacing: -.04em;
    }
    
    .marquee b {
        color: var(--purple-soft);
        font-size: clamp(1.1rem, 2.5vw, 2rem);
    }
    
    .marquee:hover .marquee-track {
        animation-play-state: paused;
    }
    
    @keyframes marqueeMove {
        from {
        transform: translate3d(0, 0, 0);
        }
    
        to {
        transform: translate3d(-50%, 0, 0);
        }
    }
  
  /* WORK */
  
  .work-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
  }
  
  .filter-btn {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.055);
    border: 1px solid var(--line);
    transition: color .2s var(--ease), background .2s var(--ease);
  }
  
  .filter-btn:hover,
  .filter-btn.active {
    color: #0d0615;
    background: var(--white);
  }
  
  .work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
  }
  
  .project-card {
    min-height: 390px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
    isolation: isolate;
  }
  
  .project-card:nth-child(1),
  .project-card:nth-child(4) {
    grid-column: span 7;
  }
  
  .project-card:nth-child(2),
  .project-card:nth-child(3) {
    grid-column: span 5;
  }
  
  .project-card:nth-child(5),
  .project-card:nth-child(6) {
    grid-column: span 6;
  }
  
  .project-media {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #17101f, #07030a 56%, #1a0d2a 100%);
    transition: transform .25s var(--ease);
  }
  
  .project-media::before {
    content: "Replace with image/video";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.26);
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  
  /* Use this class later if you replace project-media divs with real images */
  .project-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  
    filter: brightness(0.5);
    transform: scale(1);
  
    transition:
      filter 0.35s var(--ease),
      transform 0.35s var(--ease);
  }
  
  .project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.26) 46%, transparent);
    z-index: 1;
    pointer-events: none;
  }
  
  .project-content {
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    padding: 26px;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }
  
  .tag {
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: var(--purple-soft);
    background: rgba(255,255,255,.06);
    font-size: .76rem;
    font-weight: 750;
  }
  
  .project-content h3 {
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
    letter-spacing: -.055em;
    margin-bottom: 10px;
  }
  
  .project-content p {
    color: var(--muted);
    line-height: 1.55;
    max-width: 540px;
  }
  
  .project-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--white);
    font-weight: 850;
  }
  
  .project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(199,165,255,.38);
    box-shadow: var(--shadow);
  }
  
  .project-card:hover .project-media {
    transform: scale(1.012);
  }
  
  .project-card:hover .project-media-img {
    filter: brightness(1);
    transform: scale(1.025);
  }
  
  /* SERVICES */
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  .service-card {
    min-height: 250px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.052);
    transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  }
  
  .service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #0d0615;
    background: linear-gradient(135deg, var(--white), var(--purple-soft));
    margin-bottom: 26px;
    font-size: 1.35rem;
  }
  
  .service-card h3 {
    font-size: 1.25rem;
    letter-spacing: -.035em;
    margin-bottom: 11px;
  }
  
  .service-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: .95rem;
  }
  
  .service-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.08);
    border-color: rgba(199,165,255,.32);
  }
  
  /* ABOUT */

  .about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .about-panel {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 28px;
    align-items: stretch;
  }
  
  .portrait-box,
  .about-copy {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.055);
    overflow: hidden;
  }
  
  .portrait-box {
    min-height: 520px;
    position: relative;
    background: linear-gradient(135deg, #090611, #13091f 58%, #1a0d2a 100%);
  }
  
  /* .portrait-box::before {
    content: "Your Portrait / Logo / Brand Visual";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.32);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .82rem;
    padding: 34px;
    text-align: center;
  } */
  
  .about-copy {
    padding: clamp(28px, 5vw, 54px);
  }
  
  .about-copy p {
    color: var(--muted);
    line-height: 1.8;
    margin-top: 18px;
    font-size: 1.05rem;
  }
  
  .skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
  }
  
  .skill-cloud span {
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
  }
  
  /* CONTACT */
  
  .contact {
    padding-bottom: 40px;
  }
  
  .contact-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 7vw, 76px);
    border: 1px solid var(--line);
    border-radius: 42px;
    background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(155,92,255,.09), rgba(255,255,255,.035));
    box-shadow: var(--shadow);
  }
  
  .contact-panel::before {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    right: -110px;
    top: -120px;
    background: rgba(199,165,255,.12);
  }
  
  .contact-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
  }
  
  .contact-content p {
    max-width: 620px;
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.7;
  }
  
  .contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 250px;
  }
  
  .contact-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 18px;
    color: var(--white);
    background: rgba(255,255,255,.08);
    border: 1px solid var(--line);
    transition: transform .2s var(--ease), background .2s var(--ease);
  }
  
  .contact-links a:hover {
    transform: translateX(3px);
    background: rgba(255,255,255,.13);
  }
  
  /* FOOTER */
  
  footer {
    padding: 28px 0 46px;
    color: var(--muted);
    font-size: .9rem;
  }
  
  .footer-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  
  /* ANIMATION HELPERS */
  
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  
  .reveal.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* SMALL PERFORMANCE HELPERS */
  
  .project-card,
  .media-card,
  .service-card,
  .btn {
    backface-visibility: hidden;
  }
  
  .card-one,
  .card-two,
  .card-three,
  .marquee-track,
  .scroll-indicator::before {
    will-change: transform;
  }
  
  /* RESPONSIVE */
  
  @media (max-width: 980px) {
    .nav-links {
      display: none;
      position: absolute;
      top: calc(100% + 12px);
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: rgba(5,4,9,.96);
    }
  
    .nav-links.open {
      display: flex;
    }
  
    .nav-links a,
    .nav-cta {
      text-align: center;
      justify-content: center;
    }
  
    .mobile-toggle {
      display: block;
    }
  
    .hero-grid,
    .about-panel,
    .contact-content {
      grid-template-columns: 1fr;
    }
  
    .visual-stage {
      min-height: 520px;
      order: -1;
    }
  
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .section-head {
      align-items: start;
      flex-direction: column;
    }
  
    .project-card,
    .project-card:nth-child(1),
    .project-card:nth-child(2),
    .project-card:nth-child(3),
    .project-card:nth-child(4),
    .project-card:nth-child(5),
    .project-card:nth-child(6) {
      grid-column: span 12;
    }
  }
  
  @media (max-width: 640px) {
    .container {
      width: min(100% - 28px, var(--max));
    }
  
    .hero {
      padding-top: 112px;
    }
  
    .visual-stage {
      min-height: 430px;
    }
  
    .orb {
      width: 250px;
      height: 250px;
    }
  
    .card-one {
      width: 220px;
      height: 300px;
    }
  
    .card-two {
      width: 235px;
      height: 170px;
      top: 200px;
    }
  
    .card-three {
      width: 200px;
      height: 145px;
      left: 30px;
    }
  
    .stats,
    .services-grid {
      grid-template-columns: 1fr;
    }
  
    .project-card {
      min-height: 430px;
    }
  
    .footer-row {
      flex-direction: column;
    }
  }
  
  /* ACCESSIBILITY / REDUCED MOTION */
  
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation: none !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }