/* ════════════════════════════════════════════════════════════
   AKSHAT SRIVASTAVA — EDITORIAL PORTFOLIO
   Design system: Swiss grid · Kinfolk · A24 restraint
   ════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --clr-bg:          #F8F8F6;
  --clr-text:        #111111;
  --clr-secondary:   #666666;
  --clr-muted:       #999999;
  --clr-border:      #E7E7E7;
  --clr-black:       #111111;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --max-w: 1600px;
  --pad-h: clamp(24px, 4.5vw, 72px);
  --nav-h: 60px;

  /* Spacing rhythm — multiples of 24 */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  96px;
  --space-2xl: 160px;
  --space-3xl: 220px;

  /* Motion */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 700ms;
  --dur-fast:   300ms;
}

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

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

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol { list-style: none; }

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 1px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-border); }

/* ── ACCESSIBILITY ──────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  clip: rect(0,0,0,0);
  overflow: hidden;
  white-space: nowrap;
}

/* Custom cursor removed */

/* ════════════════════════════════════════════════════════════
   SITE HEADER / NAV
   ════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-h);
  /* Start transparent, transitions on scroll */
  background: transparent;
  transition: background var(--dur-fast) ease;
}

.site-header.is-scrolled {
  background: rgba(248, 248, 246, 0.96);
  border-bottom: 1px solid var(--clr-border);
}

.header-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--clr-text);
  opacity: 0.5;
  transition: opacity var(--dur-fast);
}
.header-name:hover { opacity: 1; }

.header-nav {
  display: flex;
  gap: var(--space-lg);
}

.nav-item {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text);
  opacity: 0.5;
  transition: opacity var(--dur-fast);
  position: relative;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-text);
  transition: width var(--dur-fast) var(--ease-editorial);
}
.nav-item:hover { opacity: 1; }
.nav-item:hover::after { width: 100%; }

/* ════════════════════════════════════════════════════════════
   SHARED TYPOGRAPHY
   ════════════════════════════════════════════════════════════ */
.label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 10px;
}

.arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-editorial);
}

/* ════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════ */
.hero {
  min-height: 95svh;
  padding-top: var(--nav-h);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Three-column editorial grid ─── */
.hero-grid {
  display: grid;
  grid-template-columns: 35% 40% 25%;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-xl) var(--pad-h) var(--space-xl);
  gap: 0;
  align-items: center;
  min-height: calc(95svh - var(--nav-h));
  position: relative;
  z-index: 2;
}

/* ── Left column ─── */
.hero-col--left {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-right: var(--space-xl);
  align-self: center;
}

/* Masthead name — magazine masthead */
.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(54px, 6.5vw, 88px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-md);
}

.hero-name__word {
  display: block;
  overflow: hidden;
}

.hero-name__word-inner {
  display: block;
}

.hero-role { }
.hero-role p,
.hero-intro p,
.hero-location p {
  font-size: 14px;
  color: var(--clr-secondary);
  line-height: 1.55;
}

.hero-intro p { max-width: 260px; }

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: var(--space-xs);
}

.hero-link {
  font-size: 13px;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--dur-fast);
}
.hero-link:hover { opacity: 0.5; }
.hero-link:hover .arrow { transform: translateX(4px); }

/* ── Full Video Background (Fixed across entire Homepage) ─── */
.hero-video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill the entire screen space */
  mix-blend-mode: multiply;
  display: block;
}

/* Localized glitch clone layer, hidden by default */
.hero-video-glitch-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: color-dodge; /* Electric overlay mix */
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle 0px at 0px 0px, black 0%, transparent 0%);
  mask-image: radial-gradient(circle 0px at 0px 0px, black 0%, transparent 0%);
  pointer-events: none;
  filter: contrast(1.8) saturate(2.5) hue-rotate(45deg) invert(0.1);
}

/* Localize glitch effects to a masked circular zone around the cursor with margin blur */
.hero-video-bg.is-glitching .hero-video-glitch-layer {
  opacity: 0.95;
  -webkit-mask-image: radial-gradient(circle 140px at var(--mx) var(--my), black 55%, transparent 100%);
  mask-image: radial-gradient(circle 140px at var(--mx) var(--my), black 55%, transparent 100%);
  animation: videoGlitch 0.25s steps(3) infinite;
}

