/* ==========================================================================
   KHUSHI KABRA PORTFOLIO — MASTER STYLESHEET
   Base layout and editorial typography stylesheet
   ========================================================================== */

@import url("./reference.css");
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Pinyon+Script&family=Italianno&display=swap");

:root {
  /* Editorial Typography mapping to open-source luxury equivalents */
  --font-serif: "Cormorant Garamond", "Bradford", Georgia, serif !important;
  --font-sans: "Plus Jakarta Sans", "TWK Everett", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace !important;
  --font-script: "Pinyon Script", "Italianno", "Great Vibes", cursive !important;

  /* Portfolio Color Palette - Warm Offwhite #f0f0ec */
  --color-sand: #f0f0ec !important;
  --color-offwhite: #f0f0ec !important;
  --color-stone: #4e483e;
  --color-sun: #975428;
  --color-water: #5a656c;
  --color-dark: #191816;
  color-scheme: only light !important;

  /* Easing */
  --transition-ms: 650;
  --wordmark-split-ms: 650;
  --ease-editorial: cubic-bezier(0.76, 0, 0.24, 1);

  /* Custom Cat Cursor (28x26, hotspot at ear tip 8px, 5px) */
  --cat-cursor: url("./cat-cursor.png") 8 5, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAaCAYAAACkVDyJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAPGSURBVEhL7ZVtSFtXGMfr1OnU+YYvzOCNXoMfLLhY49UFTMxALTQb5oOEdc4I0yYDjfiSIEp0TjOmmyIIkiZfmlXwLQFD/bQWFRZhgfnBUmFOtzLsoKaOlIwRsrHzjEd2Q+6JnXGwsQ/7wZ/kvPD/n3Puc8+9cuV//m0AIInu+8eYnp42q1SqfbfbbaTHogGAlwHg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ft8PinvAwCsWCx+joGLi4sqYUoUgUCglGXZQLRZPMK5IyMjt3kfQoiEYZjfSkpKwoeHh1eFKVEAQGJVVdX3lw1E1dTUPAGAbPQJBALX8FosKip6dnJykkHnRMDbX6PRbNFm8QgLZGdnR4E+y8vLA/iayeXyJ3iL0TkC9Ho9Hk2M4UXKyMgAl8v1ASHkDaVS+VNiYiJMTk7aaP8YPB5PW2FhYYzhRcJHoFAoTpRK5XNsq1SqZ6FQSEL7x7C/v3+Vv6D/rurr6596vd63ae9z8fl8MrFYHGOCnyIUfjGwjUeGx8j3ZWZmgkQiAZ1O9xAAqmnfF+L3+1/TarV3m5ub73Z1dX0hk8mearXar8fHx81DQ0NGk8nUq9fr7+h0uk+wPTY2ZpiYmOiampp69+joqJoQ8grteSmwygAgge7/T/MHOqlUzfhfeXAAAAAASUVORK5CYII=") 8 5, pointer;
  --cat-cursor-active: url("./cat-cursor-small.png") 7 4, url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAWCAYAAADafVyIAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAMESURBVEhL7ZRvSBNhHMed6cimU2ibQ2SCmCfRn+3OYyhDKrmVCku63sRebIXBkQom90JoIvZC3UTYC+MQSx3aJkZYsSQREQomBdqbCbEWhRlkLySIVVI8v3hkN7xHm1IvetMXvnD3e/h+fnfPv4yM//pT+Xy+c6IodiCE8sixvxYAqKurq99otVpob28PkU0QQkeam5tvcRz3cGFhoXL72L40Nzd3Sq/XA+6Vl5cHNE2/o2l6mWGYlzzPP2ZZ9n12djZgt7W19ZD53ZQ7Ojp6UH5paWmZyMrK2mqwl3men1CidpHb7XY5nc6I3+/vCIfD500m00+VSgUDAwMQCARAboZrdrsdXC7X1jOumc3mjdXV1WOxWEwriuKJ8fHxYpK/pWg0apyamrpmsVi+4aBGo4HNzU1IJBKQk5OT+uLFxUXAYlk2VeM47tXMzMx1URRv9/b2XlGAx8bGHP39/XeCwaBnbW3NVVxcnJCDFotFAcKura0FSZKgqKgoVTOZTN/dbve9zs7Ojng8blA0CIVC9uHh4cvz8/Mn19fXjQzDrGwHprM8TaWlpW+bmpp6nE7ns8HBwWFJki4JgjCEENIqmmF5PJ4bOp1OAUhnPH1dXV0+OY8QOlxXV3cfMyRJOq+k4wTAAUEQvHgLkjDS+APUajUIgvAIADJlRn19/RBew9bWVqeSnlQ0Gj1aWFj4gwSSlv8Qn5mRkZELcp7juEBBQQH09fVdVJKTQghpysrKPpDAdG5sbAzL+YaGhgd4iqanp48ryUnh37XZbEskJJ0pivoMAIdwvqqq6rXRaIRIJFJGslPief4uCUlng8EACKGzXq/3Jl54h8PxAgCySW5KPp/vKr7sSNDvrFKpUGVl5Zfc3FwoLy+H2dnZGpKpUHd3d11+fv4O0F6mafprKBTauT1JBYPBMxUVFRsURX3Cp7akpASsVusKTdNLDMNEKYr6aDabl1mWfW61Wp/abLYngiD44/H4/q5vfB5isZgeAIyTk5Onw+FwDa4lxzIBQEdm/ol+AbLtsU89+nwIAAAAAElFTkSuQmCC") 7 4, pointer;
}

