/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: 'BlackLottery';
  src: url('BLACKLOTTERY.woff2') format('woff2'),
       url('BLACKLOTTERY.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bosceh';
  src: url('Bosceh.woff2') format('woff2'),
       url('Bosceh.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cerline Rinande Sans';
  src: url('CerlineRinande Sans-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --dark: #1A1A1A;
  --dark-lighter: #2A2A2A;
  --dark-card: #232323;
  --lilac: #CDA7EE;
  --lilac-light: #E6D2FA;
  --lilac-muted: #AB8BCB;
  --lilac-panel: #D6BEEE;
  --cream: #F5F0EB;
  --cream-dark: #E0D6CC;
  --rose: #C4A0AA;
  --mauve: #6B5B73;
  --warm-grey: #8A8078;
  /* Manifesto "on paper" page */
  --paper: #EAE3E6;
  --ink: #211E24;
  --ink-soft: #6E6674;

  --font-display: 'Bosceh', 'BlackLottery', 'Old English Text MT', serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

.mobile-link,
.about-heading,
.showcase-title, .card-placeholder-text,
.vibes-title,
.contact-heading, .statement::before,
.page-title, .gp-title, .phases-title, .door-title,
.manifesto-watch, .manifesto-watch-end, .np-big, .told {
  font-weight: normal;
}

/* BlackLottery ships a single (normal) weight — stop the browser from
   ever faking bold/italic, which smears the blackletter strokes. */
.hero-bg-text,
.mobile-link, .about-heading, .showcase-title, .card-placeholder-text,
.vibes-title, .contact-heading,
.page-title, .gp-title, .phases-title, .door-title,
.manifesto-watch, .manifesto-watch-end, .np-big, .told {
  font-synthesis: none;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--lilac-muted) var(--dark);
  /* The display fonts (Bosceh/BlackLottery) ship a single normal weight, so
     any inherited/UA bold gets faked into a smeared faux-bold. font-synthesis
     is inherited, so switching it off here kills faux bold/italic everywhere;
     fonts with real bold faces (Playfair, Inter) still use those. */
  font-synthesis: none;
}

/* Lenis smooth scroll: disable native smooth-scroll while Lenis is driving,
   otherwise the two fight each other and the page jitters/vibrates. */
.lenis, .lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--lilac);
  color: var(--dark);
}

/* ============================================
   PRELOADER — a 12-frame pixel horse galloping in cream on the
   site's dark background. One SVG sprite strip (768×64 = 12 × 64),
   stepped through with a CSS steps() animation.
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  transition: opacity 0.7s var(--ease-out-quart), visibility 0.7s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-horse {
  --frame: 240px;                 /* one frame, 64px art at 3.75× */
  width: var(--frame);
  height: var(--frame);
  background-image: url('horse-gallop.svg');
  background-repeat: no-repeat;
  background-size: calc(var(--frame) * 12) var(--frame);
  background-position: 0 0;
  animation: gallop 0.78s steps(12) infinite;
}
@keyframes gallop {
  to { background-position: calc(var(--frame) * -12) 0; }
}

/* Progress bar — same art grid as the horse (1 art px = 3 screen px).
   The outline lives in progress-bar.svg; the fill is this element, snapped
   to whole art pixels by script.js so it steps instead of sliding. */
.preloader-bar {
  --px: 3px;                      /* one art pixel */
  position: relative;
  width: calc(var(--px) * 64);    /* outline art size: 64 × 9 */
  height: calc(var(--px) * 9);
  margin-top: calc(var(--px) * 4);
  background: url('progress-bar.svg') no-repeat center / 100% 100%;
  image-rendering: pixelated;
}
/* Inset to the hole in the outline: 2 art px in on every side → 60 × 5. */
.preloader-bar-fill {
  position: absolute;
  left: calc(var(--px) * 2);
  top: calc(var(--px) * 2);
  height: calc(var(--px) * 5);
  width: 0;
  background: var(--cream);
}

/* Pixel percentage under the bar — 3×5 bitmap digits, drawn as SVG rects. */
.preloader-count {
  --px: 4px;
  margin-top: calc(var(--px) * 4);
  color: var(--cream);
  line-height: 0;
}
.preloader-count svg {
  height: calc(var(--px) * 5);
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .preloader-horse { --frame: 160px; }
  .preloader-bar   { --px: 2px; }
  .preloader-count { --px: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-horse { animation: none; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--lilac);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--lilac-muted);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.5;
  will-change: transform;
}

body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot {
  width: 16px;
  height: 16px;
  background: var(--cream);
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--cream);
  opacity: 0.3;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
}

.nav-logo img {
  height: 30px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}

