/* ============================================================
   STYLE.CSS — Global Design System
   Suj Development · Digital Studio
   Aesthetic: Brutalist Elegance / Studio Namma DNA
   ============================================================ */

/* -------------------------------------------------------
   1. DESIGN TOKENS
------------------------------------------------------- */
:root {
  /* Pure black Studio Namma aesthetic */
  --color-bg:        #000000;
  --color-surface:   #0D0D0D;
  --color-border:    #1A1A1A;
  --color-text:      #FFFFFF;
  --color-muted:     #666666;
  --color-accent:    #E8D5B7;
  --color-hover:     #FFFFFF;
  --color-green:     #4ade80;
  --font-display:    'Space Grotesk', sans-serif;
  --font-body:       'Inter', sans-serif;
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.87, 0, 0.13, 1);
}

/* -------------------------------------------------------
   2. GLOBAL RESET
------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  visibility: visible;
  opacity: 1;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

ul {
  list-style: none;
}

/* -------------------------------------------------------
   3. MANDATORY SPLITTYPE FAILSAFE — DO NOT MODIFY
------------------------------------------------------- */
.word {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-right: 0.2em;
  line-height: 1.1;
}

.char {
  display: inline-block;
}

h1 {
  display: flex;
  flex-wrap: wrap;
}

/* -------------------------------------------------------
   4. PRELOADER — #namma-preloader
   Three-zone layout:
     - .preloader-subtitle  → top-left
     - .preloader-name-wrap → absolute centre-stage
     - .preloader-bottom    → bottom-left (counter + bar)
------------------------------------------------------- */
#namma-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  background: #000000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  will-change: transform;
  pointer-events: all;
  overflow: hidden;
}

.preloader-subtitle {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  flex-shrink: 0;
}

.preloader-name-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

/*
  CRITICAL: visibility:hidden not display:none.
  SplitType must measure char widths before the element is visible.
  JS flips visibility:visible at the exact timeline step via tl.call().
*/
.preloader-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1;
  text-align: center;
  visibility: hidden;
  display: block; /* Override global h1 flex to fix centring */
}

.preloader-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}

.preloader-counter {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

#preloader-count {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 15rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--color-text);
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  display: inline-block;
  will-change: transform, opacity;
}

.preloader-percent {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--color-muted);
  margin-left: 0.15em;
  line-height: 1;
  will-change: transform, opacity;
}

.preloader-bar {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  position: relative;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: none;
}

/* -------------------------------------------------------
   5. CUSTOM CURSOR
------------------------------------------------------- */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform, width, height;
  transition:
    width 0.3s var(--ease-out-expo),
    height 0.3s var(--ease-out-expo),
    background 0.3s ease;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cursor.is-hovering {
  width: 56px;
  height: 56px;
  background: var(--color-hover);
}

#cursor.is-view-mode {
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  mix-blend-mode: normal;
}

#cursor-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bg);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
}

#cursor.is-view-mode #cursor-label {
  opacity: 1;
}

/* -------------------------------------------------------
   6. NAVIGATION
------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-ticker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* -------------------------------------------------------
   7. PAGE TRANSITION OVERLAY
------------------------------------------------------- */
/*
  Starts at translateY(0) — COVERING the viewport.
  On load: GSAP animates to yPercent:-100 (lifts up, reveals content).
  On exit: GSAP animates from yPercent:-100 → yPercent:0 (drops to cover).
*/
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--color-bg);
  transform: translateY(0%);
  pointer-events: none;
  will-change: transform;
}

/* -------------------------------------------------------
   8. HERO SECTION — Video, overlays, content
------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  overflow: hidden;
}

/* Background video — z-index 0
   Class works for both .hero-video and .hero-bg-video */
.hero-video,
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay — flat rgba, no gradients, pure black vibe — z-index 1 */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Noise texture — z-index 2 */
.hero-noise {
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
  pointer-events: none;
  opacity: 0.05;
  z-index: 2;
}

/* Hero content — z-index 3 (above all overlays) */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  padding-top: 6rem;
}

/* Agency pill tags */
.hero-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.35rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
}