/* Global Cursor Applied Everywhere */
html, body {
  cursor: var(--cat-cursor) !important;
}

*, *::before, *::after {
  cursor: inherit;
}

a, button, [role="button"], input, select, textarea, label, summary, 
.menu, .sans-link, .cursor-pointer, .destination-discoverer-destination,
.trigger-commission, .nav-brand-link {
  cursor: var(--cat-cursor-pointer) !important;
}

*:active, a:active, button:active, [role="button"]:active {
  cursor: var(--cat-cursor-active) !important;
}

/* ==========================================================================
   1. LENIS SMOOTH SCROLL INTEGRATION
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html {
  background-color: #f0f0ec !important;
  color-scheme: only light !important;
}

body {
  background-color: #f0f0ec !important;
  color: var(--color-stone);
  font-family: var(--font-sans);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  color-scheme: only light !important;
}

.bg-sand {
  background-color: #f0f0ec !important;
}

.bg-sand\/90 {
  background-color: rgba(240, 240, 236, 0.92) !important;
}

::selection {
  background-color: var(--color-sun);
  color: var(--color-sand);
}

/* ==========================================================================
   2. HERO PINNED RUNWAY & SCROLL-SCRUBBED ANIMATION
   ========================================================================== */
.hero-pinned-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh + 870px);
  background: #f0f0ec;
}

.hero-pinned-wrapper .hero {
  background: #f0f0ec;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-back {
  z-index: 0;
  align-self: stretch;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background-color: #f0f0ec;
  width: 100%;
  height: 100%;
}

.hero-front {
  pointer-events: none;
  z-index: 51;
  justify-content: center;
  align-self: stretch;
  align-items: center;
  min-height: 0;
  display: flex;
}

.layer {
  object-fit: cover;
  object-position: center center;
  user-select: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.layer.base {
  z-index: 1;
}

.layer.enter {
  z-index: 2;
}

/* Curtains: 1:1 scrubbed by scroll gesture, NO CSS transitions to prevent auto-playing! */
.curtain {
  z-index: 4;
  will-change: transform;
  background: var(--color-sun);
  width: 50.5%;
  position: absolute;
  top: 0;
  bottom: 0;
  transition: none !important;
}

.curtain-left {
  left: 0;
  transform: translate3d(0, 0, 0);
}

.curtain-right {
  right: 0;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   2.1 HERO CAT PAWS SCRUB ANIMATION
   Two animated cat paws reaching in from off-screen left and right,
   gripping the orange slides, and pulling them apart on scroll.
   ========================================================================== */
.hero-paws-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.hero-cat-paw {
  position: absolute;
  top: 50%;
  height: clamp(85px, 14vh, 155px);
  width: auto;
  pointer-events: none;
  will-change: transform;
  display: flex;
  align-items: center;
  transition: none !important;
}

.hero-cat-paw-left {
  right: 50vw;
  transform: translate3d(-60vw, -50%, 0);
  transform-origin: right center;
}

.hero-cat-paw-right {
  left: 50vw;
  transform: translate3d(60vw, -50%, 0);
  transform-origin: left center;
}

.hero-paw-img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.38));
}