.nav-logo:hover img {
  opacity: 0.7;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

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

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

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: none;
  width: 32px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.nav-menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--cream);
  position: absolute;
  left: 0;
  transition: transform 0.4s var(--ease-out-expo), top 0.4s var(--ease-out-expo);
}

.nav-menu-btn span:first-child { top: 2px; }
.nav-menu-btn span:last-child { top: 16px; }

.nav-menu-btn.active span:first-child {
  top: 9px;
  transform: rotate(45deg);
}
.nav-menu-btn.active span:last-child {
  top: 9px;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--cream);
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--lilac);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark);
}

.anemone-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(15rem, 25vw, 35rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(154, 127, 161, 0.08);
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.hero-logo {
  margin-bottom: 2rem;
  animation: heroFadeIn 1.2s var(--ease-out-expo) both;
}

.hero-logo img {
  width: min(500px, 70vw);
  filter: brightness(0) invert(1);
}

.hero-tagline {
  animation: heroFadeIn 1.2s var(--ease-out-expo) 0.3s both;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--lilac-light);
  font-weight: 300;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  pointer-events: none;
  animation: heroFadeIn 1.2s var(--ease-out-expo) 0.8s both;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--lilac-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-corner-text {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 2;
  pointer-events: none;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  animation: heroFadeIn 1.2s var(--ease-out-expo) 1s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============================================
   SECTION LABELS
   ============================================ */
.about-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-number {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--lilac);
  font-weight: 500;
}

.section-label-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 8rem 3rem;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(154, 127, 161, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.about-heading em {
  color: var(--lilac);
  font-style: normal;
}

.about-text {
  margin-bottom: 3rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--cream-dark);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

/* ============================================
   SHOWCASE
   ============================================ */
.showcase {
  padding: 8rem 3rem;
  background: var(--dark-lighter);
}

.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
  color: var(--cream);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: none;
}

.card-image {
  position: relative;
  display: inline-block;
  height: var(--card-h, 360px);
  overflow: hidden;
  border-radius: 4px;
  vertical-align: top;
}

.card-placeholder {
  height: 100%;
  width: 280px;
  background: linear-gradient(
    135deg,
    hsl(var(--hue), 20%, 15%) 0%,
    hsl(var(--hue), 25%, 10%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
}

.card-placeholder-text {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(154, 127, 161, 0.12);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.card-view {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-out-expo);
}

.showcase-card:hover .card-placeholder {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.showcase-card:hover .card-overlay {
  opacity: 1;
}

.showcase-card:hover .card-view {
  transform: translateY(0);
}

.card-info {
  padding: 1.25rem 0.5rem;
}

.card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.card-tag {
  font-size: 0.7rem;
  color: var(--warm-grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   VIBES
   ============================================ */
.vibes {
  padding: 8rem 3rem;
}

.vibes-container {
  max-width: 1200px;
  margin: 0 auto;
}

.vibes-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}

.vibes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vibe-card {
  background: var(--dark-card);
  border: 1px solid rgba(154, 127, 161, 0.1);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo), background 0.4s;
  cursor: none;
}

.vibe-card:hover {
  border-color: var(--lilac-muted);
  transform: translateY(-4px);
  background: rgba(154, 127, 161, 0.05);
}

.vibe-icon {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--lilac);
}

.vibe-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.vibe-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cream-dark);
  font-weight: 300;
}

/* ============================================
   STATEMENT
   ============================================ */
.statement {
  padding: 8rem 3rem;
  background: var(--dark-lighter);
  position: relative;
  overflow: hidden;
}

.statement::before {
  content: '\201C';
  position: absolute;
  top: 2rem;
  left: 5%;
  font-family: var(--font-display);
  font-size: 20rem;
  color: rgba(154, 127, 161, 0.04);
  line-height: 1;
  pointer-events: none;
}

.statement-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.statement-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.6;
  font-weight: 400;
  font-style: italic;
  color: var(--cream-dark);
  border: none;
}

.highlight {
  color: var(--lilac);
  font-style: normal;
  font-weight: 700;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 8rem 3rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact-heading em {
  color: var(--lilac);
  font-style: normal;
}

.contact-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--cream-dark);
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--lilac);
  position: relative;
  padding-bottom: 0.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--lilac-muted);
  transition: color 0.3s, border-color 0.3s;
}

.contact-email:hover {
  color: var(--cream);
  border-color: var(--cream);
}

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

.social-link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  position: relative;
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--cream);
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--lilac);
  transition: width 0.4s var(--ease-out-expo);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 3rem 3rem;
  border-top: 1px solid rgba(154, 127, 161, 0.1);
  background: var(--dark);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.footer-logo img {
  height: 25px;
  filter: brightness(0) invert(1);
  opacity: 0.4;
}

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

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(154, 127, 161, 0.06);
}

