@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700;800&display=swap');

:root {
  --bg: #06070a;
  --panel: rgba(255, 255, 255, 0.05);
  --text: #f8f7f2;
  --muted: rgba(248, 247, 242, 0.72);
  --accent: #c8ff00;
  --accent-2: #6be9ff;
  --border: rgba(255, 255, 255, 0.1);
}

/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff8c00 0%, #ff5200 50%, #c93100 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #ffffff;
}

.loader {
  --ANIMATION-DELAY-MULTIPLIER: 70ms;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.loader span {
  padding: 0;
  margin: 0;
  letter-spacing: -0.2rem;
  transform: translateY(4rem);
  animation: hideAndSeek 1.2s alternate infinite cubic-bezier(0.86, 0, 0.07, 1);
  color: #ffffff;
}

.letter {
  height: 2.5rem;
  width: auto;
}

.progress-container {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transition: width 0.1s ease;
}

.percentage {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
}

@keyframes hideAndSeek {
  0% { transform: translateY(4rem); }
  100% { transform: translateY(0rem); }
}

.loader .l { animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 0); }
.loader .o { animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 1); }
.loader .a { animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 2); }
.loader .d { animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 3); }
.loader .ispan { animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 4); }
.loader .n { animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 5); }
.loader .g { animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 6); }

* { box-sizing: border-box; cursor: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Space Grotesk', system-ui, sans-serif; }

/* Lenis Smooth Scroll Fixes */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background: #ffffff;
}

a { color: inherit; text-decoration: none; }
.page { width: min(1200px, calc(100vw - 48px)); margin: 0 auto; }

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  background-color: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1), height 0.3s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  transition: transform 0.4s ease;
}

