/* =====================================================================
   CLEANWELL MWALWANDA — PORTFOLIO
   style.css
   
   Structure:
   1.  Design Tokens (:root)
   2.  CSS Reset & Base
   3.  Utility Classes
   4.  Grain Texture
   5.  Loading Screen
   6.  Navigation
   7.  Hero
   8.  Work / Projects Grid
   9.  Project Card
   10. About
   11. Contact & Footer
   12. Case Study — Hero
   13. Case Study — Overview
   14. Case Study — Narrative
   15. Case Study — Gallery
   16. Case Study — Pieces
   17. Case Study — Next Project
   18. Responsive Overrides
   19. Animation States (pre-animation hidden states)
   20. Reduced Motion
   ===================================================================== */


/* =====================================================================
   1. DESIGN TOKENS
   Customize these values first. Everything else inherits from here.
   ===================================================================== */
:root {
  /* --- Color Palette --- */
  --color-bg:          #080808;   /* Page background — near black */
  --color-surface:     #0f0f0f;   /* Slightly lifted surface (cards, panels) */
  --color-surface-2:   #161616;   /* Secondary surface (hover states) */
  --color-border:      #1e1e1e;   /* Hairline borders */
  --color-border-soft: #252525;   /* Slightly softer border */

  --color-text:        #f0ece4;   /* Primary text — warm off-white */
  --color-text-muted:  #7a7570;   /* Secondary / muted text */
  --color-text-dim:    #4a4744;   /* Very dim text (captions, labels) */

  --color-accent:      #c8a882;   /* Warm gold / champagne */
  --color-accent-dim:  #8a7056;   /* Dimmer accent (hover underlines) */
  --color-accent-glow: #d4b896;   /* Brighter accent (highlights) */

  /* --- Typography --- */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;

  /* Fluid type scale — clamp(min, preferred, max) */
  --text-xs:    clamp(0.75rem, 1.2vw, 0.75rem);      /* 12px — minimum for readability */
  --text-sm:    clamp(0.75rem, 1.4vw, 0.875rem);      /* 12-14px */
  --text-base:  clamp(0.875rem, 1.6vw, 1rem);         /* 14-16px */
  --text-lg:    clamp(1rem, 2vw, 1.125rem);            /* 16-18px */
  --text-xl:    clamp(1.125rem, 2.5vw, 1.5rem);        /* 18-24px */
  --text-2xl:   clamp(1.5rem, 3.5vw, 2.25rem);         /* 24-36px */
  --text-3xl:   clamp(2rem, 5vw, 3.5rem);              /* 32-56px */
  --text-4xl:   clamp(2.75rem, 7vw, 5rem);             /* 44-80px */
  --text-hero:  clamp(2.25rem, 10vw, 9rem);            /* 36-144px — hero name; min lets vw take over on narrow viewports */

  /* --- Spacing --- */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;
  --space-2xl:  8rem;

  /* --- Layout --- */
  --max-width:      1400px;
  --gutter:         clamp(1.25rem, 4vw, 3.5rem);
  --grid-gap:       clamp(0.75rem, 1.5vw, 1.25rem);

  /* --- Motion --- */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.37, 0, 0.63, 1);
  --duration-fast:   0.25s;
  --duration-base:   0.5s;
  --duration-slow:   0.9s;

  /* --- Border Radius --- */
  --radius-sm: 2px;
  --radius-md: 4px;
}


/* =====================================================================
   2. CSS RESET & BASE
   ===================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-behavior removed — Lenis smooth scroll handles this.
     For no-JS anchor scrolling, the browser's default instant jump is acceptable. */
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Prevent body scroll while loader is active */
body.is-loading {
  overflow: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

/* Visually hide the SVG defs — keep in DOM for filter reference */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}


/* =====================================================================
   3. UTILITY CLASSES
   ===================================================================== */
/* Section label — small caps tracking */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Line-mask reveal — child element clips into view from below */
.line-mask {
  overflow: hidden;
  display: block;
}

/* Horizontal rule utility */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* =====================================================================
   4. GRAIN TEXTURE OVERLAY
   ===================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  /* Animated SVG fractal noise — the most reliable pure-CSS grain method */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.032;
  mix-blend-mode: overlay;
  animation: grainShift 0.8s steps(4) infinite;
}

@keyframes grainShift {
  0%   { background-position: 0 0 }
  25%  { background-position: -40px -20px }
  50%  { background-position: 20px  40px }
  75%  { background-position: -20px  10px }
  100% { background-position: 0 0 }
}


/* =====================================================================
   4b. AMBIENT GRADIENT
   Fixed warm light-source orbs — glow behind all content as you scroll.
   ===================================================================== */