.footer-bottom span {
  font-size: 0.7rem;
  color: var(--warm-grey);
  letter-spacing: 0.05em;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
}

/* Fallback reveal (used only when GSAP fails to load). GSAP sets inline
   styles that override these, so the transition never fights GSAP. */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vibes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor-dot, .cursor-ring {
    display: none;
  }

  .nav {
    padding: 1.25rem 1.5rem;
  }

  .nav.scrolled {
    padding: 0.75rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: block;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-corner-text {
    display: none;
  }

  .about {
    padding: 5rem 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase {
    padding: 5rem 1.5rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-card--tall .card-image {
    padding-top: 120%;
  }

  .vibes {
    padding: 5rem 1.5rem;
  }

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

  .statement {
    padding: 5rem 1.5rem;
  }

  .contact {
    padding: 5rem 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-socials {
    flex-wrap: wrap;
  }

  .footer {
    padding: 2rem 1.5rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .about-heading {
    font-size: 2.75rem;
  }

  .showcase-title {
    font-size: 2.75rem;
  }

  .vibes-title {
    font-size: 2.75rem;
  }

  .contact-heading {
    font-size: 3rem;
  }

  .mobile-link {
    font-size: 2rem;
  }
}

/* ============================================
   MULTI-PAGE ADDITIONS
   ============================================ */

/* Solid nav on inner pages (no hero behind it) */
.nav--solid {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px);
}
.nav-link.is-current {
  color: var(--cream);
}
.nav-link.is-current::after {
  width: 100%;
}

/* Split-text units for typographic reveals */
.split-unit {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---- Inner-page header ---- */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12rem 3rem 3rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.page-intro {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.8;
  color: var(--cream-dark);
  font-weight: 400;
  max-width: 60ch;
  margin-top: 1.75rem;
}

/* ============================================
   MANIFESTO (Home + About)
   ============================================ */
.manifesto {
  position: relative;
  max-width: none;
  margin: 0;
}
.manifesto--about {
  padding: 2rem 3rem 8rem;
}

/* Home: the "Watch me" hero. The page is dark throughout — no colour change. */
.manifesto-hero {
  position: relative;
  /* Shorter than a full screen so there isn't a long empty lilac stretch
     between "Watch me" and the explanation that follows. */
  height: 60vh;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
  background: var(--dark);
  /* Nudge the "Watch me" block a touch above centre. */
  padding-bottom: min(80px, 9vh);
}
.manifesto-hero .mw-char { will-change: transform, filter, opacity; }
.manifesto-hero .manifesto-watch {
  margin: 0;
  text-align: center;
}
/* "Watch me" — 20% larger than before. */
.manifesto-hero .mw-base {
  font-size: clamp(5.4rem, 21.6vw, 19.2rem);
  color: var(--cream);
  white-space: nowrap;
  text-transform: uppercase;
  /* Per-character spans lose pair-kerning, which leaves an outsized gap after
     the wide "W". A little negative tracking evens the caps back out. */
  letter-spacing: -0.02em;
}
/* Subtitle line, sized to spread across the same width as "Watch me". */
.manifesto-hero .mw-sub {
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.6vw, 2.1rem);
  letter-spacing: 0.01em;
  color: var(--cream);
}
/* Per-word / per-character wrappers for the letter animation. */
.manifesto-hero .mw-word { display: inline-block; }
.manifesto-hero .mw-char {
  display: inline-block;
  will-change: transform;
  color: inherit;
}

/* Home: the body, on lilac. Negative margin pulls it up under the hero's
   lower half (which now holds the subtitle) without colliding with it. */
.manifesto-inner {
  position: relative;
  z-index: 1;
  background: var(--lilac-panel);
  text-align: center;
  padding: 0 3rem 10rem;
  margin-top: -8vh;
}
.manifesto-inner .manifesto-aside {
  color: rgba(14, 14, 14, 0.6);
  margin: 0 auto 2.5rem;
}
.manifesto-inner .manifesto-body {
  text-align: left;
  max-width: 46rem;
  margin: 0 auto;
}
.manifesto-inner .m-line { color: var(--dark); }

.manifesto-watch {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 18vw, 16rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.manifesto-aside {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin: 1.5rem 0 4.5rem;
}
.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 820px;
}
.m-line {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.8;
  color: var(--cream-dark);
}
.m-line em {
  color: var(--lilac);
  font-style: italic;
}
.m-lead { color: var(--cream); }
.m-close { color: var(--cream); }
.reveal-words .split-unit { will-change: opacity, filter; }

/* ============================================================
   MANIFESTO — "GARDEN". A pinned scrollytelling run: the wind
   carries a small cluster of flowers from paragraph to paragraph.
   Each scene has its own background, text layout and flower field.
   Background + flowers are driven from scroll by JS; scenes
   crossfade over the top of the pinned stage.
   ============================================================ */
/* margin-top: -1px tucks the garden a hair under the hero so no sub-pixel
   seam can show between the panels. The whole run is dark — no colour change. */
.garden {
  position: relative;
  background: var(--dark);
  margin-top: -1px;
}
.garden-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--dark);   /* the stage is pinned (fixed) — paint it itself */
}
/* Particle canvas sits above the background, below the text. Its pixel buffer
   is 1:1 with CSS pixels, so on hi-DPI screens let the halftone dots upscale
   hard-edged instead of being blurred into mush by the default smoothing. */
.garden-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
}
.garden-scenes {
  position: absolute;
  inset: 0;
  z-index: 2;
}
/* Each scene fills the stage; JS fades them in/out (opacity) so only the
   active paragraph reads. Layout modifiers place the text block. */
