:root {
  --bg: #070707;
  --fg: #f3f3f0;
  --muted: #8e8e89;
  --line: rgba(255, 255, 255, 0.15);
  --pad: clamp(22px, 4vw, 64px);
  --mono: 'Inter', sans-serif;   
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--bg); } /* GSAP ScrollTrigger needs instant scroll corrections */
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand, strong {
  font-family: "League Spartan", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

#webgl, #dust, .noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#webgl { z-index: 0; opacity: .62; }
#dust { z-index: 1; mix-blend-mode: screen; }
.noise {
  z-index: 2;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand svg { width: 26px; fill: currentColor; stroke: currentColor; stroke-width: 2; }
.brand sup { font: 7px var(--mono); margin-left: 2px; }
.menu-icon { display: inline-flex; width: 12px; height: 8px; margin-left: 5px; flex-direction: column; justify-content: space-between; }
.menu-icon i { height: 1px; width: 100%; background: currentColor; transition: transform .3s; }

main, footer { position: relative; z-index: 3; }


.intro { 
  height: 250vh; 
  overflow-x: clip;            
  position: relative; 
  z-index: 40; 
} 
.intro-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 650px;
  overflow: visible; 
  display: grid; 
}

.intro-copy { 
  position: absolute; 
  z-index: 5; 
  top: 75%; 
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; 
  pointer-events: none; 
  width: 100%;
}
.intro-copy h1 { margin: 0; font-size: clamp(64px, 8.2vw, 138px); line-height: .82; letter-spacing: -.075em; font-weight: 600; }
.intro-copy h1 em { font-style: normal; font-weight: 700; }
.intro-copy p { margin: 24px 0 0; color: #c6c6c1; font-size: clamp(12px, 1vw, 16px); line-height: 1.25; }
.intro-copy h1 .intro-big { display: block; }

.intro-copy h1 .intro-sub { display: block; max-width: min(46ch, 82vw); margin: 24px auto 0; color: #c6c6c1; font-size: clamp(12px, 1vw, 16px); font-weight: 400; line-height: 1.35; letter-spacing: 0; text-wrap: balance; }

.orbit-mark { 
  position: absolute; 
  z-index: 20; 
  left: 50%; 
  top: 50%; 
  width: clamp(130px, 15vw, 240px); 
  transform: translate(-50%, -50%); 
  will-change: transform, opacity; 
}

.orbit-mark img { 
  width: 100%; 
  height: auto; 
  position: relative; 
  z-index: 2; 
}

.logo-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 75px; 
  height: 75px; 
  margin: -37.5px 0 0 -37.5px; 
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 65%);
  opacity: 0;
  z-index: 1; 
  pointer-events: none;
  will-change: transform, opacity;
  mix-blend-mode: screen; 
  filter: blur(25px); 
}


.floating-tile {
  position: absolute;
  z-index: 3;
  will-change: transform, opacity;
}

.floating-tile.image-tile {
  width: clamp(75px, 8vw, 130px); 
  aspect-ratio: 1.52;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.floating-tile.text-tile {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 14px 28px;
  color: #fff;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255,255,255,0.05);
  display: inline-flex;
  justify-content: center;
  align-items: center;
}


.tile-1 { left: 5%; top: 8%; }
.tile-2 { left: 22%; top: 5%; }
.tile-3 { left: 10%; top: 25%; }
.tile-4 { left: 28%; top: 28%; }
.tile-5 { left: 4%; top: 45%; }
.tile-6 { right: 5%; top: 10%; }
.tile-7 { right: 22%; top: 8%; }
.tile-8 { right: 12%; top: 28%; }
.tile-9 { right: 28%; top: 35%; }
.tile-10 { right: 4%; top: 50%; }
.tile-11 { left: 18%; top: 58%; }
.tile-12 { left: 6%; top: 72%; }
.tile-13 { left: 25%; top: 78%; }
.tile-14 { left: 12%; top: 90%; }
.tile-15 { right: 18%; top: 58%; }
.tile-16 { right: 8%; top: 72%; }
.tile-17 { right: 25%; top: 78%; }
.tile-18 { right: 12%; top: 90%; }
.tile-19 { left: 42%; top: 4%; }
.tile-20 { right: 42%; top: 6%; }
.tile-21 { left: 40%; bottom: 5%; }
.tile-22 { right: 40%; bottom: 8%; }
.tile-23 { left: 35%; top: 18%; }
.tile-24 { right: 35%; top: 22%; }

.scroll-cue { position: absolute; z-index: 4; bottom: 30px; left: 50%; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 5px; width: 4px; height: 4px; border-right: 1px solid white; border-bottom: 1px solid white; transform: translateX(-50%) rotate(45deg); animation: cue 1.4s infinite; }
@keyframes cue { 50% { transform: translate(-50%,6px) rotate(45deg); opacity: .3; } }


.work {
  position: relative;
  width: 100%;
  padding: 0 0 20vh;
  z-index: 10;
}

.threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.threads-lines { z-index: 0; }
.threads-dots { z-index: 10; }

.threads path { 
  fill: none; 
  stroke: rgba(255,255,255,.18); 
  stroke-width: 3px; 
  vector-effect: non-scaling-stroke; 
  filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.6)); 
}
.threads circle { fill: #FF9A3D; }

.work-section {
  position: relative;
  z-index: 2; 
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 54px);
  min-height: 100vh;
  align-items: center;
  padding: 10vh var(--pad);
}