@keyframes videoGlitch {
  0% { transform: translate(3px, -2px) skewX(-4deg) scale(1.02); }
  33% { transform: translate(-3px, 3px) skewX(4deg) scale(0.99); }
  66% { transform: translate(4px, 1px) skewX(-2deg) scale(1.01); }
  100% { transform: translate(-4px, -3px) skewX(2deg) scale(1.03); }
}

/* X-ray glitch particles wrapper */
.glitch-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* Tiny sharp rectangular glitch speckles */
.glitch-particle-speck {
  position: absolute;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: glitchSpeckFly 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes glitchSpeckFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.4);
  }
}

/* Thin horizontal stretched pixels */
.glitch-stretched-pixel {
  position: absolute;
  height: 2px;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(-50%, -50%) scaleX(0.1);
  animation: glitchStretch 0.3s ease-out forwards;
}

@keyframes glitchStretch {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(0.1);
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), -50%) scaleX(1.5);
  }
}

/* Animated vintage film grain overlay to mask blur and digital artifacts */
.hero-grain {
  position: absolute;
  inset: -100px; /* Expand slightly to prevent white borders during translation animation */
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.16; /* Increased opacity to hide blurness and compression */
  mix-blend-mode: overlay;
  z-index: 2;
  animation: grainNoise 0.2s steps(4) infinite;
}

@keyframes grainNoise {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(-1%, -2%); }
}

/* ── Centre column ─── */
.hero-col--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  align-self: stretch;
  justify-content: center;
  padding: 0 var(--space-md);
}

/* ── Right column ─── */
.hero-col--right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-left: var(--space-xl);
  align-self: center;
}

.hero-block { }

.hero-block p {
  font-size: 14px;
  color: var(--clr-secondary);
  line-height: 1.55;
  max-width: 220px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 2px;
  margin-top: 14px;
  transition: border-color var(--dur-fast), opacity var(--dur-fast);
}
.cta-link:hover { border-color: var(--clr-text); opacity: 0.6; }
.cta-link:hover .arrow { transform: translateX(4px); }

/* Vinyl */
.vinyl-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

/* ── Vinyl Player ─── */
.vinyl-player {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.vinyl-disk-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.4s var(--ease-editorial);
  cursor: pointer;
}

.vinyl-disk-wrapper:hover {
  transform: scale(1.03);
}

.vinyl-disk {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Vinyl rotation animation */
.vinyl-disk.is-playing {
  animation: spinVinyl 12s linear infinite;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-control-overlay {
  position: absolute;
  width: 44px;
  height: 44px;
  background: rgba(17, 17, 17, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s, background 0.3s;
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.vinyl-disk-wrapper:hover .vinyl-control-overlay {
  opacity: 1;
  background: rgba(17, 17, 17, 0.8);
}

.vinyl-track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-status {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-muted);
  font-weight: 500;
}

.track-name {
  font-size: 12px;
  color: var(--clr-secondary);
  font-family: var(--font-sans);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remix-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #FF3B30; /* Bright red accent for play actions */
  border-bottom: 1px solid rgba(255, 59, 48, 0.25);
  padding-bottom: 2px;
  margin-top: 8px;
  transition: border-color var(--dur-fast), opacity var(--dur-fast);
  cursor: pointer;
}

.remix-cta:hover {
  border-color: #FF3B30;
  opacity: 0.8;
}

/* ── Scroll cue ─── */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 1;
  transition: opacity 0.4s;
}

.scroll-cue__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-text), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── Reveal animation base ─── */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   SECTION SCAFFOLD
   ════════════════════════════════════════════════════════════ */
.section {
  padding: var(--space-2xl) 0;
}

#work, #explorations, #gallery {
  background-color: #ffffff;
  position: relative;
  z-index: 10; /* Covers the fixed background video in the middle of the page */
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 64px;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--clr-border);
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text);
}

.section-count {
  font-size: 12px;
  color: var(--clr-muted);
  letter-spacing: 0.08em;
}

/* ── Homepage Project Grids ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.homepage-project-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  cursor: pointer;
}

.project-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-img-wrapper .project-img {
  width: 100%;
  height: 100%;
  transition: transform 700ms var(--ease-editorial);
}

.homepage-project-card:hover .project-img {
  transform: scale(1.02);
}

.homepage-project-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.homepage-project-desc {
  font-size: 13px;
  color: var(--clr-secondary);
  line-height: 1.5;
}

.homepage-project-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text);
}

/* ════════════════════════════════════════════════════════════
   SLIDE-BASED PROJECT BROWSING (WORK + EXPLORATIONS)
   ════════════════════════════════════════════════════════════ */