.gscene {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 8vh 7vw;
  opacity: 0;
  will-change: opacity;
}
/* ¶1: flowers settle to the right, so the text sits on the LEFT. */
.gscene--right  { align-items: center; justify-content: flex-start; text-align: left; }
.gscene--wide   { align-items: center; justify-content: center; text-align: left; }
.gscene--left   { align-items: center; justify-content: flex-start; text-align: left; }
.gscene--center { align-items: center; justify-content: center; text-align: center; flex-direction: column; }
.gscene--finale { align-items: center; justify-content: center; text-align: center; flex-direction: column; }

.gtext {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.35vw, 2.05rem);
  line-height: 1.45;
  max-width: 24ch;
}
.gtext em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.14em;
  letter-spacing: -0.01em;
}
/* Masked text reveals (melinegobet.fr style): body copy is split into lines,
   the finale display line into letters; each sits inside an overflow-clip
   mask and rises out of it. */
.gword { display: inline-block; }
/* <em> runs are flattened onto the words so lines can wrap in block masks. */
.gword--em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.14em;
  letter-spacing: -0.01em;
}
.gline { display: block; overflow: clip; }
.gline-in { display: block; will-change: transform; }
.gchar { display: inline-block; overflow: clip; vertical-align: top; }
.gchar-in { display: inline-block; will-change: transform; }

/* Two paragraphs stacked on a single screen. */
.gtext-group { display: flex; flex-direction: column; gap: 1.3em; }

/* Every scene sits on the dark page, so the type is always cream.
   Scene 1: artwork settles to the right, text on the left */
.gscene--right  .gtext { color: var(--cream); max-width: 26ch; }
/* Scene 2: wider centred column */
.gscene--wide   .gtext { color: var(--cream); max-width: 30ch; }
/* Scene 3: text on the right */
.gscene--left   .gtext { color: var(--cream); max-width: 28ch; margin-left: auto; }
/* Scene 4: centred */
.gscene--center .gtext { color: var(--cream); max-width: 28ch; }
/* Finale: centred on dark → cream */
.gscene--finale .gtext--lead {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--cream-dark);
  margin-bottom: 0.7em;
  max-width: none;
}
.gscene--finale .gtext--big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 1.02;
  color: var(--cream);
  max-width: none;
}

/* Static fallback (no GSAP / reduced motion): scenes flow as plain, readable
   stacked paragraphs on dark, canvas hidden. */