.gradient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Primary orb — warm gold, top-right (empty hero space) */
  /* Secondary orb — dimmer, bottom-left (depth contrast)  */
  background:
    radial-gradient(ellipse 65% 55% at 76% 10%, rgba(200, 168, 130, 0.11) 0%, transparent 65%),
    radial-gradient(ellipse 42% 38% at 16% 82%, rgba(200, 168, 130, 0.055) 0%, transparent 62%);
}


/* =====================================================================
   5. LOADING SCREEN
   ===================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Stacking on top of everything */
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.loader__mark {
  width: clamp(200px, 36vw, 360px);
  color: var(--color-text);
  overflow: visible;
}

.loader__text {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}

.loader__bar-track {
  width: clamp(140px, 28vw, 280px);
  height: 1px;
  background-color: var(--color-border-soft);
  overflow: hidden;
  border-radius: 1px;
}

.loader__bar {
  height: 100%;
  width: 0%;
  background-color: var(--color-accent);
  border-radius: 1px;
  transform-origin: left;
}


/* =====================================================================
   6. NAVIGATION
   ===================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  /* Transparent by default, gains backdrop on scroll (added via JS) */
  transition: background-color var(--duration-base) var(--ease-out);
}

.nav.is-scrolled {
  background-color: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(52px, 7vw, 68px);
  padding-inline: var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
}

.nav__wordmark {
  font-family: 'Pinyon Script', cursive;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__wordmark:hover {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--duration-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile toggle button */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--color-text);
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav panel */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) var(--gutter);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile-link {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__mobile-link:hover {
  color: var(--color-text);
}


/* =====================================================================
   7. HERO
   ===================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: clamp(80px, 12vw, 120px);
  padding-bottom: var(--space-xl);
  padding-inline: var(--gutter);
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr clamp(140px, 14vw, 200px);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: end;
}

/* Hero content — wraps text elements into the left grid column */
.hero__content {
  min-width: 0; /* prevent grid blowout */
}

.hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  /* Split by SplitType — initial hidden state set in section 19 */
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--fw-light);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}

.hero__name-word {
  display: block;
  overflow: hidden; /* Clips chars that start off-screen */
}

.hero__name-word--italic {
  font-style: italic;
  font-weight: var(--fw-light);
  padding-left: clamp(1rem, 5vw, 5rem); /* Editorial indent */
  color: var(--color-accent-glow);
}

.hero__tagline {
  font-size: var(--text-xl);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 36ch;
  margin-bottom: var(--space-lg);
}

.hero__br {
  display: none; /* Only break on mobile — activated via media query */
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-soft);
  padding-bottom: 0.4em;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.hero__cta:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.hero__cta svg {
  transition: transform var(--duration-base) var(--ease-out);
}

.hero__cta:hover svg {
  transform: translateY(3px);
}

/* Scroll indicator — bottom left */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__scroll-line {
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--color-border-soft);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-accent);
  transform: translateX(-100%);
  animation: scrollPulse 2.2s var(--ease-inout) infinite 1.5s;
}

@keyframes scrollPulse {
  0%   { transform: translateX(-100%) }
  50%  { transform: translateX(0) }
  100% { transform: translateX(100%) }
}

.hero__scroll-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* Hero status bar — single-line summary at bottom of hero viewport */
.hero__statusbar {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  white-space: nowrap;
  overflow: hidden;
}

.hero__statusbar-label {
  font-weight: var(--fw-medium);
  margin-right: 0.25em;
}

.hero__statusbar-sep {
  opacity: 0.4;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero__statusbar { display: none; }
}

/* Hero meta sidebar — right column with location / status / services */
.hero__meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: 0.25rem;
}

.hero__meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.hero__meta-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.hero__meta-value {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  font-weight: var(--fw-light);
}

.hero__meta-avail {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--color-text);
}

.hero__avail-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #4ade80;
  animation: availPulse 2.4s ease-in-out infinite;
}

@keyframes availPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero__meta-year {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  letter-spacing: 0.12em;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}


/* =====================================================================
   7b. FEATURED WORK PANELS
   Full-viewport panels for featured projects (hupr.ca inspired).
   Content is injected dynamically by main.js from projects.json.
   ===================================================================== */
.featured-work {
  border-top: 1px solid var(--color-border);
}

.featured-work__label {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-md) var(--gutter);
}

.featured-panel {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.featured-panel__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.featured-panel__num {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  letter-spacing: 0.14em;
  margin-bottom: var(--space-md);
}

.featured-panel__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-light);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
  color: var(--color-text);
  text-wrap: balance;
}

.featured-panel__sub {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--color-accent-glow);
  margin-bottom: var(--space-md);
}

.featured-panel__overview {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: var(--space-lg);
}

.featured-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-soft);
  padding-bottom: 0.4em;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.featured-panel__cta:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.featured-panel__cta svg {
  transition: transform var(--duration-base) var(--ease-out);
}

.featured-panel__cta:hover svg {
  transform: translateX(4px);
}

.featured-panel__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-surface-2);
}