.project-slider-section {
  position: relative;
  overflow: hidden;
}

.slider-inner {
  display: flex;
  flex-direction: column;
}

.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 96px; /* Increased gap between cards */
  margin: var(--space-md) 0;
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.slider-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Individual Slides */
.project-slide {
  flex: 0 0 75%; /* Slide width on desktop */
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: #ffffff; /* White background for the card */
  padding: var(--space-lg); /* Padding around the content & visual */
  border: 1px solid var(--clr-border); /* Elegant border */
}

/* Left Content */
.slide-content-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-right: var(--space-lg);
}

.project-category-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--clr-muted);
  text-transform: uppercase;
}

.project-slide-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  margin-top: 4px;
}

.project-slide-title a {
  color: inherit;
  transition: opacity var(--dur-fast);
}

.project-slide-title a:hover {
  opacity: 0.7;
}

.project-slide-desc {
  font-size: 14px;
  color: var(--clr-secondary);
  line-height: 1.6;
  max-width: 360px;
}

.project-slide-metadata {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-sm);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
  max-width: 360px;
}

.project-slide-metadata span {
  font-size: 11px;
  color: var(--clr-muted);
  letter-spacing: 0.04em;
}

/* Right Visual */
.slide-visual-right {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.slide-visual-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.slide-visual-right .project-img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transition: transform 700ms var(--ease-editorial);
}

.slide-visual-link:hover .project-img {
  transform: scale(1.02);
}

/* Tactile arrow in a circle CTA overlay */
.slide-visual-link {
  position: relative;
}

.card-cta {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s var(--ease-editorial), transform 0.4s var(--ease-editorial);
  pointer-events: none; /* Let clicks pass through to the link */
}

.card-cta svg {
  fill: var(--clr-text);
  transition: transform 0.4s var(--ease-editorial);
}

.slide-visual-link:hover .card-cta {
  opacity: 1;
  transform: scale(1);
}

.slide-visual-link:hover .card-cta svg {
  transform: translate(1px, -1px);
}

/* Color fills for project images */
.project-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  transition: transform 500ms var(--ease-editorial);
}

.project-img--swiggy   { background: #EDEDE8; }
.project-img--fenix    { background: #E8E8E4; }
.project-img--humanx   { background: #EBEBEB; }
.project-img--aurelle  { background: #F0ECE4; }
.project-img--midjourney { background: #EAEAE6; }
.project-img--rep      { background: #EFEFEF; }
.project-img--type     { background: #F4F4F0; }

/* Slide Navigation Controls */
.slide-nav-controls {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
}

.slide-nav-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--clr-text);
  opacity: 0.6;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  cursor: pointer;
  text-transform: uppercase;
}

.slide-nav-btn:hover {
  opacity: 1;
}

.slide-nav-btn.prev-btn:hover {
  transform: translateX(-4px);
}

.slide-nav-btn.next-btn:hover {
  transform: translateX(4px);
}

/* ── Case Study View ─── */
.case-study-view {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: 9500;
  overflow: hidden; /* Globally disable scrolling for slideshow UI */
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  pointer-events: none; /* Prevent blocking homepage interactions when hidden */
  transition: 
    opacity 800ms var(--ease-editorial),
    transform 800ms var(--ease-editorial),
    visibility 800ms;
}

.case-study-view.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto; /* Enable interactions when active */
}

.case-study-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  padding: 0 var(--pad-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 9600;
  pointer-events: none;
}

.case-study-close-btn {
  pointer-events: auto;
  color: var(--clr-text);
  opacity: 0.6;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.case-study-close-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Case Study Content Template — centered slideshow card */
.case-study-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: var(--nav-h) 0 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.case-study-container .project-slide {
  background: transparent;
  padding: 48px;
  border: none;
  box-sizing: border-box;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  max-height: 100%;
  display: grid;
  grid-template-columns: 30% 70%;
  gap: var(--space-xl);
  align-items: center;
}

.case-study-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #EAEAE6;
  margin-bottom: var(--space-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-hero .project-img {
  width: 100%;
  height: 100%;
}

.case-study-intro-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.case-study-intro-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.case-study-category {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--clr-muted);
  text-transform: uppercase;
}

.case-study-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.case-study-intro-right {
  font-size: clamp(16px, 1.6vw, 22px);
  font-family: var(--font-serif);
  color: var(--clr-secondary);
  line-height: 1.5;
  font-weight: 300;
}

/* Case Study Editorial Sections */
.case-study-section-grid {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: var(--space-lg);
  border-top: 1px solid var(--clr-border);
  padding: var(--space-lg) 0 var(--space-xl);
}

.case-study-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--clr-text);
  text-transform: uppercase;
}

.case-study-section-content {
  font-size: 14px;
  color: var(--clr-secondary);
  line-height: 1.7;
}

.case-study-section-content p {
  margin-bottom: var(--space-md);
}

.case-study-section-content p:last-child {
  margin-bottom: 0;
}

/* Case Study Next Project Footer */
.case-study-next-nav {
  border-top: 1px solid var(--clr-border);
  padding: var(--space-xl) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.case-study-next-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--clr-muted);
  text-transform: uppercase;
}

.case-study-next-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  color: var(--clr-text);
  transition: opacity var(--dur-fast);
}

.case-study-next-title:hover {
  opacity: 0.6;
}

/* More Works Grid */
.case-study-more-works {
  border-top: 1px solid var(--clr-border);
  padding: var(--space-2xl) 0;
}

.case-study-more-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--clr-text);
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.case-study-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.more-work-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  cursor: pointer;
}