.garden.is-static .garden-stage { height: auto; overflow: visible; padding: 10vh 0; }
.garden.is-static .garden-canvas { display: none; }
.garden.is-static .garden-scenes { position: relative; inset: auto; }
.garden.is-static .gscene {
  position: relative;
  inset: auto;
  opacity: 1 !important;
  justify-content: center;
  text-align: center;
  padding: 5vh 8vw;
}
.garden.is-static .gscene .gtext { color: var(--cream); margin: 0 auto; }
.garden.is-static .gscene--finale .gtext--lead { color: var(--cream-dark); }
.garden.is-static .gword {
  opacity: 1 !important; filter: none !important; transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .garden-stage { height: auto; overflow: visible; padding: 10vh 0; }
  .garden-canvas { display: none; }
  .garden-scenes { position: relative; inset: auto; }
  .gscene {
    position: relative; inset: auto; opacity: 1 !important;
    justify-content: center; text-align: center; padding: 5vh 8vw;
  }
  .gscene .gtext { color: var(--cream); margin: 0 auto; }
  .gscene--finale .gtext--lead { color: var(--cream-dark); }
  .gword { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* The "told" strike-through stack */
.m-told {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin: 0.5rem 0;
}
.told {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  color: var(--lilac);
}
.told .strike {
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  top: 55%;
  height: 3px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left center;
}
.manifesto-watch-end {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-top: 4.5rem;
}

/* ---- "Under absolutely no pressure" hand-off ---- */
.no-pressure {
  text-align: center;
  padding: 7rem 3rem 5rem;
}
.np-small {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  color: var(--warm-grey);
}
.np-big {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-top: 0.75rem;
}

/* ---- Door into the gallery ---- */
.gallery-door {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  padding: 4rem 3rem 11rem;
  cursor: none;
}
.door-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.door-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  transition: color 0.35s var(--ease-out-expo);
}
.gallery-door:hover .door-title {
  color: var(--lilac);
}
.door-arrow {
  font-size: 1.75rem;
  color: var(--lilac);
  transition: transform 0.35s var(--ease-out-expo);
}
.gallery-door:hover .door-arrow {
  transform: translateY(10px);
}

/* ---- Gallery preview (on Home) ---- */
.gallery-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem 11rem;
}
.gp-head {
  margin-bottom: 3rem;
}
.gp-title-link {
  display: inline-block;
}
.gp-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  transition: color 0.35s var(--ease-out-expo);
}
.gp-title-link:hover .gp-title {
  color: var(--lilac);
}
.gallery-grid--preview {
  --card-h: 500px;
}
.gp-viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
  transition: color 0.3s;
}
.gp-viewall:hover {
  color: var(--cream);
}
.gp-viewall span {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}
.gp-viewall:hover span {
  transform: translateX(6px);
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery {
  padding: 2rem 3rem 8rem;
}
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
}
/* Each card shrinks to its image: uniform height, natural aspect ratio. */
.gallery-grid .showcase-card {
  flex: 0 0 auto;
}
.card-img {
  display: block;
  height: 100%;
  width: auto;
  transition: transform 0.6s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
}
.showcase-card:hover .card-img {
  transform: scale(1.06);
  filter: brightness(0.7);
}

/* ============================================
   PHASES (visual diary)
   ============================================ */
.phases {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
}
.phases-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.phases-list {
  margin-top: 3rem;
}
.phase {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(154, 127, 161, 0.14);
}
.phase:last-child {
  border-bottom: 1px solid rgba(154, 127, 161, 0.14);
}
.phase-when {
  padding-top: 0.35rem;
}
.now-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--lilac);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.phase-date {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.phase-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.phase-note {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cream-dark);
  font-weight: 300;
  max-width: 60ch;
}
.phase-scraps {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}
.scrap {
  width: 160px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(154, 127, 161, 0.12);
}
.scrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scrap--ph {
  background: linear-gradient(135deg,
    hsl(var(--hue), 22%, 16%) 0%,
    hsl(var(--hue), 26%, 10%) 100%);
}

/* ---- Empty state ---- */
.empty-state {
  grid-column: 1 / -1;
  padding: 5rem 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--warm-grey);
  border: 1px dashed rgba(154, 127, 161, 0.2);
  border-radius: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .gallery-grid {
    --card-h: 300px;
  }
}
@media (max-width: 768px) {
  .page-header {
    padding: 9rem 1.5rem 2rem;
  }
  .gallery-preview {
    padding: 1rem 1.5rem 6rem;
  }
  .gallery-grid {
    --card-h: 220px;
    gap: 1rem;
  }
  .manifesto {
    /* Full-bleed hero, no padding — it flows straight into the paper section
       (bottom padding left a dark gap between the lilac hero and the paper). */
    padding: 0;
  }
  .manifesto-body {
    gap: 1.75rem;
  }
  .no-pressure {
    padding: 4rem 1.5rem 3rem;
  }
  .gallery-door {
    padding: 3rem 1.5rem 7rem;
  }
  .gallery {
    padding: 1rem 1.5rem 5rem;
  }
  .phases {
    padding: 4rem 1.5rem 2rem;
  }
  .phase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .scrap {
    width: 120px;
  }
}

/* ============================================
   FULL-WIDTH LAYOUT + HOME CAROUSEL
   ============================================ */

/* Use the full viewport width everywhere (was capped at ~1200px). */
.about-container,
.vibes-container,
.contact-container,
.footer-container,
.statement-container,
.page-header,
.manifesto,
.phases,
.gallery,
.gallery-grid,
.gallery-preview {
  max-width: none;
}
/* Reading columns: widen but keep lines from getting unreadably long. */
.manifesto-body { max-width: min(52rem, 100%); }
.page-intro     { max-width: min(90ch, 100%); }
.phase-note     { max-width: min(90ch, 100%); }

/* ---- Home gallery as a big horizontal carousel ---- */
.gp-carousel {
  position: relative;
  --ch: min(74vh, 820px);
}
.gallery-grid--preview {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.25rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--lilac-muted) rgba(154, 127, 161, 0.08);
}
.gallery-grid--preview.dragging {
  cursor: grabbing;
}
.gp-carousel .card-image {
  height: var(--ch);
}
.gallery-grid--preview .showcase-card {
  scroll-snap-align: start;
}
.gallery-grid--preview::-webkit-scrollbar {
  height: 8px;
}
.gallery-grid--preview::-webkit-scrollbar-thumb {
  background: var(--lilac-muted);
  border-radius: 4px;
}
.gallery-grid--preview::-webkit-scrollbar-track {
  background: rgba(154, 127, 161, 0.08);
}