.custom-cursor.hover {
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-cursor.hover::after {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: #fff;
}

/* Hero Section */
.hero-wrapper {
  background: linear-gradient(135deg, #ff8c00 0%, #ff5200 50%, #c93100 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 80px 70px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 150px 40px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2.5px 2.5px at 60px 140px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 180px 180px, rgba(255,255,255,0.4), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.nav { display: flex; gap: 40px; }
.hire-me { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #fff;
  font-size: 0.7rem;
}

.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  padding-bottom: 50px;
}

.hero-bg-text {
  position: absolute;
  text-align: center;
  width: 100%;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.85;
}

.hero-top-text {
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  transform: scaleY(1.3);
}

.hero-bottom-text {
  font-size: clamp(6rem, 25vw, 22rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: -0.03em;
  transform: scaleY(1.3);
  margin-top: 2vw;
}

.hero-image {
  position: relative;
  z-index: 5;
  max-width: 600px;
  width: 90%;
  height: auto;
  object-fit: cover;
  transition: transform 0.1s ease-out;
  pointer-events: none;
}

.hero-floating-text {
  position: absolute;
  z-index: 6;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.left-text {
  bottom: 8%;
  left: 40px;
}

.right-text {
  top: 50%;
  right: 40px;
  text-align: right;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .hero-top-text, .hero-bottom-text {
    transform: scaleY(1.1);
  }
  .left-text, .right-text {
    position: static;
    text-align: center;
    margin: 20px;
    transform: none;
  }
  .header {
    flex-direction: column;
    gap: 20px;
  }
  .hero-section {
    flex-direction: column;
  }
}

/* Showreel Section */
.showreel-section {
  position: relative;
  height: 200vh;
  background: var(--bg);
}

.showreel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showreel-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  transform: scale(0.5);
  border-radius: 40px;
  transform-origin: center;
  will-change: transform, border-radius;
}

/* ═══════════════════════════════════════════════════════════
   WORKFLOW SHOWCASE SECTION (Weavy-style node pipeline)
═══════════════════════════════════════════════════════════ */
.workflow-section {
  position: relative;
  background: linear-gradient(160deg, #eef1f5 0%, #f4f6f9 40%, #e8ecf2 100%);
  color: #171717;
  overflow: hidden;
  padding: 100px 0 80px;
}

.workflow-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(200, 210, 230, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(180, 200, 220, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

.workflow-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Copy block ── */
.workflow-copy {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.workflow-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #ff6b2c;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.workflow-title {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}

/* ── Canvas (node graph area) ── */
.workflow-canvas {
  position: relative;
  width: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── SVG connector lines ── */
.workflow-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.wf-line {
  fill: none;
  stroke: rgba(160, 175, 195, 0.7);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  animation: wfDash 2.4s linear infinite;
}

@keyframes wfDash {
  to { stroke-dashoffset: -40; }
}

.wf-dot {
  fill: rgba(140, 155, 175, 0.9);
  r: 4;
}

.wf-pulse {
  fill: #ff6b2c;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(255, 107, 44, 0.8));
}

.wf-pulse--2 { fill: #ff8c00; }
.wf-pulse--3 { fill: #c93100; }

/* ── Node cards ── */
.wf-node {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  border: 1px solid rgba(200, 210, 225, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
}

.wf-node.wf-visible {
  animation: wfNodeIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes wfNodeIn {
  to { opacity: 1; transform: translateY(0); }
}

.wf-node:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(255, 107, 44, 0.1);
}

.wf-node-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 8px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #888;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.wf-node-label--sm {
  padding: 8px 12px 6px;
  font-size: 0.6rem;
}

.wf-badge {
  background: rgba(0,0,0,0.08);
  color: #555;
  font-size: 0.58rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.wf-badge--img { background: rgba(100, 149, 237, 0.15); color: #4a6fa5; }
.wf-badge--text { background: rgba(100, 180, 130, 0.15); color: #3a7a5a; }
.wf-badge--vid { background: rgba(255, 107, 44, 0.15); color: #c93100; }

.wf-node-media {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.wf-node-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.wf-node:hover .wf-node-media video { transform: scale(1.04); }

.wf-node-media--sm { aspect-ratio: 1/1; }

.wf-node-text-body {
  padding: 14px 16px;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(40, 40, 40, 0.75);
  max-width: 240px;
}

/* ── Precise card positions (desktop) ── */
.wf-node--3d {
  left: 0%;
  top: 50%;
  transform: translateY(-50%) translateY(30px);
  width: clamp(150px, 14%, 175px);
  animation-delay: 0.1s;
}

.wf-node--image {
  left: 22%;
  top: 10%;
  width: clamp(185px, 20%, 225px);
  animation-delay: 0.22s;
}

.wf-node--text {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  width: 230px;
  animation-delay: 0.38s;
}

.wf-node--flux {
  right: 22%;
  top: 55%;
  width: clamp(160px, 16%, 195px);
  animation-delay: 0.5s;
}

.wf-node--video {
  right: 0%;
  top: 10%;
  width: clamp(185px, 20%, 225px);
  animation-delay: 0.64s;
}

/* ── Float animations for each card ── */
.wf-node--3d   { animation: wfNodeIn 0.7s cubic-bezier(0.23,1,0.32,1) 0.1s  forwards, wfFloat1 5.5s 0.8s ease-in-out infinite; }
.wf-node--image { animation: wfNodeIn 0.7s cubic-bezier(0.23,1,0.32,1) 0.22s forwards, wfFloat2 6.2s 0.9s ease-in-out infinite; }
.wf-node--text  { animation: wfNodeIn 0.7s cubic-bezier(0.23,1,0.32,1) 0.38s forwards, wfFloat3 5.8s 1.0s ease-in-out infinite; }
.wf-node--flux  { animation: wfNodeIn 0.7s cubic-bezier(0.23,1,0.32,1) 0.5s  forwards, wfFloat1 6.0s 1.1s ease-in-out infinite; }
.wf-node--video { animation: wfNodeIn 0.7s cubic-bezier(0.23,1,0.32,1) 0.64s forwards, wfFloat2 5.4s 1.2s ease-in-out infinite; }

@keyframes wfFloat1 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes wfFloat2 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes wfFloat3 {
  0%, 100% { transform: translate(-50%,-50%) translateY(0px); }
  50%       { transform: translate(-50%,-50%) translateY(-10px); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .workflow-canvas {
    min-height: 700px;
    flex-direction: column;
    gap: 14px;
  }

  .workflow-connectors { display: none; }

  .wf-node {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 380px;
    margin: 0 auto;
  }

  .wf-node-media { aspect-ratio: 16/9; }
  .wf-node-media--sm { aspect-ratio: 16/9; }

  .wf-node--3d,
  .wf-node--image,
  .wf-node--text,
  .wf-node--flux,
  .wf-node--video {
    animation: wfNodeIn 0.7s cubic-bezier(0.23,1,0.32,1) forwards;
  }
}

@media (max-width: 600px) {
  .workflow-section { padding: 60px 0 50px; }
  .workflow-inner { padding: 0 20px; }
  .workflow-title { font-size: clamp(2.2rem, 12vw, 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .wf-line { animation: none; }
  .wf-node { animation: none !important; opacity: 1 !important; transform: none !important; }
  .wf-node--text { transform: translate(-50%, -50%) !important; }
}

/* Keep old orbit CSS removed - replaced above */
.orbit-showcase-section,
.orbit-showcase-bg,
.orbit-showcase-rings,
.orbit-showcase-glow,
.orbit-showcase-copy,
.orbit-tagline,
.orbit-title,
.orbit-desc,
.orbit-stage,
.orbit-center-card,
.orbit-center-image,
.orbit-card { display: none !important; }



.footer-stage {
  margin-top: 0;
  background: linear-gradient(135deg, #ff8c00 0%, #ff5200 50%, #c93100 100%);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.footer-shutter {
  display: none; /* Temporarily disable shutter to fix visibility */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8f7f2;
  z-index: 100;
  transform: translateX(-100%);
  pointer-events: none;
}

.footer-card {
  opacity: 1 !important; /* Force visibility */
  background: #efe9df;
  border-radius: 12px;
  border: 1px solid rgba(94, 47, 37, 0.24);
  color: #5d392f;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 36px 34px;
}

.footer-brand-block {
  flex: 2;
  min-width: 300px;
}

.footer-brand-block h3 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.footer-role {
  margin: 12px 0 28px;
  color: rgba(93, 57, 47, 0.78);
  font-size: 0.96rem;
}

.footer-visit {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #5f3a31;
  color: #efe9df;
  border: 1px solid rgba(95, 58, 49, 0.7);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.94rem;
}

.footer-lines {
  margin: 12px 0 0;
  font-size: 1.03rem;
  color: rgba(93, 57, 47, 0.92);
}

.footer-social-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.footer-social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #5d392f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 150px;
}

.footer-links-column h4 {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: #5d392f;
}

.footer-links-column a,
.footer-links-column span {
  color: rgba(93, 57, 47, 0.72);
  font-size: 1.05rem;
}

.footer-player-card {
  flex: 1.5;
  min-width: 320px;
  background: #4c5964;
  color: #e8edf1;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.player-top {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  padding: 16px;
}

.player-cover-grid {
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.player-cover-grid video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #202830;
}

.player-copy { align-self: center; }
.player-title {
  margin: 0;
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.player-sub {
  margin: 8px 0 0;
  font-size: 1rem;
  color: rgba(232, 237, 241, 0.86);
}

.player-list {
  background: rgba(41, 53, 62, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 14px;
}

.player-list > div {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  padding: 6px 0;
  color: rgba(232, 237, 241, 0.88);
  font-size: 0.95rem;
}

.footer-social-strip {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 8px;
}

.strip-label {
  background: #f7f2ea;
  color: #b84e2a;
  border-radius: 999px;
  border: 2px solid rgba(247, 242, 234, 0.8);
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 0 14px;
}

.strip-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.strip-scroller video {
  width: 140px;
  height: 118px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex: 0 0 auto;
  background: #202830;
}

.footer-bottom-bar {
  margin: 0 -20px;
  background: #5c392f;
  color: #efe9df;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  letter-spacing: 0.12em;
  font-size: 0.86rem;
}



@media (max-width: 980px) {
  .footer-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px;
  }

  .footer-social-strip {
    grid-template-columns: 1fr;
  }

  .strip-label {
    min-height: 64px;
    width: 100%;
  }

  .footer-bottom-bar {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
  }
}

@media (max-width: 720px) {
  .page { width: min(100vw - 28px, 1200px); }
}

/* Work Section - Pinterest Masonry Style */
.work-masonry-section {
  padding: 100px 40px;
  background-color: #f8f7f2;
}

.work-container {
  max-width: 1400px;
  margin: 0 auto;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.masonry-item {
  position: relative;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 20px;
}

.masonry-num {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  color: #000;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
}

.masonry-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Height Varieties for Masonry Feel */
.item-short { aspect-ratio: 1/1; }
.item-medium { aspect-ratio: 4/5; }
.item-long { aspect-ratio: 2/3; }

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
    column-gap: 20px;
    display: block; /* Switch to column-count for true masonry on desktop */
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
    column-gap: 30px;
  }
}

@media (max-width: 767px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  .work-masonry-section {
    padding: 60px 20px;
  }
}
/* Work Section - Cinematic Shader Stack */
.work-section {
  position: relative;
  padding: clamp(80px, 8vw, 140px) 40px clamp(90px, 10vw, 160px);
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 0, 0, 0.04), transparent 24%),
    radial-gradient(circle at 90% 20%, rgba(0, 0, 0, 0.035), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f4 100%);
  overflow: hidden;
}

.work-section::before,
.work-section::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.45;
}

.work-section::before {
  width: 320px;
  height: 320px;
  top: -60px;
  left: -80px;
  background: rgba(0, 0, 0, 0.05);
}

.work-section::after {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: 8%;
  background: rgba(0, 0, 0, 0.04);
}

.work-section-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.work-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.work-section-copy {
  margin: 0;
  color: rgba(0, 0, 0, 0.66);
  font-size: 1rem;
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work-panel {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.12);
  isolation: isolate;
}

.work-panel--feature {
  grid-column: 1 / -1;
  min-height: min(82vh, 780px);
}

.work-panel--image {
  min-height: 520px;
}

.work-panel-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.work-panel-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.work-panel--image .work-panel-media {
  object-fit: cover;
}

.work-panel-shader {
  position: absolute;
  inset: -12%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.55), transparent 24%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.08), transparent 22%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 42%, rgba(0, 0, 0, 0.06) 58%, transparent 84%);
  mix-blend-mode: multiply;
  opacity: 0.5;
  transform: translate3d(0, 0, 0);
  animation: shaderDrift 12s linear infinite;
}

.work-panel-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

@keyframes shaderDrift {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1.02);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.08);
    filter: hue-rotate(18deg);
  }
  100% {
    transform: translate3d(-2%, -2%, 0) scale(1.02);
    filter: hue-rotate(0deg);
  }
}

@media (max-width: 1024px) {
  .work-section-heading {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-panel,
  .work-panel--feature,
  .work-panel--image {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .work-section {
    padding: 72px 18px 100px;
  }

  .work-grid {
    gap: 16px;
  }

  .work-panel {
    min-height: 300px;
    border-radius: 22px;
  }

  .work-panel--feature,
  .work-panel--image {
    min-height: 320px;
  }

  .work-panel-meta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    font-size: 0.7rem;
  }
}

/* Portfolio About Section (Restored Colors) */
.portfolio-about-section {
  background-color: #f8f7f2;
  color: #ff3300;
  padding: 150px 40px;
  font-family: 'Space Grotesk', sans-serif;
  overflow: hidden;
}

.portfolio-about-container {
  max-width: 1400px;
  margin: 0 auto;
}

.animate-anything-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 100px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.text-line {
  display: flex;
  align-items: center;
  position: relative;
  gap: 20px;
}

.text-line.indented {
  margin-left: 1ch;
}

.icon-ae, .icon-figma, .icon-3d {
  display: inline-flex;
  position: relative;
  z-index: 2;
}

.icon-ae img {
  height: 0.7em;
  transform: translateY(-0.05em);
}

.icon-figma {
  margin: 0 0.05em;
}

.icon-figma img {
  height: 0.6em;
}

.icon-3d {
  background: #ff3300;
  color: #f8f7f2;
  font-size: 0.25em;
  font-weight: 900;
  padding: 5px 15px;
  border-radius: 100px;
  transform: rotate(-10deg);
}

.arrow-icon {
  font-size: 0.8em;
  margin-left: 10px;
}

.portfolio-gallery-marquee {
  margin-top: 18px;
  overflow: hidden;
  position: relative;
  padding: 8px 0 4px;
}

.portfolio-gallery-marquee::before,
.portfolio-gallery-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 3;
}

.portfolio-gallery-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #f8f7f2 0%, rgba(248, 247, 242, 0) 100%);
}

.portfolio-gallery-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #f8f7f2 0%, rgba(248, 247, 242, 0) 100%);
}

.portfolio-gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: galleryMarquee 28s linear infinite;
}

.portfolio-gallery-marquee:hover .portfolio-gallery-track {
  animation-play-state: paused;
}

.gallery-item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(160px, 20vw, 240px);
  height: clamp(120px, 14vw, 170px);
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
  background: #f1efea;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  isolation: isolate;
}

.gallery-num {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 0.75rem;
  color: #111111;
  font-weight: 600;
  z-index: 2;
  background: rgba(255, 255, 255, 0.82);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.gallery-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  min-height: 100%;
}

.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 25%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
  z-index: 1;
}

.gallery-item--sm {
  width: clamp(160px, 20vw, 220px);
  height: clamp(120px, 14vw, 155px);
}

@keyframes galleryMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Video Lightbox Styles */
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.lightbox-video-container {
  position: relative;
  width: 90%;
  height: 85%;
  max-width: 1400px;
}

.lightbox-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  font-family: 'Space Grotesk', sans-serif;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

@media (max-width: 720px) {
  .portfolio-gallery-marquee {
    margin-top: 14px;
    padding: 6px 0 2px;
  }

  .portfolio-gallery-marquee::before,
  .portfolio-gallery-marquee::after {
    width: 36px;
  }

  .portfolio-gallery-track {
    gap: 12px;
    animation-duration: 20s;
  }

  .gallery-item,
  .gallery-item--sm {
    width: 150px;
    height: 110px;
    border-radius: 14px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-gallery-track {
    animation: none;
    transform: none;
  }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  color: rgba(255, 51, 0, 0.6);
  text-transform: uppercase;
  display: block;
}

.section-label.dark {
  color: rgba(0, 0, 0, 0.4);
}

/* Services List Section (Enhanced) */
.services-list-section {
  background-color: #f8f7f2;
  color: #000;
  padding: 150px 40px;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  overflow: hidden;
}

.services-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(10rem, 30vw, 30rem);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.service-row {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 50px 0;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.service-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ff3300;
  transition: width 0.5s ease;
}

.service-row:hover::after {
  width: 100%;
}

.service-row:hover {
  padding-left: 30px;
  color: #ff3300;
  background: rgba(255, 51, 0, 0.02);
}

.service-index {
  font-size: 1rem;
  width: 100px;
  font-weight: 500;
}

.service-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  flex: 1;
  text-transform: uppercase;
}

.service-desc {
  width: 300px;
  font-size: 1.1rem;
  opacity: 0.7;
  padding: 0 40px;
}

.service-arrow {
  font-size: 2.5rem;
  transition: transform 0.4s ease;
}

.service-row:hover .service-arrow {
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .service-row {
    flex-wrap: wrap;
    gap: 20px;
  }
  .service-desc {
    width: 100%;
    padding: 0;
  }
}