.more-work-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.more-work-visual .project-img {
  width: 100%;
  height: 100%;
  transition: transform 500ms var(--ease-editorial);
}

.more-work-card:hover .project-img {
  transform: scale(1.02);
}

.more-work-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.more-work-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.more-work-desc {
  font-size: 12px;
  color: var(--clr-secondary);
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════
   MOCK UI — INSIDE PROJECT IMAGES
   Minimal, monochromatic, editorial
   ════════════════════════════════════════════════════════════ */
.proj-mock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Phone ─── */
.pm-phone {
  width: 110px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  /* Drop shadow is disallowed — only flat form */
}
.pm-phone.sm { width: 80px; }
.pm-notch {
  width: 36px; height: 8px;
  background: #f0f0f0;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 0;
}
.pm-notch.tiny { width: 24px; height: 6px; }
.pm-screen { padding: 10px; }
.pm-header-bar {
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  margin-bottom: 8px;
}
.pm-row {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 6px;
}
.pm-row.fat  { height: 10px; }
.pm-row.mid  { width: 70%; }
.pm-row.short { width: 50%; }
.pm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 8px;
}
.pm-tile {
  height: 32px;
  background: #ebebeb;
  border-radius: 6px;
}
.pm-tile.orange { background: #d4d0c8; }
.pm-tile.sm { height: 20px; }
.pm-cta {
  height: 14px;
  background: #333;
  border-radius: 7px;
  opacity: 0.12;
}

/* ── Browser ─── */
.pm-browser {
  width: 90%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  overflow: hidden;
}
.pm-browser-chrome {
  height: 28px;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.pm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}
.pm-url-bar {
  flex: 1;
  height: 12px;
  background: #eee;
  border-radius: 6px;
  margin-left: 6px;
}
.pm-browser-body {
  display: flex;
  height: 120px;
}
.pm-sidebar-nav {
  width: 28%;
  border-right: 1px solid rgba(0,0,0,0.05);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-nav-item {
  height: 7px;
  background: #e0e0e0;
  border-radius: 3px;
  width: 80%;
}
.pm-nav-item.active { background: #aaa; }
.pm-content-area { flex: 1; padding: 12px; }
.pm-progress-bar {
  height: 4px;
  background: #ebebeb;
  border-radius: 2px;
  margin: 8px 0;
  overflow: hidden;
}
.pm-progress-fill {
  width: 65%;
  height: 100%;
  background: #aaa;
}
.pm-card-row {
  display: flex;
  gap: 6px;
}
.pm-mini-card {
  flex: 1;
  height: 28px;
  background: #ebebeb;
  border-radius: 4px;
}

/* ── Design system ─── */
.pm-ds {
  width: 88%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 16px;
}
.pm-ds-header {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}
.pm-ds-swatches {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}
.pm-swatch {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
}
.pm-ds-type {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.pm-type-lg {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: #111;
  line-height: 1;
}
.pm-type-sm {
  font-size: 9px;
  color: #aaa;
  letter-spacing: 0.06em;
}
.pm-ds-components { display: flex; flex-direction: column; gap: 6px; }
.pm-component {
  height: 12px;
  border-radius: 4px;
  background: #ebebeb;
}
.pm-component.btn-comp { width: 80px; background: #222; height: 14px; border-radius: 7px; }
.pm-component.input-comp { width: 100%; border: 1px solid #ddd; background: transparent; border-radius: 3px; }
.pm-component.chip-comp { width: 50px; border-radius: 10px; height: 10px; }
.pm-component.sm { width: 36px; }

/* ── Editorial figure (Iron Man style) ─── */
.pm-editorial {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 24px;
  gap: 10px;
}
.pm-ed-figure { display: flex; flex-direction: column; align-items: center; }
.pm-ed-head {
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.12);
  border-radius: 50% 50% 42% 42%;
  border-bottom: 2px solid rgba(0,0,0,0.08);
}
.pm-ed-head.lg { width: 56px; height: 52px; }
.pm-ed-torso {
  width: 56px; height: 60px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px 4px 8px 8px;
  margin-top: 1px;
}
.pm-ed-torso.fat-t { width: 80px; height: 76px; border-radius: 40% 40% 30% 30%; }
.pm-ed-bowl {
  width: 42px; height: 14px;
  background: rgba(0,0,0,0.07);
  border-radius: 0 0 50% 50%;
}
.pm-ed-bowl.lg { width: 64px; }
.pm-ed-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.3);
}

/* ── Midjourney mock ─── */
.pm-mj {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
}
.pm-mj-frame {
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}
.pm-mj-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pm-mj-caption {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.25);
  margin-top: 8px;
}

/* ── Minimal UI mock ─── */
.pm-minimal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 10px;
}
.pm-min-nav {
  height: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.pm-min-hero {
  height: 56px;
  background: rgba(0,0,0,0.04);
}
.pm-min-list { display: flex; flex-direction: column; gap: 0; }
.pm-min-row {
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  margin: 8px 0;
}
.pm-min-row.short { width: 60%; }
.pm-min-divider { height: 1px; background: rgba(0,0,0,0.05); }

/* ── Type art mock ─── */
.pm-type-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0;
}
.pt-large {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 300;
  line-height: 1;
  color: rgba(0,0,0,0.1);
  letter-spacing: -0.04em;
}
.pt-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 60px;
  font-weight: 300;
  line-height: 1;
  color: rgba(0,0,0,0.06);
  letter-spacing: -0.03em;
}
.pt-tiny {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.2);
  margin-top: 12px;
}