/* Carousel arrows */
.gp-arrow {
  position: absolute;
  top: calc(var(--ch) / 2);
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--lilac-muted);
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s;
}
.gp-arrow:hover {
  background: var(--lilac);
  border-color: var(--lilac);
  color: var(--dark);
}
.gp-prev { left: 0.75rem; }
.gp-next { right: 0.75rem; }
.gp-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .gp-carousel { --ch: 56vh; }
  .gp-arrow { display: none; }
}

/* ============================================================
   HORIZONTAL WORK GALLERY (home)
   ============================================================ */
.hwork {
  position: relative;
  height: 100vh;
  overflow: hidden;
  border-top: 1px solid rgba(154, 127, 161, 0.12);
}
.hwork-track {
  display: flex;
  height: 100%;
  align-items: stretch;
  will-change: transform;
}
.hwork-item {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 8rem 1.1rem 3.5rem;
  color: var(--cream);
}

/* Intro panel */
.hwork-intro {
  justify-content: center;
  width: min(48vw, 640px);
  padding-left: clamp(1.5rem, 5vw, 6rem);
}
.hwork-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 1.5rem;
}
.hwork-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.hwork-hint {
  margin-top: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

/* Artwork panel */
.hwork-item--art {
  cursor: pointer;
  transition: opacity 0.5s var(--ease-out-expo);
}
.hwork-media {
  height: 58vh;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-end;
}
.hwork-media img,
.hwork-media .morph {
  height: 100%;
  width: auto;
  display: block;
}
.hwork-meta {
  display: block;
}
.hwork-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--cream);
  transition: color 0.35s var(--ease-out-expo);
}
.hwork-item--art:hover .hwork-title { color: var(--lilac-light); }
.hwork-cat {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.hwork-desc {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(154, 127, 161, 0.22);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--cream-dark);
  font-weight: 300;
  max-width: 34ch;
}

/* Horizontal scroll progress bar */
.hwork-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(154, 127, 161, 0.12);
  z-index: 3;
}
.hwork-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--lilac);
}

/* ============================================================
   MORPH (cross-fading multi-version artwork)
   ============================================================ */
.morph {
  position: relative;
  height: 100%;
  aspect-ratio: 1 / 1;
}
.morph-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  opacity: 1;
  transition: opacity 2.5s ease-in-out;
}

/* ============================================================
   ARTWORK DETAIL PAGE
   ============================================================ */
.artwork {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 14rem;
}
.artwork-back {
  position: fixed;
  top: 6.5rem;
  left: clamp(1.5rem, 4vw, 3rem);
  z-index: 50;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  transition: color 0.3s;
}
.artwork-back:hover { color: var(--cream); }
.artwork-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 74vh;
}
.artwork-stage img {
  max-height: 74vh;
  max-width: min(90vw, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.artwork-stage .morph {
  height: 74vh;
  max-width: min(90vw, 720px);
}
.artwork-meta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem clamp(1.5rem, 4vw, 3rem) 2.25rem;
  background: linear-gradient(to top, var(--dark) 40%, transparent);
  pointer-events: none;
}
.artwork-cat {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lilac);
}
.artwork-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.artwork-desc {
  max-width: 46ch;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--cream-dark);
  font-weight: 300;
}

/* Fade transition between gallery and artwork pages */
.page-veil {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

/* ============================================================
   CALM DOWN the card hover (gallery page + anywhere else)
   ============================================================ */
.showcase-card:hover .card-placeholder,
.showcase-card:hover .card-img {
  transform: none;
  filter: none;
}
.card-overlay { display: none; }
.showcase-card { transition: opacity 0.4s var(--ease-out-expo); }
.gallery-grid:hover .showcase-card:not(:hover) { opacity: 0.55; }

@media (max-width: 768px) {
  .hwork-item { padding: 6rem 1.5rem 3rem; }
  .hwork-media { height: 52vh; }
  .hwork-intro { width: 80vw; }
  .artwork-meta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ============================================================
   HOME CLOSING SECTION
   ============================================================ */
.outro {
  padding: 12rem 3rem;
  background: var(--dark);
  border-top: 1px solid rgba(154, 127, 161, 0.12);
}
.outro-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.outro-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 2rem;
}
.outro-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.outro-title em {
  color: var(--lilac);
  font-style: normal;
}
.outro-text {
  max-width: 44rem;
  margin: 2.5rem auto 3rem;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.7;
  color: var(--cream-dark);
}
.outro-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border: 1px solid var(--lilac-muted);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  transition: background 0.4s var(--ease-out-expo), color 0.4s, border-color 0.4s;
}
.outro-link:hover {
  background: var(--lilac);
  color: var(--dark);
  border-color: var(--lilac);
}
.outro-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out-expo);
}
.outro-link:hover .outro-arrow {
  transform: translateX(5px);
}