.featured-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}


/* =====================================================================
   8. WORK / PROJECTS SECTION
   ===================================================================== */
.work {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  padding-inline: var(--gutter);
  position: relative;
}

.work::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 78% 8%,  rgba(200, 168, 130, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 38% 32% at 18% 88%, rgba(200, 168, 130, 0.05) 0%, transparent 60%);
}

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

.work__header {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.work__heading {
  /* Uses .section-label utility */
}

/* Filter buttons */
.work__filters {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.filter-btn {
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.45em 1em;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border-soft);
}

.filter-btn.is-active {
  color: var(--color-bg);
  background-color: var(--color-text);
  border-color: var(--color-text);
}

/* Projects list container */
.work__grid {
  max-width: var(--max-width);
  margin-inline: auto;
}


/* =====================================================================
   8b. SURREAL ART — HORIZONTAL GALLERY STRIP
   Carlos Prado-style: full-height portrait panels, drag/scroll to browse.
   Activated when 'Surreal Art' filter is clicked.
   ===================================================================== */

.surreal-list-view {
  display: none;
  height: calc(100vh - 22rem);
  overflow: hidden;
  flex-direction: column;
}

/* When gallery is active: collapse header gap so strips fill tightly */
.work.has-gallery .work__header {
  margin-bottom: 0;
}

.work.has-gallery .surreal-list-view {
  height: calc(100vh - 15rem);
}

/* Drag container */
.sr-gallery {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.sr-gallery.is-dragging {
  cursor: grabbing;
}

/* Horizontal track — translated by GSAP on drag */
.sr-gallery__track {
  display: flex;
  height: 100%;
  gap: var(--space-md);
  will-change: transform;
  padding: 0 var(--space-md);
}

/* Individual portrait image strip */
.sr-strip {
  flex-shrink: 0;
  height: 100%;
  width: clamp(220px, 28vw, 420px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
}

.sr-strip:first-child {
  width: clamp(260px, 36vw, 520px);
}

.sr-strip:last-child {
  /* track padding handles edge spacing */
}

.sr-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform, opacity;
  pointer-events: none;
}

/* No gradient overlay — text lives below the gallery */

/* Meta label — moved to info bar below gallery */
.sr-strip__meta {
  display: none;
}

.sr-strip__num {
  display: block;
  font-size: var(--text-xs);
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  color: rgba(240, 236, 228, 0.5);
  margin-bottom: var(--space-xs);
}

.sr-strip__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: var(--fw-light);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sr-strip__year {
  display: block;
  font-size: var(--text-xs);
  font-family: var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.4);
  margin-top: var(--space-xs);
}

/* Category badge — moved to info bar below gallery */
.sr-strip__category {
  display: none;
}

/* Scroll / Drag hint — hidden, hint moved to info bar */
.sr-gallery__hint {
  display: none;
}

/* ── Info bar: sits below the gallery, shows identity + active project ─ */
.sr-info-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  border-top: 1px solid rgba(240, 236, 228, 0.08);
  min-height: 72px;
}

.sr-info-bar__left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sr-info-bar__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--color-text);
  line-height: 1.2;
}

.sr-info-bar__role {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  font-weight: var(--fw-light);
  color: rgba(240, 236, 228, 0.45);
  line-height: 1.2;
}

/* Progress dash indicators */
.sr-info-bar__progress {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sr-dot {
  display: block;
  height: 1px;
  width: 36px;
  background: rgba(240, 236, 228, 0.2);
  transition: width 0.4s ease, background 0.4s ease;
}

.sr-dot.is-active {
  width: 72px;
  background: rgba(240, 236, 228, 0.75);
}

.sr-info-bar__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.sr-info-bar__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.sr-info-bar__year {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.4);
}

/* Mobile: native horizontal scroll with snap */
@media (max-width: 768px) {
  .surreal-list-view {
    height: 85vh;
    /* Break out of the .work section's padding so strips run edge-to-edge */
    margin-inline: calc(-1 * var(--gutter));
    width: calc(100% + 2 * var(--gutter));
  }

  .sr-gallery__track {
    /* Match section gutter so first strip aligns with the rest of the page */
    padding: 0 var(--gutter);
  }

  .sr-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: default;
  }

  .sr-gallery.is-dragging {
    cursor: default;
  }

  .sr-strip,
  .sr-strip:first-child {
    width: 85vw;
    scroll-snap-align: start;
  }

  /* Work grid: single column on mobile */
  .works-grid {
    grid-template-columns: 1fr;
  }

  .works-grid > .work-card:nth-child(even) {
    margin-top: 0;
  }
}


/* =====================================================================
   9. WORKS GRID
   Two-column staggered card grid — Jack Watkins reference.
   ===================================================================== */
.works-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(3rem, 6vw, 5rem);
  padding-top: var(--space-xl);
}