/* Hero Scroll Prompt */
.hero-scroll-prompt {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 52;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-sand);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

@keyframes promptBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero-prompt-arrow {
  animation: promptBounce 2s ease-in-out infinite;
}

/* Hero Bottom Bar */
.hero-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
  padding: 0 20px 24px;
  color: var(--color-stone);
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

.hero-bottom-tagline {
  grid-column: 2;
  text-align: center;
  line-height: 1.45;
}

.hero-bottom-location {
  grid-column: 3;
  justify-self: end;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .hero-bottom-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding-bottom: 18px;
  }
  .hero-bottom-tagline,
  .hero-bottom-location {
    grid-column: 1;
    justify-self: center;
  }
}

/* ==========================================================================
   3. HEADER NAVIGATION & BRAND CENTER DOCKING
   ========================================================================== */
header.sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-brand-link {
  display: block;
  transition: opacity 0.25s ease-out;
  cursor: pointer;
}

.nav-brand-link svg text {
  font-family: var(--font-serif);
}

/* Ambient Audio Toggle */
/* About Section Editorial Headlines */
.about-headline-left,
.about-headline-right {
  font-family: var(--font-serif);
  line-height: 1.15;
  will-change: transform;
}

.about-headline-left p,
.about-headline-right p {
  margin: 0;
}
/* About Section Video Showcase (Cropping outer edge letterbox black lines) */
#about-video-container {
  position: relative;
  overflow: hidden;
  background-color: var(--color-sand, #f0f0ec);
  width: 100%;
}

#about-showcase-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transform: scale(1.03);
  transform-origin: center center;
}

/* ==========================================================================
   3.5 SELECTED PROJECTS HERO BANNER (HOUSE OF HONEY REFERENCE STYLE)
   Deep espresso backdrop, all-caps serif title, and giant continuous terracotta
   calligraphy script marquee gliding in the background
   ========================================================================== */
.selected-projects-hero-banner {
  background-color: #1f1413;
  color: var(--color-sand, #e1dfd5);
  position: relative;
  overflow: hidden;
  height: clamp(380px, 46vh, 520px);
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(250, 248, 245, 0.15);
  border-bottom: 1px solid rgba(250, 248, 245, 0.15);
}

@media (min-width: 1024px) {
  .selected-projects-hero-banner {
    height: clamp(420px, 50vh, 560px);
    padding: 0 20px;
  }
}

.selected-projects-header-content {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: auto;
  padding: 0 20px;
}

.selected-projects-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.85);
  margin: 0 0 14px 0;
}

.selected-projects-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sand, #e1dfd5);
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 4px 28px rgba(15, 8, 7, 0.85);
}

/* Giant Terracotta Sun Continuous Looping Script Marquee - Bottom Cutoff */
.selected-projects-marquee-wrap {
  position: absolute;
  bottom: clamp(-70px, -8vw, -130px);
  left: 0;
  width: 100%;
  pointer-events: none;
  overflow: visible;
  user-select: none;
  z-index: 2;
  mix-blend-mode: normal;
}

.selected-projects-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  overflow: visible;
}

.selected-projects-marquee-group {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
  overflow: visible;
  animation: selectedProjectsMarquee 38s linear infinite;
  will-change: transform;
}

.selected-projects-marquee-group .script-text {
  font-family: var(--font-script);
  font-size: clamp(240px, 34vw, 460px);
  color: #c4733e;
  line-height: 0.95;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.01em;
  padding: 0 40px;
  text-shadow: 0 0 50px rgba(196, 115, 62, 0.28);
}

.selected-projects-marquee-group .script-divider {
  font-family: var(--font-script);
  font-size: clamp(120px, 18vw, 240px);
  color: rgba(196, 115, 62, 0.45);
  padding: 0 45px;
  line-height: 1;
}