/* ============================================================
   HEART — screentone anatomical heart, rotation driven by scroll
   ============================================================ */
.heart {
  position: relative;
  min-height: 100vh;
  padding: 10rem 3rem;
  background: var(--dark);
  border-top: 1px solid rgba(154, 127, 161, 0.12);
  display: flex;
  align-items: center;
}
.heart-stage {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) 1.2fr;
  align-items: center;
  gap: 3rem;
}
.heart-canvas {
  grid-column: 2;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 1 / 1;
  justify-self: center;
  display: block;
  /* Fades in once the model has loaded and the first frame is sampled,
     so the section never shows an empty box mid-fetch. */
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo);
}
.heart-canvas.is-ready {
  opacity: 1;
}
.heart-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 30rem;
}
.heart-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 2rem;
}
.heart-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.heart-title em {
  color: var(--rose);
  font-style: normal;
}
.heart-text {
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.7;
  color: var(--cream-dark);
}

@media (max-width: 900px) {
  .heart {
    min-height: 0;
    padding: 7rem 1.5rem;
  }
  .heart-stage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .heart-canvas {
    grid-column: 1;
    grid-row: 2;
    max-width: 520px;
  }
  .heart-copy {
    grid-row: 1;
    max-width: none;
  }
}

/* ============================================================
   TALL FOOTER
   ============================================================ */
.footer--tall {
  padding: 7rem 3rem 3rem;
}
.footer--tall .footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-hero {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(154, 127, 161, 0.1);
}
.footer-brandmark {
  height: 56px;
  width: auto;
  align-self: flex-start;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.3;
  color: var(--cream-dark);
  max-width: 26ch;
}
.footer-cols {
  display: flex;
  gap: 5rem;
  padding: 3.5rem 0;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 0.4rem;
}
.footer-col a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--cream);
  transition: color 0.3s;
}
.footer-col a:hover {
  color: var(--lilac);
}
.footer--tall .footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(154, 127, 161, 0.1);
}

@media (max-width: 768px) {
  .outro { padding: 7rem 1.5rem; }
  .footer--tall { padding: 4rem 1.5rem 2rem; }
  .footer-cols { flex-direction: column; gap: 2.5rem; padding: 2.5rem 0; }
}

/* ============================================================
   GRADUAL BLUR — progressive blur fixed to the bottom of the
   viewport, always on. Stacked layers of increasing blur radius,
   each masked to a feathered band so the blur ramps up toward
   the bottom edge.
   ============================================================ */