/* Stagger: even cards (right column) pushed down to offset rhythm */
.works-grid > .work-card:nth-child(even) {
  margin-top: clamp(3rem, 8vw, 6rem);
}

.work-card {
  display: flex;
  flex-direction: column;
}

.work-card.is-hidden {
  display: none;
}

.work-card__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
  flex: 1;
}

/* ─── Image ──────────────────────────────────────────────────────────── */
.work-card__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in oklch, var(--color-text) 5%, transparent);
}

.work-card__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card__link:hover .work-card__img {
  transform: scale(1.04);
}

/* Surreal Series card: crossfade transition for rotating artwork thumbnails */
[data-project="surreal-series"] .work-card__img {
  transition: opacity 0.4s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: color-mix(in oklch, var(--color-text) 8%, transparent);
}

/* ─── Body ───────────────────────────────────────────────────────────── */
.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.2rem;
}

.work-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-light);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--color-text);
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card__link:hover .work-card__title {
  color: var(--color-accent-glow);
}

.work-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-light);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card__type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
  font-weight: var(--fw-regular);
  margin-top: 0.15rem;
}


/* =====================================================================
   10. ABOUT
   ===================================================================== */
.about {
  position: relative;
  z-index: 2;
  padding-block: var(--space-2xl);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--color-border);
}

.about__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.about__label-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.about__rule {
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.about__body-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.about__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-light);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.about__heading em {
  font-style: italic;
  color: var(--color-accent-glow);
}

.about__para {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: var(--space-md);
}

.about__disciplines {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.about__discipline {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  align-items: start;
}

.about__discipline-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  padding-top: 0.15em;
}

.about__discipline-items {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Portrait column */
.about__portrait {
  position: sticky;
  top: calc(var(--space-lg) + 68px);
}

.about__portrait-frame {
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface-2);
  aspect-ratio: 4 / 5;
}

.about__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter var(--duration-slow) var(--ease-out);
}

.about__portrait-frame:hover .about__portrait-img {
  filter: grayscale(0%);
}

.about__portrait-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: var(--text-xs);
  color: rgba(240, 236, 228, 0.45);
  letter-spacing: 0.1em;
  font-style: italic;
}


/* =====================================================================
   11. CONTACT & FOOTER
   Two-column editorial layout inspired by detroit.paris.
   ===================================================================== */
.contact {
  position: relative;
  z-index: 2;
  padding-top: var(--space-2xl);
  padding-bottom: 0;
  padding-inline: var(--gutter);
  border-top: 1px solid var(--color-border);
}

.contact__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-bottom: var(--space-lg);
}

.contact__main {
  display: grid;
  grid-template-columns: 1fr clamp(200px, 28%, 360px);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

/* Left column */
.contact__heading-wrap {
  margin-bottom: var(--space-lg);
}

/* Clip-mask utility for per-word reveal */
.clip-mask {
  overflow: hidden;
  display: block;
}

.contact__word {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--fw-light);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.contact__word--accent {
  color: var(--color-accent);
  font-style: italic;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-light);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-soft);
  padding-bottom: 0.3em;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.contact__email:hover {
  color: var(--color-accent-glow);
  border-color: var(--color-accent);
}

/* Right column */
.contact__right {
  padding-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact__avail-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-md);
}

.contact__services {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact__services li {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--color-text-muted);
}

.contact__socials {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.contact__social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.contact__social-link:hover {
  color: var(--color-text);
}

.contact__social-arrow {
  display: inline-block;
  opacity: 0.35;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.contact__social-link:hover .contact__social-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Site footer bar */
.site-footer {
  position: relative;
  z-index: 2;
  background-color: var(--color-bg);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-block: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-footer__copy,
.site-footer__credit {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-footer__social {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__social:hover {
  color: var(--color-text);
}

.site-footer__top {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__top:hover {
  color: var(--color-text);
}

/* Case study page footer */
.site-footer--cs {
  padding-inline: var(--gutter);
}

.site-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__back:hover {
  color: var(--color-text);
}


/* =====================================================================
   12. CASE STUDY — HERO
   ===================================================================== */
.cs-hero {
  padding-top: clamp(100px, 14vw, 140px);
  padding-inline: var(--gutter);
  padding-bottom: 0;
}

.cs-hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.cs-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.cs-hero__meta-tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.3em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: 100px;
}

.cs-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: var(--fw-light);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}

.cs-hero__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--color-accent-glow);
}

/* Full-bleed hero image */
.cs-hero__image-wrap {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  background-color: var(--color-surface-2);
}

.cs-hero__image-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
}


/* =====================================================================
   13. CASE STUDY — OVERVIEW
   ===================================================================== */
.cs-overview {
  padding-block: var(--space-2xl);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--color-border);
}

.cs-overview__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.cs-overview__details {
  /* Project metadata panel */
}