/* ════════════════════════════════════════════════════════════
   GALLERY SECTION
   ════════════════════════════════════════════════════════════ */
.gallery-section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: 64px;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--clr-border);
}

/* Filter bar */
.gallery-filters {
  display: flex;
  align-items: center;
  gap: 32px;
}

.gf-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text);
  opacity: 0.4;
  position: relative;
  padding-bottom: 2px;
  transition: opacity var(--dur-fast);
}
.gf-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--clr-text);
  transition: width var(--dur-fast) var(--ease-editorial);
}
.gf-btn.active {
  opacity: 1;
}
.gf-btn.active::after {
  width: 100%;
}
.gf-btn:hover { opacity: 0.8; }

/* Gallery grid — true CSS masonry column layout */
.gallery-grid {
  display: block;
  column-count: 3;
  column-gap: 40px;
  width: 100%;
}

/* Gallery item — image sits directly on page, no card */
.gitem {
  display: inline-block;
  width: 100%;
  margin-bottom: 40px;
  break-inside: avoid;
  transition: opacity 0.4s var(--ease-editorial);
}
.gitem.is-hidden { display: none; }

.gitem-img {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Scale image on hover */
.gitem-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 500ms var(--ease-editorial);
}
.gitem:hover .gitem-img img { transform: scale(1.02); }