/* Massive H1 */
/* opacity:0 baseline — prevents FOUC flash before SplitType initializes.
   gsap.set('.hero-title', { autoAlpha: 1 }) re-shows it at exactly
   the right frame inside initHeroAnimation(). */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  will-change: transform;
  opacity: 0;
  /* SplitType failsafe: display:flex flex-wrap:wrap from global h1 rule */
}

/* SplitType line mask — each .line wraps its words as a clip container
   so the y:100 → 0 translate produces a clean 'reveal from below' effect
   without words bleeding into adjacent lines during the animation. */
.hero-title .line {
  overflow: hidden;
  padding-bottom: 0.1em; /* prevents descender clipping on letters like g/y */
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  will-change: transform;
}

/* Two CTA buttons side by side */
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  will-change: transform;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition:
    color 0.4s var(--ease-out-expo),
    border-color 0.4s ease;
  will-change: transform;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-hover);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: 0;
}

.hero-cta:hover {
  color: var(--color-bg);
  border-color: var(--color-hover);
}

.hero-cta:hover::before {
  transform: translateY(0%);
}

.hero-cta > * {
  position: relative;
  z-index: 1;
}

/* Ghost CTA variant */
.hero-cta--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-muted);
}

.hero-cta--ghost::before {
  background: var(--color-accent);
}

.hero-cta--ghost:hover {
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* Scroll indicator — bottom right, raised to clear the availability badge */
.hero-scroll-indicator {
  position: absolute;
  bottom: 6rem;
  right: 2.5rem;
  left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scroll-line-anim 1.8s var(--ease-in-out) infinite;
}

@keyframes scroll-line-anim {
  0%   { top: -100%; }
  50%  { top: 0%; }
  100% { top: 100%; }
}

.scroll-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Availability badge — bottom right */
.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  z-index: 3;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  animation: badge-pulse 2.2s ease infinite;
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* -------------------------------------------------------
   9. MARQUEE SECTION
------------------------------------------------------- */
.marquee-track {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
  background: var(--color-bg);
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0 2.5rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.marquee-sep {
  color: var(--color-accent);
  padding: 0 1rem;
}

.marquee-track:hover .marquee-item:not(.marquee-sep) {
  color: var(--color-text);
}

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

.marquee-track:hover .marquee-inner {
  animation-play-state: paused;
}

/* -------------------------------------------------------
   9B. DEVICE SHOWCASE — Floating phone UI section
------------------------------------------------------- */
.device-showcase {
  background: #000000;
  padding: 10rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.device-wrapper {
  width: 85vw;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  will-change: transform;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(232, 213, 183, 0.12),
    0 0 120px rgba(232, 213, 183, 0.06);
}

.device-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------
   10. QUOTE SECTION — Massive scrub-opacity philosophy text
------------------------------------------------------- */
.quote-section {
  padding: 12rem 0 10rem;
  overflow: hidden;
}

.quote-inner {
  padding: 0 2.5rem;
  max-width: 1400px;
}

.quote-overline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 4rem;
}

/*
  The quote text itself. Words start at opacity:0.12 via GSAP set()
  and scrub to opacity:1 as each word enters the scroll zone.
  The .word wrapper from SplitType (via global failsafe) handles spacing.
*/
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

/* -------------------------------------------------------
   10B. SHOWREEL SECTION — Full-width cinematic video
------------------------------------------------------- */
.showreel-section {
  padding: 5rem 2.5rem;
  background: var(--color-bg);
}

.showreel-video {
  display: block;
  width: 100%;
  max-height: 85vh;
  object-fit: cover;
  border-radius: 12px;
  will-change: transform;
}

/* -------------------------------------------------------
   11. SELECTED WORK — Asymmetric 2-column homepage grid
------------------------------------------------------- */
.work-index-section {
  padding: 8rem 0 10rem;
}

/* Section header: 2-col, headline left, desc right */
.work-index-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  padding: 0 2.5rem 5rem;
}

.work-index-overline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.work-index-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--color-text);
  /* Not split by SplitType, so override the global h1 flex for layout */
  display: block;
}

.work-index-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.work-index-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  position: relative;
  will-change: transform;
}