.cs-detail-row {
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.cs-detail-row:first-child {
  border-top: 1px solid var(--color-border);
}

.cs-detail-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.4em;
}

.cs-detail-value {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cs-overview__text p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-light);
  line-height: 1.55;
  color: var(--color-text);
  letter-spacing: 0.01em;
}


/* =====================================================================
   14. CASE STUDY — NARRATIVE (Challenge + Solution)
   ===================================================================== */
.cs-narrative {
  padding-block: var(--space-2xl);
  padding-inline: var(--gutter);
}

.cs-narrative__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.cs-narrative__block-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-md);
}

.cs-narrative__block-text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
}


/* =====================================================================
   15. CASE STUDY — GALLERY
   ===================================================================== */
.cs-gallery {
  padding-block: var(--space-lg);
  padding-inline: var(--gutter);
}

.cs-gallery__grid {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.cs-gallery__grid .cs-gallery__img-wrap:first-child:nth-last-child(odd) {
  grid-column: span 2;
}

.cs-gallery__img-wrap {
  overflow: hidden;
  background-color: var(--color-surface-2);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.cs-gallery__img-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  transition: transform 0.9s var(--ease-out);
}

.cs-gallery__img-wrap:hover img {
  transform: scale(1.03);
}


/* =====================================================================
   15b. CASE STUDY — EDITORIAL LAYOUT (non-surreal projects)
   Inspired by image-led, numbered-section editorial presentation.
   ===================================================================== */

/* Nav: back link + project title ------------------------------------ */
.cs-back-link {
  display: none; /* shown only on is-case-study via body class */
}

.is-case-study .cs-back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color var(--duration-fast);
  white-space: nowrap;
}

.is-case-study .cs-back-link:hover {
  color: var(--color-text);
}

.cs-nav__title {
  display: none;
}

.is-case-study .cs-nav__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.is-case-study.is-scrolled .cs-nav__title {
  opacity: 1;
  transform: translateY(0);
}

.is-case-study .nav__links {
  display: none;
}

/* Brief ------------------------------------------------------------- */
.cs-brief {
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--color-border);
}

.cs-brief__inner {
  max-width: 740px;
  margin-inline: auto;
}

.cs-brief__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: var(--fw-light);
  line-height: 1.65;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

/* Challenge --------------------------------------------------------- */
.cs-challenge {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--color-border);
}

.cs-challenge__inner {
  max-width: 620px;
  margin-inline: auto;
}

.cs-challenge__eyebrow {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-sm);
}

.cs-challenge__text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: var(--fw-light);
  line-height: 1.8;
  color: var(--color-text-dim);
  letter-spacing: 0.01em;
}

/* Numbered editorial sections --------------------------------------- */
.cs-sections {
  /* container — no own spacing; individual cs-section has borders */
}

.cs-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--color-border);
}

.cs-section__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.cs-section__label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.cs-section__caption {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-dim);
  margin-top: var(--space-md);
}

/* Image grid within a section */
.cs-section__images {
  display: grid;
  gap: var(--grid-gap);
}

.cs-section__images--single {
  grid-template-columns: 1fr;
}

.cs-section__images--pair {
  grid-template-columns: 1fr 1fr;
}

.cs-section__img-wrap {
  overflow: hidden;
  background-color: var(--color-surface-2);
  border-radius: 4px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.cs-section__img-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  transition: transform 0.9s var(--ease-out);
}

.cs-section__img-wrap:hover img {
  transform: scale(1.02);
}

/* Outcome ----------------------------------------------------------- */
.cs-outcome {
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--color-border);
}

.cs-outcome__inner {
  max-width: 740px;
  margin-inline: auto;
}

.cs-outcome__eyebrow {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-lg);
}

.cs-outcome__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: var(--fw-light);
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Visit site link */
.cs-visit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--space-xl);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.3em;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

.cs-visit-link:hover {
  color: var(--color-text);
  border-color: currentColor;
}


/* =====================================================================
   16. CASE STUDY — PIECES (series projects)
   ===================================================================== */
.cs-pieces {
  padding-block: var(--space-xl);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--color-border);
}

.cs-pieces__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.cs-pieces__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-light);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.01em;
}

.cs-pieces__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-piece {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.cs-piece:last-child {
  border-bottom: 1px solid var(--color-border);
}

.cs-piece__num {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  padding-top: 0.35em;
  font-weight: var(--fw-light);
  letter-spacing: 0.06em;
}

.cs-piece__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.cs-piece__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-light);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}

.cs-piece__description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.cs-piece__img-wrap {
  overflow: hidden;
  background-color: var(--color-surface-2);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.cs-piece__img-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
}


/* =====================================================================
   17. CASE STUDY — NEXT PROJECT
   ===================================================================== */
.cs-next {
  padding-block: var(--space-2xl);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--color-border);
}

.cs-next__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.cs-next__inner .section-label {
  margin-bottom: var(--space-lg);
}