/* Gallery image fills */
.gi-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.gi-fill--grape  { background: #EDE8E4; }
.gi-fill--rust   { background: #EBEBEA; }
.gi-fill--stone  { background: #EEEEEC; }
.gi-fill--ink    { background: #DEDEDE; }
.gi-fill--chalk  { background: #F2F0EC; }
.gi-fill--warm   { background: #EFEFED; }

/* Gallery-specific art elements */
.gi-perfume { display: flex; flex-direction: column; align-items: center; gap: 0; }
.gi-bottle {
  width: 32px; height: 56px;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 4px 4px 2px 2px;
  position: relative;
}
.gi-bottle::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%; transform: translateX(-50%);
  width: 10px; height: 12px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}
.gi-stopper {
  width: 20px; height: 6px;
  background: rgba(0,0,0,0.1);
  border-radius: 1px;
  margin-top: 2px;
}

.gi-interface {
  width: 85%;
  height: 75%;
  border: 1px solid rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gi-top-bar {
  height: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(0,0,0,0.02);
}
.gi-interface > div:not(.gi-top-bar) { display: flex; flex: 1; }
.gi-sidebar {
  width: 25%;
  border-right: 1px solid rgba(0,0,0,0.05);
}
.gi-main { flex: 1; padding: 8px; }
.gi-row { height: 6px; background: rgba(0,0,0,0.08); border-radius: 2px; margin-bottom: 5px; }
.gi-row.fat { height: 9px; }
.gi-row.mid { width: 70%; }

.gi-photo { position: absolute; inset: 0; }
.gi-photo-grain {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.gi-photo-silhouette {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 44%;
  height: 72%;
  background: rgba(0,0,0,0.08);
  border-radius: 50% 50% 0 0;
}

.gi-poster {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gi-poster-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}
.gi-poster-ring.r1 { width: 100px; height: 100px; }
.gi-poster-ring.r2 { width: 68px; height: 68px; border-style: dashed; opacity: 0.5; }
.gi-poster-mark {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: rgba(0,0,0,0.15);
  letter-spacing: 0.1em;
}

.gi-app {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.gi-3d {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Gallery caption */
.gitem-caption {
  margin-top: 14px;
  font-size: unset;
}
.gitem-caption p {
  font-size: 13px;
  color: var(--clr-secondary);
  line-height: 1.45;
}
.gitem-caption span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-top: 5px;
}

/* ════════════════════════════════════════════════════════════
   CONNECT SECTION
   ════════════════════════════════════════════════════════════ */
.connect-section {
  margin-top: var(--space-3xl);
  padding: 0 var(--pad-h) var(--space-xl);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  /* Top border acts as section separator */
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-xl);
}

.connect-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.connect-heading {
  font-family: var(--font-serif);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--clr-text);
}

.connect-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: 8px;
  text-align: right;
  align-items: flex-end;
}

.connect-note {
  font-size: 14px;
  color: var(--clr-secondary);
  line-height: 1.6;
}

.connect-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.connect-detail .label { margin-bottom: 0; }

.connect-email {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast);
}
.connect-email:hover { border-color: var(--clr-text); }

.connect-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.connect-social-link {
  font-size: 14px;
  color: var(--clr-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--dur-fast), opacity var(--dur-fast);
}
.connect-social-link:hover { color: var(--clr-text); }
.connect-social-link:hover .arrow { transform: translate(2px, -2px); }

.connect-resume-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--clr-text);
  padding-bottom: 2px;
  opacity: 0.5;
  transition: opacity var(--dur-fast);
}
.connect-resume-link:hover { opacity: 1; }
.connect-resume-link:hover .arrow { transform: translateX(4px); }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--clr-border);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
}

/* ════════════════════════════════════════════════════════════
   REVEAL — GSAP-DRIVEN
   ════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: var(--space-xl) var(--pad-h);
    gap: var(--space-xl);
  }
  .hero-col--left { padding-right: 0; }
  .hero-col--right { padding-left: 0; }
  .hero-col--center { order: -1; }
  .hero-image-frame { max-width: 480px; margin: 0 auto; }

  .connect-inner { grid-template-columns: 1fr; }
  .connect-right { align-items: flex-start; text-align: left; }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Responsive Sliders */
  .slider-container {
    min-height: auto;
    display: flex;
    flex-direction: row;
    gap: var(--space-lg);
  }

  .project-slide {
    flex: 0 0 85%;
    position: relative;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-bottom: 0;
    padding: var(--space-md); /* reduced padding on mobile */
  }

  .slide-nav-controls {
    display: none; /* In vertical flow, they aren't needed */
  }

  /* Responsive Case Study View */
  .case-study-intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .case-study-section-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .case-study-more-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 100px;
    --space-3xl: 140px;
  }

  .header-nav { gap: var(--space-md); }

  .gallery-grid { column-count: 2; }

  .gallery-filters { gap: var(--space-md); }

  .section-heading { flex-direction: column; gap: 4px; }

  /* Case Study overlay layout as single screens on mobile */
  .case-study-view {
    overflow-y: hidden;
  }
  
  .case-study-view .case-study-container {
    padding: 0 var(--pad-h);
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .case-study-view .project-slide {
    flex: 1;
    width: 100%;
    height: 100%;
    max-height: calc(100svh - 56px); /* Align with mobile dimensions */
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 24px;
    border: none;
    gap: 16px;
    box-sizing: border-box;
    margin-bottom: 0 !important;
  }

  .case-study-view .slide-visual-right {
    order: -1; /* Place visual mockup at the top */
    width: 100%;
    margin-top: 0;
  }

  .case-study-view .slide-content-left {
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    width: 100%;
  }

  .case-study-view .project-slide-title {
    font-size: clamp(20px, 4vw, 24px) !important;
    margin-top: 8px !important;
  }

  .case-study-view .project-slide-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .case-study-view .slide-nav-controls {
    margin-top: 16px !important;
  }

  /* Hide bottom detail parts on mobile */
  .case-study-view .case-study-sections,
  .case-study-view .case-study-more-works,
  .case-study-view .connect-section {
    display: none !important;
  }
}