.work-index-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out-expo);
}

.work-index-link:hover::after {
  width: 100%;
}

/* The asymmetric grid container */
.work-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0 2.5rem;
  align-items: start;
}

/* Each project card */
.work-index-item {
  position: relative;
  overflow: hidden;
  cursor: none;
  background: var(--color-surface);
  will-change: transform, opacity;
}

/* Asymmetric height classes */
.wi-tall  { aspect-ratio: 3/4; }
.wi-wide  { aspect-ratio: 16/9; }

/* Vertical offsets to break the grid rhythm */
.wi-push-down { margin-top: 7rem; }
.wi-pull-up   { margin-top: -5rem; }

/* Image wrapper for parallax overflow clip */
.wi-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-index-item img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  display: block;
  transition: filter 0.5s ease;
  filter: grayscale(20%) brightness(0.85);
  will-change: transform;
}

.work-index-item:hover img {
  filter: grayscale(0%) brightness(1);
}

/* Project live-link wrapper */
.project-link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-link img {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.project-link:hover img {
  transform: scale(0.98);
  opacity: 0.8;
}

/* Portfolio link — work grid & carousel items */
.portfolio-link {
  display: block;
  overflow: hidden;
}

.portfolio-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-link:hover img {
  transform: scale(1.03);
}

/* Meta overlay — slides up on hover */
.wi-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.4) 60%,
    transparent 100%
  );
  transform: translateY(calc(100% - 3.5rem));
  transition: transform 0.6s var(--ease-out-expo);
  z-index: 2;
}

.work-index-item:hover .wi-meta {
  transform: translateY(0);
}

.wi-index {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.wi-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.wi-tags {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.work-index-footer {
  padding: 5rem 2.5rem 0;
}

/* -------------------------------------------------------
   11B. SERVICES ROSTER — Studio Namma vertical hover list
   -------------------------------------------------------

   TWO-COLUMN LAYOUT:
   - Left  (.services-media)  → sticky media panel, ~40vw wide
   - Right (.services-list)   → flex-1, massive stacked text items

   MEDIA STACKING:
   All .services-media-item are position:absolute and overlay each
   other inside the sticky container. Default: opacity:0, scale:1.05.
   GSAP cross-fades them on hover: opacity:1, scale:1, duration:0.5.

   TEXT DEFAULT/HOVER STATE:
   .services-list color is set to rgba(255,255,255,0.12) — ghost white.
   .services-list:has(.services-item:hover) further dims all siblings
   while the specific hovered .services-item turns full white.
   This creates the "spotlight" effect on the active item.
------------------------------------------------------- */

.services-roster {
  display: grid;
  grid-template-columns: 40vw 1fr;
  min-height: 100svh;
  border-top: 1px solid var(--color-border);
}

/* ---- LEFT: Sticky media panel ---- */
.services-media {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  border-right: 1px solid var(--color-border);
}

.services-media-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* All images are absolutely stacked — invisible until JS shows them */
.services-media-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
  /* Start from scale:1.05 so GSAP can zoom-in to scale:1 on enter */
  transform: scale(1.05);
}

/* Covers both <img> and <video> children — same fill behaviour */
.services-media-item img,
.services-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- RIGHT: Massive text roster ---- */
.services-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem 6rem 4rem;
  border-left: none; /* border is on media-right */
}

/* Each row: name + sub on the left, index number on the right */
.services-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: none;
  position: relative;

  /* DEFAULT: all items are dim ghost white */
  color: rgba(255, 255, 255, 0.12);
  transition: color 0.4s var(--ease-out-expo);
  will-change: color;
}

.services-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/*
  HOVER STATE:
  When any item inside .services-list is hovered, the list dims slightly
  further. The hovered item itself jumps to full white.
  This is the "spotlight" pattern — all siblings fade, active glows.
*/
.services-list:has(.services-item:hover) .services-item {
  color: rgba(255, 255, 255, 0.08);
}

.services-item:hover {
  color: var(--color-text) !important;
}

/* After-line: accent underline grows on hover */
.services-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.5s var(--ease-out-expo);
}