.cs-next__link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--space-md);
  align-items: center;
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.cs-next__link:hover {
  border-color: var(--color-border-soft);
}

.cs-next__content {
  grid-column: 1;
  grid-row: 1;
}

.cs-next__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-light);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 0.3em;
  transition: color var(--duration-fast) var(--ease-out);
}

.cs-next__link:hover .cs-next__title {
  color: var(--color-accent-glow);
}

.cs-next__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-display);
}

.cs-next__image-wrap {
  grid-column: 2;
  grid-row: 1 / 3;
  width: clamp(120px, 18vw, 200px);
  overflow: hidden;
  background-color: var(--color-surface-2);
}

.cs-next__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.cs-next__link:hover .cs-next__image-wrap img {
  transform: scale(1.06);
}

.cs-next__arrow {
  grid-column: 1;
  grid-row: 2;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.cs-next__link:hover .cs-next__arrow {
  color: var(--color-accent);
  transform: translateX(6px);
}


/* =====================================================================
   17a. STATEMENT SECTION
   ===================================================================== */
.statement {
  padding-block: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.statement__inner {
  padding-inline: var(--space-xl);
  display: flex;
  align-items: flex-end;
  gap: clamp(2rem, 4vw, 4rem);
}

.statement__text {
  min-width: 0;
  flex: 1;
}

.statement__aside {
  flex-shrink: 0;
  writing-mode: vertical-rl;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  opacity: 0.5;
  padding-bottom: 0.5rem;
  white-space: nowrap;
}

.statement__line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 8.5rem);
  font-weight: var(--fw-light);
  line-height: 1.0;
  color: var(--color-text);
  letter-spacing: -0.01em;
  padding-bottom: 0.08em; /* prevent descender clip */
}

.statement__line--accent {
  color: var(--color-accent);
  font-style: italic;
}


/* =====================================================================
   17b. MARQUEE STRIP
   ===================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: 1rem;
  background-color: var(--color-bg);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}

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

.marquee__content {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-style: italic;
  font-weight: var(--fw-light);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-right: 0;
  transition: color var(--duration-base) var(--ease-out);
}

.marquee:hover .marquee__content {
  color: var(--color-accent);
}

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


/* =====================================================================
   17c. CURSOR PREVIEW
   ===================================================================== */
.cursor-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  will-change: transform, opacity;
}

