*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --black:  #0a0a0a;
      --white:  #f0eeea;
      --red:    #d93030;
      --gray:   #161616;
      --mid:    #2e2e2e;
      --muted:  #666;
      --font-display: 'Bebas Neue', sans-serif;
      --font-body:    'DM Sans', sans-serif;
      --font-mono:    'Space Mono', monospace;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--black);
      color: var(--white);
      font-family: var(--font-body);
      overflow-x: hidden;
      cursor: none;
    }

    a { text-decoration: none; color: inherit; }
    ul { list-style: none; }

    /* ── CUSTOM CURSOR ── */
    #cursor {
      position: fixed;
      width: 10px; height: 10px;
      background: var(--red);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
      transition: width .15s, height .15s, background .15s;
    }
    #cursor-ring {
      position: fixed;
      width: 38px; height: 38px;
      border: 1px solid rgba(217,48,48,.45);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9998;
      transform: translate(-50%, -50%);
      transition: width .3s ease, height .3s ease, border-color .3s ease;
    }
    .cursor-grow #cursor { width: 18px; height: 18px; background: var(--white); }
    .cursor-grow #cursor-ring { width: 60px; height: 60px; border-color: rgba(240,238,234,.3); }
    .cursor-grow #cursor .petal { fill: #d93030; }
    .cursor-grow #cursor #cursor-petals rect { fill: #d93030 !important; }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 26px 52px;
      transition: background .4s, padding .4s;
    }
    nav.scrolled {
      background: rgba(10,10,10,.9);
      backdrop-filter: blur(12px);
      padding: 16px 52px;
      border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 11px;
    }
    .logo svg { width: 42px; height: 42px; }
    .logo-img { height: 82px; width: auto; display: block; }
    .logo-text {
      font-family: var(--font-display);
      font-size: 17px;
      letter-spacing: .1em;
      line-height: 1.15;
    }

    .nav-links {
      display: flex;
      gap: 42px;
    }
    .nav-links a {
      font-size: 13px;
      font-weight: 400;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--white);
      position: relative;
      padding-bottom: 4px;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0;
      width: 0; height: 1px;
      background: var(--red);
      transition: width .3s ease;
    }
    .nav-links a:hover::after,
    .nav-links a.active::after { width: 100%; }

    /* ── HERO ── */
    .hero {
      position: relative;
      width: 100%;
      height: 100vh;
      min-height: 680px;
      display: flex;
      align-items: flex-end;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      background: #0a0a0a;
      z-index: 0;
    }

    #redGlow {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background: radial-gradient(circle 400px at 50% 50%, rgba(232,180,216,0.18) 0%, transparent 70%);
      transition: background 0s;
    }
    .hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
      opacity: 0;
      z-index: 1;
    }

    #grainCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
      pointer-events: none;
    }

    .hero-name-bg {
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      font-family: var(--font-display);
      font-size: clamp(160px, 22vw, 320px);
      color: rgba(255,255,255,.04);
      white-space: nowrap;
      letter-spacing: -.02em;
      pointer-events: none;
      z-index: 1;
      animation: scrollName 18s linear infinite;
    }
    @keyframes scrollName {
      from { transform: translateY(-50%) translateX(0); }
      to   { transform: translateY(-50%) translateX(-50%); }
    }

    .hero-content {
      position: relative;
      z-index: 10;
      padding: 0 52px 72px;
      width: 100%;
    }

    .hero-tag {
      font-family: var(--font-mono);
      font-size: 16px;
      letter-spacing: .22em;
      color: var(--red);
      text-transform: uppercase;
      margin-bottom: 18px;
    }

    .hero-title {
      font-family: var(--font-display);
      font-size: clamp(72px, 11vw, 160px);
      line-height: .92;
      letter-spacing: -.01em;
      margin-bottom: 38px;
    }
    .hero-title span { display: block; }

    .hero-btns {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--white);
      color: var(--black);
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: .06em;
      text-transform: uppercase;
      padding: 14px 30px;
      border: none;
      transition: background .25s, color .25s;
    }
    .btn-primary:hover { background: var(--red); color: var(--white); }

    .btn-outline {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: transparent;
      color: var(--white);
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: .06em;
      text-transform: uppercase;
      padding: 13px 30px;
      border: 1px solid rgba(255,255,255,.3);
      transition: border-color .25s;
    }
    .btn-outline:hover { border-color: var(--white); }

    .scroll-hint {
      position: absolute;
      right: 52px;
      bottom: 72px;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      font-family: var(--font-mono);
      font-size: 9px;
      letter-spacing: .25em;
      color: var(--muted);
      text-transform: uppercase;
    }
    .scroll-line {
      width: 1px;
      height: 60px;
      background: linear-gradient(to bottom, var(--red), transparent);
      animation: scrollPulse 2s ease-in-out infinite;
    }
    @keyframes scrollPulse {
      0%, 100% { opacity: .4; }
      50%       { opacity: 1; }
    }

    /* ── WORK SECTION ── */
    #work { padding: 100px 52px; }

    .section-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 56px;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(42px, 6vw, 80px);
      letter-spacing: .02em;
    }

    .filter-tabs {
      display: flex;
      gap: 4px;
    }
    .filter-tab {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--muted);
      background: none;
      border: 1px solid transparent;
      padding: 8px 18px;
      cursor: none;
      transition: color .25s, border-color .25s;
    }
    .filter-tab:hover { color: var(--white); }
    .filter-tab.active {
      color: var(--white);
      border-color: rgba(255,255,255,.25);
    }

    /* Project grid */
    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2px;
    }

    .card {
      position: relative;
      overflow: hidden;
      background: var(--gray);
      cursor: none;
      min-height: 240px;
    }
    .card:first-child {
      grid-column: span 2;
      min-height: 340px;
    }

    .card-bg {
      position: absolute;
      inset: 0;
      transition: transform .6s cubic-bezier(.25,.46,.45,.94);
    }
    .card:hover .card-bg { transform: scale(1.04); }

    .card:nth-child(1) .card-bg { background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%); }
    .card:nth-child(2) .card-bg { background: linear-gradient(135deg, #1a1a1a 0%, #222 100%); }
    .card:nth-child(3) .card-bg { background: linear-gradient(135deg, #181818 0%, #2c2c2c 100%); }
    .card:nth-child(4) .card-bg { background: linear-gradient(135deg, #1c1c1c 0%, #262626 100%); }
    .card:nth-child(5) .card-bg { background: linear-gradient(135deg, #1a1a1a 0%, #1e1e1e 100%); }
    .card:nth-child(6) .card-bg { background: linear-gradient(135deg, #202020 0%, #2a2a2a 100%); }

    .card-shape {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity .4s;
    }

    .play-icon {
      width: 52px; height: 52px;
      border: 1.5px solid rgba(255,255,255,.4);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color .3s, transform .3s;
    }
    .card:hover .play-icon { border-color: rgba(255,255,255,.8); transform: scale(1.1); }

    .card-info {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      padding: 28px;
      background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
      transform: translateY(6px);
      transition: transform .4s ease;
    }
    .card:hover .card-info { transform: translateY(0); }

  

.card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--red);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}


.card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
  color: transparent;
  background: transparent;
  backdrop-filter: none;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  transition: color .3s ease, background .3s ease, backdrop-filter .3s ease;
}

.card:hover .card-title {
  color: var(--red);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

    .card-arrow {
      position: absolute;
      top: 28px; right: 28px;
      width: 36px; height: 36px;
      border: 1px solid rgba(255,255,255,.35);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 1;
      transform: translateY(0);
      transition: opacity .3s, transform .3s, border-color .3s, background .3s;
    }
    .card:hover .card-arrow { border-color: rgba(255,255,255,.7); background: rgba(0,0,0,.35); }

    /* ── SERVICES ── */
    #services {
      padding: 100px 52px;
      border-top: 1px solid var(--mid);
      background: var(--gray);
    }

    .services-inner {
      display: grid;
      grid-template-columns: 0.7fr 1.3fr;
      gap: 140px;
      align-items: center;
    }

    .services-tag {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: .25em;
      color: var(--red);
      text-transform: uppercase;
      margin-bottom: 20px;
    }

    .services-title {
      font-family: var(--font-display);
      font-size: clamp(48px, 6vw, 80px);
      line-height: .95;
      letter-spacing: .02em;
      margin-bottom: 28px;
    }

    .services-desc {
      font-size: 15px;
      font-weight: 300;
      line-height: 1.75;
      color: rgba(240,238,234,.6);
      margin-bottom: 20px;
    }

    .services-tagline {
      font-size: 14px;
      color: rgba(240,238,234,.4);
      font-style: italic;
    }

    .services-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
    }

    .service-card {
      padding: 36px 32px;
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.07);
      transition: background .3s, border-color .3s;
      position: relative;
      overflow: hidden;
    }
    .service-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 2px; height: 0;
      background: var(--red);
      transition: height .35s ease;
    }
    .service-card:hover::before { height: 100%; }
    .service-card:hover {
      background: rgba(255,255,255,.055);
      border-color: rgba(255,255,255,.14);
    }

    .service-icon {
      width: 40px; height: 40px;
      margin-bottom: 20px;
    }
    .service-icon svg { width: 40px; height: 40px; }

    .service-name {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: .2em;
      text-transform: uppercase;
      line-height: 1.6;
    }

    /* ── ABOUT EXTRA (education / skills / stats) ── */
    .about-extra {
      margin-top: 40px;
      display: flex;
      flex-direction: column;
      gap: 28px;
    }

    .about-extra-label {
      font-family: var(--font-mono);
      font-size: 9px;
      letter-spacing: .25em;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 12px;
    }

    .about-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .about-tag {
      font-family: var(--font-mono);
      font-size: 9px;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: rgba(240,238,234,.7);
      border: 1px solid rgba(255,255,255,.15);
      padding: 6px 12px;
    }

    .about-stats {
      display: flex;
      gap: 40px;
      border-top: 1px solid rgba(255,255,255,.07);
      padding-top: 28px;
    }

    .about-stat {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .about-stat-num {
      font-family: var(--font-display);
      font-size: clamp(28px, 3.5vw, 44px);
      line-height: 1;
      letter-spacing: .02em;
    }

    .about-stat-desc {
      font-family: var(--font-mono);
      font-size: 9px;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: rgba(240,238,234,.4);
    }

    /* ── FOOTER ── */
    footer {
      padding: 60px 52px;
      border-top: 1px solid var(--mid);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .footer-logo .logo-img { height: 84px; width: auto; display: block; }

    .footer-links {
      display: flex;
      gap: 28px;
    }
    .footer-links a {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--muted);
      transition: color .25s;
    }
    .footer-links a:hover { color: var(--white); }

    .footer-copy {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: .1em;
      color: var(--muted);
    }

    .footer-available {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .available-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 6px #4ade80;
      animation: pulse-dot 2s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes pulse-dot {
      0%, 100% { opacity: 1; box-shadow: 0 0 6px #4ade80; }
      50%       { opacity: 0.5; box-shadow: 0 0 12px #4ade80; }
    }

    .available-text {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: #4ade80;
    }

    /* ── SCROLL REVEAL ── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity .75s ease, transform .75s ease;
    }
    .reveal.visible { opacity: 1; transform: none; }
    .reveal-delay-1 { transition-delay: .1s; }
    .reveal-delay-2 { transition-delay: .2s; }
    .reveal-delay-3 { transition-delay: .3s; }
    .reveal-delay-4 { transition-delay: .4s; }
    .reveal-delay-5 { transition-delay: .5s; }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      nav, nav.scrolled { padding: 22px 28px; }
      .hero-content { padding: 0 28px 60px; }
      .scroll-hint { right: 28px; bottom: 60px; }
      #work { padding: 70px 28px; }
      .grid { grid-template-columns: 1fr 1fr; }
      .card:first-child { grid-column: span 2; }
      #services { padding: 70px 28px; }
      .services-inner { grid-template-columns: 1fr; gap: 50px; }
      footer { padding: 44px 28px; flex-direction: column; gap: 28px; text-align: center; }
      .footer-links { justify-content: center; }
    }
    @media (max-width: 600px) {
      .nav-links { display: none; }
      .grid { grid-template-columns: 1fr; }
      .card:first-child { grid-column: span 1; }
      .services-grid { grid-template-columns: 1fr; }
      .section-header { flex-direction: column; gap: 24px; }
    }


.card-shape {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none; /* remove scale unless you want zoom */
}

#work .grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.carousel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.carousel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.carousel-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  width: 90vw;
  max-width: 1200px;
  height: 80vh;
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
}

/* LEFT SIDE */
.carousel-left {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0d0d0d;
  padding: 40px;
}

.carousel-track-wrap {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.77, 0, .18, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-height: 60vh;
  max-width: 100%;
  object-fit: contain;
}

.carousel-nav {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-nav.prev { left: 16px; }
.carousel-nav.next { right: 16px; }
.carousel-nav:hover { background: rgba(255,255,255,.15); }

.carousel-dots-wrap {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  padding: 0;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
}

/* RIGHT SIDE — case study */
.carousel-right {
  background: #111;
  border-left: 1px solid rgba(255,255,255,.07);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.carousel-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}

.carousel-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: .04em;
  line-height: 1;
  margin: 0;
}

.carousel-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,238,234,.5);
  line-height: 1.7;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.carousel-study {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carousel-study-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.carousel-study-block:empty { display: none; }

.study-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240,238,234,.3);
}

.study-value {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,238,234,.75);
  line-height: 1.65;
}

.carousel-desc:empty { display: none; }

.carousel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 10px;
  margin-bottom: 6px;
  padding: 12px 22px;
  background: #e8b4d8;
  color: #1a1a1a;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.carousel-link:hover {
  background: #f1c9e3;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232,180,216,.35);
}

.carousel-link svg { transition: transform .2s ease; }
.carousel-link:hover svg { transform: translateX(3px); }
.carousel-link[hidden] { display: none; }

.carousel-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
  z-index: 1001;
}

.carousel-close:hover { background: rgba(255,255,255,.15); }
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  padding: 0;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
}