.services-item:hover::after {
  width: 100%;
}

.services-item-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* The massive service name */
.services-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  display: block;
  transition: letter-spacing 0.4s var(--ease-out-expo);
}

/* Subtle open out on hover */
.services-item:hover .services-name {
  letter-spacing: -0.02em;
}

/* Small brutalist subtitle below the name */
.services-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.3s ease 0.1s,
    transform 0.3s ease 0.1s;
  display: block;
}

.services-item:hover .services-sub {
  opacity: 1;
  transform: translateY(0);
}

/* Index number — top-right corner */
.services-index {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  align-self: flex-start;
  margin-top: 0.2rem;
  transition: color 0.4s ease;
}

.services-item:hover .services-index {
  color: var(--color-accent);
}

/* ---- RESPONSIVE: stack on tablet/mobile ---- */
@media (max-width: 900px) {
  .services-roster {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* On mobile, media becomes a fixed-height strip above the list */
  .services-media {
    position: relative;
    height: 60vw;
    min-height: 280px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .services-list {
    padding: 3rem 1.5rem;
  }

  .services-name {
    font-size: clamp(1.6rem, 7vw, 3rem);
  }
}

/* -------------------------------------------------------
   12. IMAGE CAROUSEL — Horizontal GSAP infinite strip
------------------------------------------------------- */
.image-carousel-section {
  overflow: hidden;
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.carousel-track-outer {
  overflow: hidden;
  cursor: none;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
}

.carousel-item {
  flex-shrink: 0;
  width: 420px;
  height: 270px;
  overflow: hidden;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(30%) brightness(0.8);
  transition: filter 0.5s ease, transform 0.6s var(--ease-out-expo);
}

.carousel-item:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.04);
}

/* -------------------------------------------------------
   13. WORK PAGE HEADER (work.html)
------------------------------------------------------- */
.work-page-header {
  padding: 15vh 2.5rem 4rem;
  border-bottom: 1px solid var(--color-border);
}

.work-header-inner {
  max-width: 1400px;
}

.work-overline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
  will-change: transform;
}

.work-page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 10vw, 12rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--color-text);
  will-change: transform;
}

.work-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 2rem;
}

.work-count,
.work-discipline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* -------------------------------------------------------
   14. WORK GRID — Asymmetric 12-column (work.html)
------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  padding: 2rem 2.5rem;
}

.work-item {
  overflow: hidden;
  cursor: none;
  position: relative;
  background: var(--color-surface);
  will-change: transform, opacity;
}

.work-item:nth-child(1) { grid-column: 1 / 8;  grid-row: 1; aspect-ratio: 16/10; }
.work-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; aspect-ratio: 4/5; }
.work-item:nth-child(3) { grid-column: 1 / 5;  grid-row: 2; aspect-ratio: 4/5; }
.work-item:nth-child(4) { grid-column: 5 / 10; grid-row: 2; aspect-ratio: 16/10; }
.work-item:nth-child(5) { grid-column: 10 / 13;grid-row: 2; aspect-ratio: 3/4; }
.work-item:nth-child(6) { grid-column: 1 / 7;  grid-row: 3; aspect-ratio: 16/9; }
.work-item:nth-child(7) { grid-column: 7 / 13; grid-row: 3; aspect-ratio: 16/9; }

.work-item-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  inset: 0;
}

/* Ensure anchor wrappers inside the img-wrap also fill the container fully
   so img height: 100% resolves correctly regardless of element type */
.work-item-img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: unset; /* aspect-ratio is controlled by .work-item:nth-child */
  display: block;
  transition: filter 0.5s ease;
  filter: grayscale(20%) brightness(0.85);
  will-change: transform;
}

.work-item:hover img {
  filter: grayscale(0%) brightness(1);
}

.work-item-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.4) 60%, transparent 100%);
  transform: translateY(calc(100% - 3.5rem));
  transition: transform 0.6s var(--ease-out-expo);
  z-index: 2;
}

.work-item:hover .work-item-meta {
  transform: translateY(0);
}