.cursor-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cursor-preview__inner {
  width: 220px;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.cursor-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

/* Hide on touch devices */
@media (hover: none) {
  .cursor-preview { display: none; }
}


/* =====================================================================
   18. RESPONSIVE OVERRIDES
   ===================================================================== */

/* Large tablets / small desktops */
@media (max-width: 1100px) {

  .about__body-grid {
    grid-template-columns: 1fr 360px;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__meta {
    display: none;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__br {
    display: block;
  }

  .about__body-grid {
    grid-template-columns: 1fr;
  }

  .about__portrait {
    position: static;
    max-width: 440px;
  }

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

  .cs-narrative__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .cs-section__images--pair {
    grid-template-columns: 1fr;
  }

  .cs-piece__content {
    grid-template-columns: 1fr;
  }

  .cs-next__link {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .cs-next__image-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 300px;
  }

  .cs-next__content {
    grid-row: 2;
  }

  .cs-next__arrow {
    grid-row: 3;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .work__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact__heading {
    font-size: var(--text-3xl);
  }

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

  .contact__right {
    padding-top: 0;
  }

  .contact__word {
    font-size: var(--text-4xl);
  }

  .statement__aside {
    display: none;
  }

  .cs-gallery__grid {
    grid-template-columns: 1fr;
  }

  .cs-gallery__grid .cs-gallery__img-wrap:first-child:nth-last-child(odd) {
    grid-column: span 1;
  }

  .featured-panel {
    align-items: flex-start;
    min-height: 80svh;
    padding-block: var(--space-2xl);
  }

  .featured-panel__inner {
    grid-template-columns: 1fr;
  }

  .featured-panel__image-wrap {
    order: -1;
  }

  .surreal-row__title {
    font-size: clamp(1.5rem, 6vw, 3rem);
  }

  .surreal-row__meta {
    display: none;
  }

  .cs-piece {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}


/* =====================================================================
   19. ANIMATION INITIAL STATES
   Elements begin invisible/offset; GSAP/JS animates them in.
   All wrapped in a .js-ready check set by JS to prevent invisible content
   when JS fails or loads late.
   ===================================================================== */
/* Scroll indicator still fades */
.js-ready .hero__scroll {
  opacity: 0;
}

/* Hero text elements inside line-mask — emerge from below clip */
.js-ready .line-mask > * {
  transform: translateY(105%);
}

/* Individual chars within hero name — SplitType wraps in spans */
.js-ready .hero__name .char {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.js-ready .nav {
  transform: translateY(-100%);
}

/* Section reveal elements */
.js-ready .reveal-up {
  opacity: 0;
  transform: translateY(32px);
}

.js-ready .reveal-fade {
  opacity: 0;
}

/* Work cards start invisible — animated in by ScrollTrigger */
.js-ready .work-card {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* Contact words start clipped — animated in by ScrollTrigger clip-path */
.js-ready .contact__word {
  clip-path: inset(100% 0 0 0);
}

/* Hero meta sidebar starts invisible — GSAP fades it in after name reveals */
.js-ready .hero__meta {
  opacity: 0;
}


/* =====================================================================
   20. REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  /* Disable all CSS animations */
  .grain {
    animation: none;
  }

  .hero__scroll-line::after {
    animation: none;
  }

  /* GSAP handles the rest — see main.js prefers-reduced-motion check */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Preserve marquee scroll — decorative text strip, not jarring motion */
  .marquee__track {
    animation: marqueeScroll 22s linear infinite !important;
    animation-play-state: running !important;
  }
}

/* ==========================================================================
   ADDITIONS — Phase 1 + Phase 2 fixes
   ========================================================================== */

/* SplitType word-gap fix — prevents adjacent words merging in split lines */
.word { display: inline-block; }

/* Nav logo SVG ------------------------------------------------------------ */
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-logo:hover { color: var(--color-accent, currentColor); }

/* Page transition curtain ------------------------------------------------- */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--color-bg);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  will-change: transform;
}

/* Image placeholder — replaces broken <img> with shimmer tile ------------- */
.img-placeholder {
  background: var(--color-surface-2, #1a1a1a);
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  animation: imgShimmer 1.5s ease-in-out infinite;
}
@keyframes imgShimmer {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.65; }
}

/* Contact social links — WCAG 2.5.5 minimum touch target (44px) ----------- */
.contact__social-link {
  min-height: 44px;
  padding-block: var(--space-xs, 0.5rem);
  display: inline-flex;
  align-items: center;
}

/* Gallery cursor ---------------------------------------------------------- */
.gallery-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent, #fff);
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  scale: 0.5;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
@media (hover: none) { .gallery-cursor { display: none; } }

/* Gallery-mode piece sections — case-study Surreal Art ------------------- */
.cs-pieces--gallery .piece-row--gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.cs-pieces--gallery .piece-row__img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}
.piece-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
  pointer-events: none;
}
.piece-caption {
  position: absolute;
  bottom: var(--space-lg, 2rem);
  left: var(--space-lg, 2rem);
  color: #fff;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.piece-caption__num  { font-size: 0.75rem; opacity: 0.6; letter-spacing: 0.1em; }
.piece-caption__title { font-size: 1.1rem; font-weight: 500; }
.piece-counter {
  position: absolute;
  top: var(--space-lg, 2rem);
  right: var(--space-lg, 2rem);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.4;
}
.piece-divider {
  width: 100%;
  height: 1px;
  overflow: hidden;
}
.piece-divider svg {
  display: block;
  width: 100%;
  height: 1px;
  color: var(--color-text, #fff);
}

/* Responsive — collapse gallery caption on mobile ----------------------- */
@media (max-width: 48em) {
  .cs-pieces--gallery .piece-row__img { height: 80svh; }
  .piece-caption { bottom: 1rem; left: 1rem; }
}

/* ==========================================================================
   SURREAL SERIES PAGE  (surreal-series.html)
   ========================================================================== */

/* ── Body state ────────────────────────────────────────────────────────── */
.is-surreal-series {
  background: #0d0d0d;
  color: var(--color-text);
  overflow-x: hidden;
}

/* ── Minimal nav ───────────────────────────────────────────────────────── */
.ss-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  pointer-events: none;
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ss-nav__back,
.ss-nav__label {
  pointer-events: auto;
}
.ss-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
}
.ss-nav__back:hover  { opacity: 1; }
.ss-nav__back svg    { flex-shrink: 0; }
.ss-nav__label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.ss-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem var(--gutter) 4rem;
  overflow: hidden;
}
.ss-hero__inner {
  max-width: 720px;
}
.ss-hero__eyebrow {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.ss-hero__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 1;
  margin: 0 0 1.5rem;
  color: var(--color-text);
}
.ss-hero__subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-inline: auto;
}
.ss-hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}
.ss-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: currentColor;
  animation: ssScrollLine 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes ssScrollLine {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── Individual piece ──────────────────────────────────────────────────── */
.ss-piece {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  cursor: crosshair;
}
.ss-piece__image-wrap {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.ss-piece__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.ss-piece__img-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
}

/* ── Story panel (revealed on hover) ──────────────────────────────────── */
.ss-piece__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 45%);
  height: 100%;
  background: var(--ss-accent, #0d0d0d);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;  /* managed by GSAP autoAlpha */
  padding: 3rem 3rem 3rem 2.5rem;
  will-change: transform, opacity;
}
.ss-piece__panel-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 360px;
  width: 100%;
}
.ss-piece__num {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.ss-piece__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--color-text);
  margin: 0;
}
.ss-piece__divider {
  width: 2.5rem;
  height: 1px;
  background: rgba(255,255,255,0.25);
}
.ss-piece__subtitle {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.ss-piece__story {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin: 0;
  max-width: 45ch;
}
.ss-piece__mood {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.3em 0.8em;
  border-radius: 100px;
  align-self: flex-start;
}
.ss-piece__year {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  align-self: flex-end;
  margin-top: auto;
}

/* ── Caption overlay (bottom-left of each piece) ────────────────────── */
.ss-piece__caption {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  display: flex;
  gap: 1rem;
  align-items: baseline;
  pointer-events: none;
}
.ss-piece__caption-num {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.ss-piece__caption-title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

/* ── Story Section — two-column pinned layout ──────────────────────────── */
.story-section {
  display: flex;
  align-items: flex-start;
  background: var(--color-bg, #080808);
  /* Ensure the section provides its own stacking context for GSAP pin */
  position: relative;
  z-index: 0;
}

.surreal-list {
  flex: 0 0 50%;
  min-width: 0;
  box-sizing: border-box;
  /* 30vh top/bottom runway so Row 1 doesn't trigger immediately;
     symmetric left/right padding for optical centering (Fix 2 + 7) */
  padding: 30vh clamp(2rem, 5vw, 4rem);
}

.surreal-row {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.surreal-row.is-active {
  opacity: 1;
}

.surreal-row__num {
  display: block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
}

.surreal-row__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2.75rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--color-text, #f0ece4);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.surreal-row__divider {
  width: 2rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.surreal-row__preview {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  max-width: 44ch;
  margin: 0 0 0.75rem;
}

.surreal-row__story {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.32);
  max-width: 48ch;
  margin: 0 0 1.75rem;
}

.surreal-row__meta {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}

/* ── Pinned right panel ─────────────────────────────────────────────────── */
.sr-right-panel {
  /* Use width: 50% + flex: none rather than flex-basis: 50% to avoid the
     browser bug where position:sticky causes percentage flex-basis to
     resolve against the item's own height instead of the container width */
  flex: none;
  width: 50%;
  max-width: 50vw;
  min-width: 0;
  box-sizing: border-box;
  height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 4rem 5vh 1rem;
  /* CSS sticky as no-JS fallback; GSAP ScrollTrigger overrides on desktop */
  position: sticky;
  top: 70px;
  align-self: flex-start;
}

/* ── Photo stage — 4:5 portrait frame (1080×1350 native ratio) ─────────── */
/* 5/6 artworks are 1080×1350 (4:5). Chaos Within is 1080×1440 (3:4) and   */
/* will be cropped ~1.7% top+bottom by object-fit: cover — imperceptible.   */
.sr-photo-stage {
  aspect-ratio: 4 / 5;
  height: min(80vh, 700px);
  width: auto;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 40px 100px rgba(0, 0, 0, 0.4);
}

/* ── Individual artwork photos ──────────────────────────────────────────── */
.sr-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* GSAP manages autoAlpha; CSS starts hidden */
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
}

.sr-photo--empty {
  background: rgba(255, 255, 255, 0.03);
}

/* ── Responsive: stack on tablet/mobile ────────────────────────────────── */
@media (max-width: 1023px) {
  .story-section {
    flex-direction: column;
  }

  .sr-right-panel {
    position: relative;
    height: auto;
    width: 100%;
    max-width: 100%;
    padding: 2rem 1.5rem 0;
  }

  .sr-photo-stage {
    height: auto;
    aspect-ratio: 3 / 4;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .surreal-list {
    flex: none;
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .surreal-row {
    min-height: unset;
    padding: 4rem 0 6rem;
    opacity: 1;
  }
}

/* ── Outro ─────────────────────────────────────────────────────────────── */
.ss-outro {
  padding: 4rem var(--gutter) 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.ss-outro__divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.ss-outro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.ss-outro__label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.ss-outro__next {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-text);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
  border-radius: 2px;
}
.ss-outro__next:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.04);
}

/* ── Mobile overrides ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ss-piece {
    height: 85svh;
    cursor: default;
  }
  .ss-piece__panel {
    /* On mobile: always visible, fills bottom 40% */
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 1.5rem var(--gutter);
    opacity: 1 !important;
    visibility: visible !important;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 60%, transparent);
    display: flex;
    align-items: flex-end;
  }
  .ss-piece__panel-inner {
    gap: 0.5rem;
    max-width: 100%;
  }
  .ss-piece__title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .ss-piece__story { display: none; }
  .ss-piece__mood  { display: none; }
  .ss-piece__caption { display: none; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ss-hero__scroll-line { animation: none; }
}