@keyframes selectedProjectsMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* ==========================================================================
   4. DESTINATION DISCOVERER (SPACES DISCOVERER)
   Interactive project showcase and scroll-spy
   ========================================================================== */
.destination-discoverer-destination {
  cursor: pointer;
  transition: color 0.2s ease-out, transform 0.2s ease-out;
  color: var(--color-sun-20, rgba(151, 84, 40, 0.2));
  will-change: transform, color;
}

.destination-discoverer-destination:hover,
.destination-discoverer-destination.active {
  color: var(--color-sun) !important;
  transform: translateX(12px);
}

.destination-discoverer-destination.active {
  z-index: 20;
}

/* ==========================================================================
   5. SLIDE-OVER DRAWERS (CASE STUDY & MULTI-STEP COMMISSION)
   Matching Vaul drawer dynamics
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 680px;
  background-color: var(--color-sand);
  z-index: 105;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-editorial);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-panel.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(108, 101, 90, 0.2);
}

.drawer-close-btn {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  color: var(--color-stone);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.drawer-close-btn:hover {
  color: var(--color-sun);
  transform: rotate(90deg);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

/* Multi-Step Stepper */
.form-step {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.form-step.active {
  display: flex;
  animation: stepFade 0.35s ease forwards;
}

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

.form-progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.progress-segment {
  flex: 1;
  height: 2px;
  background-color: rgba(108, 101, 90, 0.2);
  transition: background-color 0.3s ease;
}

.progress-segment.active {
  background-color: var(--color-sun);
}

.atelier-input, .atelier-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(108, 101, 90, 0.2);
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-stone);
  outline: none;
  transition: border-color 0.2s ease;
}

.atelier-input:focus, .atelier-textarea:focus {
  border-color: var(--color-sun);
}

.option-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.option-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border: 1px solid rgba(108, 101, 90, 0.2);
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--color-stone);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.option-pill-label:hover {
  border-color: var(--color-sun);
}

.option-pill-radio {
  display: none;
}

.option-pill-radio:checked + .option-pill-label {
  background-color: var(--color-sun);
  color: var(--color-sand);
  border-color: var(--color-sun);
}

.btn-primary-editorial {
  background-color: var(--color-sun);
  color: var(--color-sand);
  padding: 12px 24px;
  font-family: var(--font-serif);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-primary-editorial:hover {
  background-color: #7b3e18;
}

/* Materiality Swatches Grid */
.material-card {
  border: 1px solid rgba(108, 101, 90, 0.2);
  padding: 20px;
  background: var(--color-sand);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(108, 101, 90, 0.08);
}

/* ==========================================================================
   PROJECT GALLERY POPUP (FULL-SCREEN VERTICAL STACK OF IMAGES)
   ========================================================================== */
.project-gallery-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.project-gallery-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.project-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-sand, #f0f0ec);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-gallery-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.project-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: rgba(240, 240, 236, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108, 101, 90, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.project-gallery-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-gallery-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  color: var(--color-stone, #4e483e);
  margin: 0;
  line-height: 1.15;
}

.project-gallery-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sun, #975428);
  opacity: 0.9;
}