.work-section[hidden] { display: none; }


.work-filter {
  position: relative; z-index: 12;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
  padding: 6vh var(--pad) 0;
  font-family: 'Inter', sans-serif;
}
.work-filter__label { font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.work-filter__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.work-filter__btn {
  padding: 10px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 50px;
  background: #0b0b0b; color: #e6e6e6; cursor: pointer;
  font: 600 11px 'Inter', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
  transition: border-color .25s, color .25s, background-color .25s;
}
.work-filter__btn:hover, .work-filter__btn:focus-visible { border-color: #FF9A3D; color: #FF9A3D; }
.work-filter__btn:focus-visible { outline: 2px solid #FF9A3D; outline-offset: 3px; }
.work-filter__btn.is-active { background: #FF9A3D; border-color: #FF9A3D; color: #000; }
.work-filter__more { font: 600 11px 'Inter', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #FF9A3D; text-decoration: none; white-space: nowrap; }
.work-filter__more span[aria-hidden] { display: inline-block; transition: transform .25s; }
.work-filter__more:hover span[aria-hidden] { transform: translateX(6px); }

.project { position: relative; z-index: 2; min-width: 0; }
.project-left { grid-column: 1 / span 6; }
.project-right { grid-column: 7 / span 6; }
.project-center { grid-column: 4 / span 6; }
.project-wide { grid-column: 1 / span 5; }

.project-media {
  --mx: 50%; --my: 50%;
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9; 
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  isolation: isolate;
  transform-origin: center;
  background-color: transparent; 
  box-shadow: 0px 10px 60px rgba(255, 255, 255, 0.07); 
}

.project-image {
  width: 100%;
  height: 100%; 
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
  will-change: transform;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  background: radial-gradient(circle 170px at var(--mx) var(--my), transparent, rgba(0,0,0,.3));
  pointer-events: none;
}

.project-meta { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding-top: 22px; }
.project-meta h2 { margin: 0 0 8px; font-size: clamp(21px, 2vw, 33px); font-weight: 600; letter-spacing: -.02em; }
.project-meta p { margin: 0; color: var(--muted); font-size: clamp(11px, .9vw, 14px); line-height: 1.4; }
.project-link { min-width: 175px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.7); font: 10px var(--mono); text-transform: uppercase; display: flex; justify-content: space-between; }
.project-link span { transition: transform .25s; }
.project-link:hover span { transform: translateX(8px); }

.about { padding: 22vh var(--pad); min-height: 110vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); }
.about h2 { margin:30px 0 60px; font-size:clamp(55px,9vw,150px); line-height:.83; letter-spacing:-.045em; font-weight:600; }
footer { display:flex; justify-content:space-between; padding:30px var(--pad); color:#777; font:9px var(--mono); border-top:1px solid var(--line); }

@media (max-width: 800px) {
  .intro { height:170vh; }.intro-stage{min-height:560px}
  .intro-copy h1{font-size:64px}.intro-copy p,.intro-copy h1 .intro-sub{font-size:11px}
  
  .floating-tile.text-tile { padding: 6px 14px; font-size: 8px; }
  .tile-5, .tile-6, .tile-7, .tile-8, .tile-9, .tile-10, .tile-15, .tile-16, .tile-17, .tile-18, .tile-19, .tile-20, .tile-21, .tile-22, .tile-23, .tile-24 { display: none; }
  
  .work { padding-top: 10vh; }
  .work-filter { justify-content: flex-start; padding: 0 var(--pad) 6vh; }
  .work-filter__buttons { justify-content: flex-start; }
  .work-filter__more { white-space: normal; }
  .work-section { display: block; min-height: auto; padding: 5vh var(--pad) 25vh; }
  .project { width: 100%; margin-bottom: 0; }
  .project:nth-of-type(even){width:88%;margin-left:auto}
  .project-meta { grid-template-columns:1fr; }.project-link{width:100%}
  
  .project-meta p { font-size: 13px; } .project-link { font-size: 12px; } .work-filter__more { font-size: 12px; }
  .threads path { stroke: rgba(255,255,255,.26); stroke-width: 2px; filter: none; }
  
  .about{min-height:80vh}.about h2{font-size:56px}
  footer{gap:20px;flex-direction:column}
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; }
  #webgl, #dust { display:none; }
}

html.lenis, html.lenis body { height: auto; width: 100%; }
.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; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background: #f3f3f0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1), 
              height 0.5s cubic-bezier(0.19, 1, 0.22, 1), 
              background-color 0.3s ease, 
              backdrop-filter 0.3s ease;
  will-change: transform;
}

.cursor.is-active {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  mix-blend-mode: normal;
}

.word { display: inline-block; white-space: pre; }
.char { display: inline-block; will-change: transform, opacity, filter; }
@keyframes rotateSwirl { 
    0% { transform: translate(-50%, -50%) rotate(0deg); } 
    100% { transform: translate(-50%, -50%) rotate(360deg); } 
}
@keyframes sweepLeftRight { 
    0% { transform: translateX(-150%) skewX(-15deg); } 
    100% { transform: translateX(250%) skewX(-15deg); } 
}



@media (max-width: 800px) { .work-filter__label { font-size: 12px; } }
/* Touch screens: no live blur behind the floating tiles (phones stutter) */
@media (hover: none) and (pointer: coarse) {
    .floating-tile.text-tile { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(28, 28, 32, 0.85); }
}