.work-item-index {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.work-item-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.work-item-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* -------------------------------------------------------
   15. GLOBAL FOOTER
------------------------------------------------------- */
footer {
  height: 80svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 2.5rem 2.5rem;
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.footer-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(232, 213, 183, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer-top,
.footer-mid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  will-change: transform;
}

.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 14rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  display: inline-block;
  will-change: transform;
  transition: color 0.4s var(--ease-out-expo);
}

.footer-mid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-email {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
  will-change: transform;
}

.footer-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.5s var(--ease-out-expo);
}

.footer-email:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 2rem;
}

.footer-socials a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.3s ease;
  will-change: transform;
}

.footer-socials a:hover {
  color: var(--color-text);
}

/* -------------------------------------------------------
   16. MOBILE HAMBURGER NAV
------------------------------------------------------- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-out-expo);
}

.mobile-menu.is-open {
  transform: translateY(0%);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-transform: uppercase;
}

/* -------------------------------------------------------
   17. UTILITY
------------------------------------------------------- */
[data-reveal] {
  will-change: transform, opacity;
}

/* -------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS
------------------------------------------------------- */
@media (max-width: 1024px) {
  .work-index-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-index-headline {
    font-size: clamp(3.5rem, 10vw, 8rem);
  }
}

@media (max-width: 768px) {
  /* Nav */
  nav {
    padding: 1.2rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
  .nav-ticker {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 0 1.5rem;
    align-items: flex-end;
    padding-bottom: 5rem;
  }
  .hero-content {
    padding-top: 5rem;
  }
  .hero-title {
    font-size: clamp(2.5rem, 11vw, 5rem);
  }
  .hero-scroll-indicator {
    left: 1.5rem;
    bottom: 2rem;
  }
  .hero-badge {
    display: none;
  }

  /* Quote */
  .quote-section {
    padding: 6rem 0;
  }
  .quote-inner {
    padding: 0 1.5rem;
  }
  .quote-text {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  /* Work index */
  .work-index-section {
    padding: 5rem 0;
  }
  .work-index-header {
    padding: 0 1.5rem 3rem;
    grid-template-columns: 1fr;
  }
  .work-index-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }
  /* Reset all aspect ratios and offsets on mobile */
  .work-index-item {
    aspect-ratio: 4/3 !important;
  }
  .wi-push-down,
  .wi-pull-up {
    margin-top: 0;
  }
  .work-index-footer {
    padding: 3rem 1.5rem 0;
  }

  /* Carousel */
  .carousel-item {
    width: 280px;
    height: 190px;
  }

  /* Work page grid */
  .work-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
  .work-item:nth-child(1),
  .work-item:nth-child(2),
  .work-item:nth-child(3),
  .work-item:nth-child(4),
  .work-item:nth-child(5),
  .work-item:nth-child(6),
  .work-item:nth-child(7) {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4/3;
  }
  .work-item-meta {
    transform: translateY(0);
  }

  /* Work page header */
  .work-page-header {
    padding: 10vh 1.5rem 3rem;
  }
  .work-page-title {
    font-size: clamp(4rem, 14vw, 7rem);
  }
  .work-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Footer */
  footer {
    height: auto;
    min-height: auto;
    padding: 4rem 1.5rem 2rem;
    gap: 4rem;
  }
  .footer-headline {
    font-size: clamp(3rem, 10vw, 6rem);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  /* Marquee */
  .marquee-item {
    font-size: clamp(0.75rem, 3vw, 1rem);
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }
  .footer-headline {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }
}

/* -------------------------------------------------------
   19. HIDE CURSOR ON TOUCH DEVICES
------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }
  #cursor {
    display: none;
  }
}

/* -------------------------------------------------------
   20. FORCE HIDE SYSTEM CURSOR — Custom GSAP cursor only
   Targets every element and all interactive element types
   so the default pointer hand never appears on hover.
------------------------------------------------------- */
*,
*::before,
*::after {
  cursor: none !important;
}

a,
button,
input,
textarea,
select,
label,
summary,
[role="button"],
[role="link"],
[tabindex],
[onclick],
.hero-cta,
.work-card,
.nav-links a,
.work-index-link {
  cursor: none !important;
}