.project-gallery-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(108, 101, 90, 0.3);
  padding: 9px 18px;
  border-radius: 9999px;
  cursor: var(--cat-cursor-pointer, pointer);
  color: var(--color-stone, #4e483e);
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-gallery-close-btn:hover {
  background: var(--color-sun, #975428);
  border-color: var(--color-sun, #975428);
  color: #f0f0ec;
  transform: scale(1.04);
}

.project-gallery-close-btn .close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.project-gallery-close-btn .close-icon svg {
  display: block;
  width: 11px;
  height: 11px;
}

.project-gallery-close-btn .close-text {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  font-weight: 600;
  display: inline-block;
}

.project-gallery-scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 36px 20px 80px;
}

.project-gallery-feed {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-gallery-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f0f0ec;
}

.project-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-gallery-item-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-stone, #4e483e);
  opacity: 0.6;
}

.project-gallery-footer {
  text-align: center;
  padding: 50px 0 20px;
}

.project-gallery-close-bottom-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 9999px;
  background: var(--color-sun, #975428);
  color: #f0f0ec;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-gallery-close-bottom-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ==========================================================================
   14. EDITORIAL STICKY TIMESTAMP BAR (FEATURED SHOWCASE ROWS)
   Faithfully matching the exact gap, padding, and scroll animation
   ========================================================================== */
.editorial-timestamp-bar {
  position: sticky !important;
  top: 50vh !important;
  z-index: 20 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  padding: 16px clamp(20px, 3.5vw, 48px) !important;
  gap: clamp(14px, 2vw, 24px) !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  font-family: var(--font-serif) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: var(--color-sand, #f0f0ec) !important;
  pointer-events: auto !important;
  margin: 0 !important;
  transform: none !important;
}

.editorial-timestamp-bar .editorial-segment {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.editorial-timestamp-bar .editorial-divider {
  width: 1px !important;
  height: 14px !important;
  background-color: currentColor !important;
  opacity: 0.5 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.editorial-timestamp-bar .editorial-desc {
  margin: 0 !important;
  white-space: normal !important;
}

/* Missing utility classes fix for reference.css */
.object-contain {
  object-fit: contain !important;
}
.sticky {
  position: sticky !important;
}
.top-1\/2 {
  top: 50% !important;
}
.px-\[15px\] {
  padding-left: 15px !important;
  padding-right: 15px !important;
}
.py-5 {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
.px-0\! {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
@media (min-width: 1024px) {
  .lg\:px-5 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .lg\:gap-4 {
    gap: 16px !important;
  }
}

/* ==========================================================================
   15. THESIS SHOWCASE (LIGHTWEIGHT SINGLE DISPLAY + EXPLORE MORE BUTTON)
   ========================================================================== */
.thesis-showcase-wrapper {
  width: 100%;
  background-color: #f0f0ec;
}

.thesis-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  background-color: #f0f0ec;
  cursor: var(--cat-cursor-pointer, pointer);
}

@media (max-width: 768px) {
  .thesis-stage {
    aspect-ratio: 4 / 3;
    min-height: 360px;
  }
}

.thesis-main-img {
  user-select: none;
  -webkit-user-drag: none;
}

.thesis-stage-scrim {
  pointer-events: none;
}

.thesis-explore-btn {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(20px, 3vw, 40px);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0f0ec;
  background-color: rgba(25, 24, 22, 0.72);
  border: 1px solid rgba(240, 240, 236, 0.55);
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: var(--cat-cursor-pointer, pointer);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.thesis-explore-btn:hover {
  background-color: #975428;
  border-color: #975428;
  transform: translateY(-2px);
}

.thesis-explore-btn svg {
  transition: transform 0.2s ease;
}

.thesis-explore-btn:hover svg {
  transform: translateX(3px);
}

/* Mirrored 24-column Office showcase (Writeup Left, Big Image Right) */
@media (min-width: 1024px) {
  .office-mirrored-text {
    grid-column: 2 / span 5;
    grid-row: 1;
  }
  .office-mirrored-image {
    grid-column: 8 / span 17;
    grid-row: 1;
  }
}

/* ==========================================================================
   16. REACH OUT DRAWER (EMAIL & INSTAGRAM OPTIONS)
   ========================================================================== */
.reach-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reach-option-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(108, 101, 90, 0.28);
  background-color: transparent;
  color: var(--color-stone, #4e483e);
  text-decoration: none !important;
  cursor: var(--cat-cursor-pointer, pointer);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.reach-option-card:hover {
  background-color: var(--color-sun, #975428);
  border-color: var(--color-sun, #975428);
  color: #f0f0ec;
  transform: translateY(-2px);
}

.reach-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid currentColor;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reach-option-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.reach-option-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sun, #975428);
  transition: color 0.25s ease;
}

.reach-option-card:hover .reach-option-label {
  color: rgba(240, 240, 236, 0.85);
}

.reach-option-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  word-break: break-word;
}

.reach-option-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  opacity: 0.72;
}

.reach-option-arrow {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.reach-option-card:hover .reach-option-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   17. SCROLL-MASKED TYPOGRAPHY SECTION ("DESIGNED WITH PLEASURE")
   ========================================================================== */
.masked-type-section {
  width: 100%;
  background-color: #f0f0ec;
  padding: clamp(56px, 7vw, 110px) clamp(16px, 3vw, 40px);
  box-sizing: border-box;
}

.masked-type-stage {
  position: relative;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  aspect-ratio: 1200 / 710;
  overflow: hidden;
  background-color: #f0f0ec;
}

.masked-type-bg {
  position: absolute;
  left: 0;
  top: -32%;
  width: 100%;
  height: 164%;
  object-fit: cover;
  filter: contrast(1.18) saturate(1.12) brightness(0.84);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.masked-type-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   18. INTERACTIVE CAT MOSHPIT CLOSING STATEMENT
   ========================================================================== */
.cat-moshpit-section {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 580px;
  max-height: 960px;
  background-color: #f0f0ec;
  overflow: hidden;
  border-bottom: 1px solid rgba(108, 101, 90, 0.18);
  user-select: none;
  -webkit-user-select: none;
}

.cat-moshpit-statement {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.cat-moshpit-text {
  text-align: center;
  max-width: 820px;
  color: var(--color-stone, #4e483e);
}

.cat-moshpit-text em {
  color: var(--color-sun, #975428);
}

.cat-moshpit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: block;
  touch-action: pan-y;
}

.cat-moshpit-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-stone, #4e483e);
  opacity: 0.52;
  pointer-events: none;
  white-space: nowrap;
}

/* ==========================================================================
   19. BLUR-TO-SHARP SCROLL REVEAL ANIMATION (SMOOTH STUDIO ENTRANCE)
   Applied directly to media elements so parent sticky positioning stays intact.
   overflow: clip prevents edge bleed without creating a sticky-breaking scroll box.
   ========================================================================== */
#product-design-stage,
#thesis-stage,
#boutique-stage,
#office-stage,
#services-stage,
#construction-stage,
#spaces .aspect-4\/5,
.project-gallery-item {
  overflow: clip;
}

.scroll-blur-reveal {
  filter: blur(5px);
  transform: scale(1.025) translate3d(0, 14px, 0);
  opacity: 0.78;
  transition:
    filter 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-blur-reveal.is-in-focus {
  filter: blur(0px);
  transform: scale(1) translate3d(0, 0, 0);
  opacity: 1;
}

.scroll-blur-reveal.is-settled {
  filter: none;
  transform: none;
  will-change: auto;
}

/* Lightweight GPU-only entrance for video containers (avoids software video blur lag) */
.scroll-fade-reveal {
  transform: translate3d(0, 14px, 0);
  opacity: 0.75;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-fade-reveal.is-in-focus {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.scroll-fade-reveal.is-settled {
  transform: none;
}

/* Pause offscreen marquee animation to save GPU cycles on lower-end PCs */
.marquee-paused .selected-projects-marquee-track {
  animation-play-state: paused !important;
}

/* Keep Selected Projects hover crossfade snappy (200ms) once settled */
#destination-discoverer-img.scroll-blur-reveal.is-settled {
  transition: opacity 0.2s ease;
}

/* Subtle editorial hover lift on gallery cards once sharp */
.material-card img.scroll-blur-reveal.is-settled,
.service-slideshow-col img.scroll-blur-reveal.is-settled {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.material-card:hover img.scroll-blur-reveal.is-settled,
.service-slideshow-col:hover img.scroll-blur-reveal.is-settled {
  transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-blur-reveal {
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ==========================================================================
   20. SITTING CAT PERCHED ON PRODUCT DESIGN IMAGE EDGE
   ========================================================================== */
.sitting-cat-perch {
  position: absolute;
  bottom: calc(100% - 6px);
  right: clamp(20px, 6.2vw, 108px);
  width: clamp(72px, 8.2vw, 124px);
  height: auto;
  z-index: 15;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

@media (max-width: 768px) {
  .sitting-cat-perch {
    bottom: calc(100% - 4px);
    right: 18px;
    width: 68px;
  }
}

.sleepy-cat-perch {
  position: absolute;
  bottom: calc(100% - 4px);
  left: clamp(22px, 4.2vw, 68px);
  width: clamp(86px, 8.8vw, 132px);
  height: auto;
  z-index: 15;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

@media (max-width: 768px) {
  .sleepy-cat-perch {
    bottom: calc(100% - 3px);
    left: 16px;
    width: 78px;
  }
}