.gradual-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7rem;
  z-index: 35;
  pointer-events: none;
}
.gradual-blur .gb-layer {
  position: absolute;
  inset: 0;
}
.gradual-blur .gb-layer:nth-child(1) {
  z-index: 1;
  -webkit-backdrop-filter: url(#gb1); backdrop-filter: url(#gb1);
  -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
          mask: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
}
.gradual-blur .gb-layer:nth-child(2) {
  z-index: 2;
  -webkit-backdrop-filter: url(#gb2); backdrop-filter: url(#gb2);
  -webkit-mask: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
          mask: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
}
.gradual-blur .gb-layer:nth-child(3) {
  z-index: 3;
  -webkit-backdrop-filter: url(#gb3); backdrop-filter: url(#gb3);
  -webkit-mask: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
          mask: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
}
.gradual-blur .gb-layer:nth-child(4) {
  z-index: 4;
  -webkit-backdrop-filter: url(#gb4); backdrop-filter: url(#gb4);
  -webkit-mask: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
          mask: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
}
.gradual-blur .gb-layer:nth-child(5) {
  z-index: 5;
  -webkit-backdrop-filter: url(#gb5); backdrop-filter: url(#gb5);
  -webkit-mask: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
          mask: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
}
.gradual-blur .gb-layer:nth-child(6) {
  z-index: 6;
  -webkit-backdrop-filter: url(#gb6); backdrop-filter: url(#gb6);
  -webkit-mask: linear-gradient(to bottom, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%);
          mask: linear-gradient(to bottom, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%);
}
.gradual-blur .gb-layer:nth-child(7) {
  z-index: 7;
  -webkit-backdrop-filter: url(#gb7); backdrop-filter: url(#gb7);
  -webkit-mask: linear-gradient(to bottom, transparent 75%, #000 87.5%, #000 100%);
          mask: linear-gradient(to bottom, transparent 75%, #000 87.5%, #000 100%);
}

/* ============================================================
   BIG-TITLE WORK SECTION (home) — big centered title, the works
   scroll past it. The horizontal-scroll version is preserved in
   the .hscroll-backup/ folder.
   ============================================================ */
.bigwork {
  position: relative;
  padding-bottom: 15vh;
}
.bigwork-title {
  position: sticky;
  top: 0;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Cerline Rinande Sans', var(--font-display);
  font-size: clamp(3.5rem, 16vw, 18rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  z-index: 1;
  pointer-events: none;
}
/* Two stacked copies of the title (built in JS). The FILL is clean cream; the
   INK overlay carries the colour blots + grain, so grain never greys the
   plain letters. */
.bigwork-title .bwt-fill,
.bigwork-title .bwt-ink {
  text-align: center;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
}
.bigwork-title .bwt-fill {
  background-color: var(--cream);
}
.bigwork-title .bwt-ink {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: background-image;
  /* Ink-bleed: ragged edges + grain — but only where a colour blot exists. */
  filter: url(#inkBleed);
}
.bigwork-items {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  padding-top: 108vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9vh;
}
.bigwork-item {
  display: block;
  width: min(42vw, 520px);
  will-change: transform;
  transition: transform 0.25s var(--ease-out-quart);
}
.bigwork-item:nth-child(odd) { margin-right: 26vw; }
.bigwork-item:nth-child(even) { margin-left: 26vw; }
.bigwork-media {
  border-radius: 4px;
}
.bigwork-media img,
.bigwork-media .morph {
  border-radius: 4px;
}
.bigwork-media img,
.bigwork-media .morph {
  display: block;
  width: 100%;
  height: auto;
}
.bigwork-media .morph { aspect-ratio: 1200 / 1130; }
.bigwork-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  /* A dark halo so the caption stays legible even where it overlaps the
     cream title behind it (invisible against the dark background). */
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.85), 0 1px 10px rgba(0, 0, 0, 0.6);
}
.bigwork-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--cream);
}
.bigwork-cat {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dark);
}
.bigwork-viewall {
  margin: 0 !important;
  align-self: center;
  width: auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--lilac);
  box-shadow: none;
  transition: color 0.3s, transform 0.25s var(--ease-out-quart);
}
.bigwork-viewall:hover { color: var(--cream); }

@media (max-width: 768px) {
  .bigwork-title { font-size: clamp(2.5rem, 15vw, 6rem); }
  .bigwork-item { width: 70vw; }
  .bigwork-item:nth-child(odd) { margin-right: 12vw; }
  .bigwork-item:nth-child(even) { margin-left: 12vw; }
  .bigwork-items { gap: 14vh; }
}

/* ============================================================
   ARTWORK DETAIL PAGES — hero + sections
   ============================================================ */
.art-back {
  position: fixed;
  top: 6.5rem;
  left: clamp(1.5rem, 4vw, 3rem);
  z-index: 60;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  transition: color 0.3s;
}
.art-back:hover { color: var(--cream); }

/* Generic hero (posters) */
.art-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 9rem 2rem 4rem;
  text-align: center;
}
.art-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 66vh;
}
.art-hero-media img {
  max-height: 66vh;
  max-width: min(90vw, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.art-hero-media .morph { height: 66vh; max-width: min(90vw, 640px); }
.art-cat {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 0.75rem;
}
.art-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
}

/* Content sections */
.art-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 7rem 3rem;
  border-top: 1px solid rgba(154, 127, 161, 0.1);
}
.art-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 2rem;
}
.art-text {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.6;
  color: var(--cream-dark);
  max-width: 46rem;
}
.art-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.art-shot { margin: 0; }
.art-shot-ph {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: linear-gradient(135deg, hsl(var(--hue), 22%, 16%), hsl(var(--hue), 26%, 10%));
  border: 1px dashed rgba(154, 127, 161, 0.2);
}
.art-shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--warm-grey);
}
.pansy-versions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.pansy-versions figure { margin: 0; }
.pansy-versions img { width: 100%; height: auto; display: block; }
.pansy-versions figcaption {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

/* Pansy hero: five versions stacked, spread out on scroll */
.pansy-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pansy-stack {
  position: relative;
  width: min(32vw, 400px);
  aspect-ratio: 1200 / 1130;
}
.pansy-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
}
.pansy-hero-caption {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.pansy-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  z-index: 3;
}

@media (max-width: 768px) {
  .art-hero { padding: 7rem 1.5rem 3rem; }
  .art-section { padding: 4rem 1.5rem; }
  .art-shots { grid-template-columns: 1fr; }
  .pansy-versions { grid-template-columns: repeat(2, 1fr); }
  .pansy-stack { width: 62vw; }
}