@media (max-width: 540px) {
  .gallery-grid { column-count: 1; }

  .hero-name { font-size: 42px; }
  .connect-heading { font-size: 48px; }
  .gallery-filters { gap: 16px; flex-wrap: wrap; }
}

/* ── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .vinyl { animation: none !important; }
  .scroll-cue__line { animation: none !important; }
}

/* ── RESUME DOWNLOAD MODAL ───────────────────────────────── */
.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-editorial), visibility var(--dur-fast);
}

.resume-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.resume-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.resume-modal-card {
  position: relative;
  background: var(--clr-bg);
  border: 1px solid var(--clr-text);
  padding: var(--space-lg);
  width: 90%;
  max-width: 460px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform var(--dur-fast) var(--ease-editorial);
  z-index: 1;
}

.resume-modal.active .resume-modal-card {
  transform: translateY(0);
}

.resume-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--clr-text);
  cursor: pointer;
  padding: 0;
  transition: opacity var(--dur-fast);
}

.resume-modal-close:hover {
  opacity: 0.5;
}

.resume-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
  color: var(--clr-text);
}

.resume-modal-subtitle {
  font-size: 14px;
  color: var(--clr-secondary);
  margin-bottom: var(--space-md);
}

.resume-modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.resume-modal-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resume-modal-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--clr-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--clr-text);
  transition: border-color var(--dur-fast);
}

.resume-modal-form input[type="email"]:focus {
  outline: none;
  border-color: var(--clr-text);
}

.resume-modal-form .error-msg {
  font-size: 12px;
  color: #d93838;
  min-height: 18px;
}

.resume-submit-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--clr-text);
  color: var(--clr-bg);
  border: 1px solid var(--clr-text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.resume-submit-btn:hover {
  background: transparent;
  color: var(--clr-text);
}

.resume-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── MOBILE OVERLAY FOR DESKTOP ONLY EXPERIENCE ─── */
.mobile-overlay {
  display: none;
}
.mobile-profile-img-container {
  display: none;
}

@media (max-width: 991px) { /* Trigger for tablet/mobile viewports */
  .site-header,
  #homepageContent,
  .case-study-view {
    display: none !important;
  }
  
  body {
    overflow: hidden !important; /* disable scroll on mobile */
    background: var(--clr-bg) !important;
  }
  
  .mobile-overlay {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: var(--space-lg) !important;
    background: var(--clr-bg) !important;
    color: var(--clr-text) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .mobile-overlay-content {
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: left;
    margin-bottom: var(--space-md);
  }
  
  .mobile-name {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 300;
    line-height: 1.1;
    color: var(--clr-text);
  }
  
  .mobile-tagline {
    font-size: 13px;
    color: var(--clr-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-xs);
  }
  
  .mobile-notice-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--clr-secondary);
    margin-bottom: var(--space-md);
  }
  
  .mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1px solid var(--clr-text);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .mobile-cta-btn.connect-resume-link {
    background: var(--clr-text);
    color: var(--clr-bg);
  }
  
  .mobile-cta-btn.email-cta {
    background: transparent;
    color: var(--clr-text);
  }

  .mobile-profile-img-container {
    display: flex;
    width: 100%;
    max-width: 420px;
    justify-content: center;
    align-items: center;
    margin-top: auto;
  }

  .mobile-profile-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 42vh;
    object-fit: contain;
    border-radius: 8px;
  }
}

