/* ==========================================================================
   KIRAN KODI — PROJECT CASE STUDY STYLESHEET
   Faithfully crafted to match template.png:
   - Deep Black Theme for Branding (#0F0F0F) & Light Theme (#E2E2E2) for Product
   - Vibrant Crimson Accent (#DE0606)
   - Season Mix & Season Sans Brand Typography
   - Premium Editorial Layout with Full & 2-Col Image Galleries
   - Next/Previous Project Pagination & Massive Footer Wordmark
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BRAND FONTS (Season Font Family)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Season Mix';
  src: url('./season-font-family/SeasonMix-TRIAL-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Season Mix';
  src: url('./season-font-family/SeasonMix-TRIAL-RegularItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Season Mix';
  src: url('./season-font-family/SeasonMix-TRIAL-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Season Mix';
  src: url('./season-font-family/SeasonMix-TRIAL-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Season Sans';
  src: url('./season-font-family/SeasonSans-TRIAL-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Season Sans';
  src: url('./season-font-family/SeasonSans-TRIAL-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Season Sans';
  src: url('./season-font-family/SeasonSans-TRIAL-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Season Sans';
  src: url('./season-font-family/SeasonSans-TRIAL-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. THEME TOKENS & RESET
   -------------------------------------------------------------------------- */
:root {
  --color-red: #DE0606;
  --color-red-hover: #ff2222;
  --color-red-gradient: linear-gradient(180deg, #DE0606 0%, #880000 100%);
  
  --font-headline: 'Season Mix', Georgia, serif;
  --font-body: 'Season Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --container-max: 1320px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* White Theme (Default & Only Theme for all Case Study Projects) */
:root,
body,
body.theme-light,
body.theme-dark {
  --bg-color: #E2E2E2;
  --bg-surface: #D8D8D8;
  --bg-card: #CECECE;
  --text-primary: #0F0F0F;
  --text-secondary: #3D3D3D;
  --text-muted: #666666;
  --accent-title: #DE0606;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.18);
  --nav-bg: rgba(226, 226, 226, 0.88);
  --sparkle-color: rgba(0, 0, 0, 0.35);
  --footer-wordmark-color: #DE0606;
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

/* --------------------------------------------------------------------------
   PERFORMANCE & GPU COMPOSITING
   -------------------------------------------------------------------------- */
.project-cover-card,
.media-full-wrap,
.media-grid-card {
  will-change: transform;
}

.project-cover-img,
.media-full-wrap img,
.media-grid-card img {
  will-change: transform;
  transform-origin: center center;
}

/* Ensure images render crisply without jank */
img {
  image-rendering: auto;
}


/* --------------------------------------------------------------------------
   3. CUSTOM CURSOR (Defined in cursor.css)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   4. NAVIGATION (Exact match to template.png & branding.html)
   -------------------------------------------------------------------------- */
.project-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, padding 0.3s ease;
}

.project-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand-logo {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: opacity 0.25s ease;
}

.nav-brand-logo:hover {
  opacity: 0.75;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link-item {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.25s ease;
  padding: 4px 0;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--text-primary);
}

.nav-link-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-red);
}

/* Dedicated Go Back Nav Button */
.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: all 0.25s var(--ease-spring);
  text-decoration: none;
}

.nav-back-btn:hover {
  color: var(--color-red);
  background: rgba(222, 6, 6, 0.08);
  border-color: rgba(222, 6, 6, 0.2);
}

.nav-back-btn .back-arrow {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s var(--ease-spring);
}

.nav-back-btn:hover .back-arrow {
  transform: translateX(-3px);
}

/* --------------------------------------------------------------------------
   4b. HAMBURGER MOBILE MENU (Project pages)
   -------------------------------------------------------------------------- */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:hover {
  background-color: var(--border-subtle);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-spring), opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

.nav-hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.35s var(--ease-spring), transform 0.35s var(--ease-spring);
  pointer-events: none;
  overflow: hidden;
}

.nav-mobile-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile-link {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 4rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  padding: 16px 32px;
  width: 100%;
  text-align: center;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--color-red);
}

.nav-mobile-close {
  display: none !important;
}

/* Mobile nav panel social media links */
.nav-mobile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  padding: 0 16px;
  flex-wrap: wrap;
  z-index: 2;
}

.nav-mobile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-social-link .social-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.25s ease;
}

.nav-mobile-social-link .social-arrow {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  opacity: 0.5;
  stroke: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-mobile-social-link:hover,
.nav-mobile-social-link:active {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.nav-mobile-social-link:hover .social-icon,
.nav-mobile-social-link:active .social-icon {
  transform: scale(1.1);
}

.nav-mobile-social-link:hover .social-arrow,
.nav-mobile-social-link:active .social-arrow {
  opacity: 1;
  transform: translate(1.5px, -1.5px);
}

/* --------------------------------------------------------------------------
   5. PROJECT HERO SECTION (Template style)
   -------------------------------------------------------------------------- */
.project-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.project-hero-wrap {
  padding-top: 110px;
  padding-bottom: 32px;
}

/* Header Two-Column / Meta Row */
.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
}

.project-title-block {
  flex: 1 1 45%;
  min-width: 280px;
}

.project-main-title {
  font-family: var(--font-headline);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 500;
  color: var(--accent-title);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.project-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.95;
  letter-spacing: -0.01em;
}

/* Right Metadata Grid (4 Columns as in template) */
.project-specs-grid {
  flex: 1 1 55%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 8px;
}

.spec-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.spec-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   6. HERO COVER MEDIA (Banner with Rounded Corners & Sparkle)
   -------------------------------------------------------------------------- */
.project-cover-card {
  position: relative;
  width: calc(100% + 96px);
  margin-left: -48px;
  margin-right: -48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 72px;
  background-color: var(--bg-card);
}

.project-cover-img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.corner-sparkle {
  display: none !important;
}

/* --------------------------------------------------------------------------
   7. CASE NARRATIVE SECTIONS (Overview, Mission, Research, Concept, Logo)
   -------------------------------------------------------------------------- */
.case-story-section {
  padding: 40px 0 24px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.section-headline {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  max-width: 980px;
}

.section-headline em {
  font-style: italic;
  font-family: var(--font-headline);
  font-weight: 400;
}

.section-text-block {
  max-width: 920px;
  margin-bottom: 20px;
}

.section-text-block p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.section-text-block p strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Bullet list (e.g. Research audit archetypes) */
.section-bullet-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
}

.section-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.section-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-size: 1.3rem;
  line-height: 1;
  top: 2px;
}

.section-bullet-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Quote or highlight block */
.section-highlight-quote {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  border-left: 3px solid var(--color-red);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  line-height: 1.5;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   8. MEDIA GALLERY LAYOUTS (Exact to template.png flow)
   -------------------------------------------------------------------------- */
/* Full Width Media Item — breaks out of container for edge-to-edge impact */
.media-full-wrap {
  position: relative;
  width: calc(100% + 96px);
  margin-left: -48px;
  margin-right: -48px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 44px;
  margin-bottom: 44px;
  box-shadow: var(--card-shadow);
  background-color: var(--bg-card);
}

.media-full-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.6s var(--ease-spring);
}

.media-full-wrap:hover img {
  transform: scale(1.012);
}

/* 2-Column Side-by-Side Grid */
.media-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 44px 0;
}

.media-grid-card {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background-color: var(--bg-card);
}

.media-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.6s var(--ease-spring);
}

.media-grid-card:hover img {
  transform: scale(1.02);
}

/* Multi-Column Grid (3 or 6 items) */
.media-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0;
}

.media-grid-3 .media-grid-card {
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   9. PREVIOUS / NEXT PROJECT PAGINATION
   -------------------------------------------------------------------------- */
.project-pagination-section {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border-strong);
}

.pagination-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 60px;
}

.pagination-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.3s var(--ease-spring);
}

.pagination-nav-item.prev-item {
  align-items: flex-start;
  text-align: left;
}

.pagination-nav-item.next-item {
  align-items: flex-end;
  text-align: right;
}

.pagination-nav-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-project-title {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  transition: color 0.25s ease, transform 0.3s var(--ease-spring);
}

.pagination-nav-item:hover .pagination-project-title {
  color: var(--color-red);
}

.pagination-nav-item.prev-item:hover {
  transform: translateX(-4px);
}

.pagination-nav-item.next-item:hover {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. MASSIVE FOOTER WORDMARK (kirankodi)
   -------------------------------------------------------------------------- */
.project-footer-section {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-color);
}

.footer-wordmark-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  pointer-events: auto;
  position: relative;
  touch-action: pan-y;
  padding: 0 max(16px, 4vw);
  overflow: hidden;
}

.footer-wordmark-text {
  font-family: var(--font-headline);
  font-size: clamp(2.75rem, 15vw, 16.5rem);
  font-weight: 400;
  color: var(--footer-wordmark-color);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-align: center;
  opacity: 0.95;
  background: linear-gradient(180deg, #DE0606 0%, rgba(222, 6, 6, 0.6) 45%, rgba(226, 226, 226, 0.1) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  white-space: nowrap;
  pointer-events: auto;
  touch-action: pan-y;
  max-width: 100%;
  transform-origin: center center;
}

/* --------------------------------------------------------------------------
   11. LIQUID SCROLL REVEAL & PROGRESSIVE ENTRANCE ANIMATIONS
   -------------------------------------------------------------------------- */
:root {
  --ease-liquid: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-liquid-gentle: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base reveal items: silky upward glide and soft opacity */
.reveal-item {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.95s var(--ease-liquid), transform 1.05s var(--ease-liquid);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Progressive staggered child reveals inside case story sections */
.case-story-section .section-label,
.case-story-section .section-headline,
.case-story-section .section-text-block > p,
.case-story-section .section-highlight-quote,
.case-story-section .section-bullet-list li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-liquid), transform 0.95s var(--ease-liquid);
  will-change: opacity, transform;
}

.case-story-section.is-revealed .section-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

.case-story-section.is-revealed .section-headline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 85ms;
}

.case-story-section.is-revealed .section-text-block > p:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 155ms;
}

.case-story-section.is-revealed .section-text-block > p:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 220ms;
}

.case-story-section.is-revealed .section-text-block > p:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 280ms;
}

.case-story-section.is-revealed .section-text-block > p:nth-child(n+4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 330ms;
}

.case-story-section.is-revealed .section-highlight-quote {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 210ms;
}

.case-story-section.is-revealed .section-bullet-list li {
  opacity: 1;
  transform: translateY(0);
}
.case-story-section.is-revealed .section-bullet-list li:nth-child(1) { transition-delay: 160ms; }
.case-story-section.is-revealed .section-bullet-list li:nth-child(2) { transition-delay: 210ms; }
.case-story-section.is-revealed .section-bullet-list li:nth-child(3) { transition-delay: 260ms; }
.case-story-section.is-revealed .section-bullet-list li:nth-child(4) { transition-delay: 310ms; }
.case-story-section.is-revealed .section-bullet-list li:nth-child(n+5) { transition-delay: 360ms; }

/* Progressive staggered child reveals for 2-column & 3-column media grids */
.media-grid-2 .media-grid-card,
.media-grid-3 .media-grid-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease-liquid), transform 0.95s var(--ease-liquid);
  will-change: opacity, transform;
}

.media-grid-2.is-revealed .media-grid-card:nth-child(1),
.media-grid-3.is-revealed .media-grid-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

.media-grid-2.is-revealed .media-grid-card:nth-child(2),
.media-grid-3.is-revealed .media-grid-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 125ms;
}

.media-grid-3.is-revealed .media-grid-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 220ms;
}

/* Progressive staggered reveals for Hero metadata block */
.project-meta-row .project-title-block,
.project-meta-row .spec-column {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-liquid), transform 0.85s var(--ease-liquid);
  will-change: opacity, transform;
}

.project-meta-row.is-revealed .project-title-block {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 30ms;
}

.project-meta-row.is-revealed .spec-column:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 90ms;
}

.project-meta-row.is-revealed .spec-column:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 150ms;
}

.project-meta-row.is-revealed .spec-column:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 210ms;
}

.project-meta-row.is-revealed .spec-column:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 270ms;
}

/* Staggered reveals for Next/Prev pagination */
.pagination-inner .pagination-nav-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-liquid), transform 0.9s var(--ease-liquid);
}

.project-pagination-section.is-revealed .pagination-inner .pagination-nav-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

.project-pagination-section.is-revealed .pagination-inner .pagination-nav-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

/* Footer wordmark reveal */
.footer-wordmark-container {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease-liquid), transform 1.2s var(--ease-liquid);
  will-change: opacity, transform;
}

.footer-wordmark-container.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   LIQUID PARALLAX VISUALS STYLING
   -------------------------------------------------------------------------- */
.project-cover-card,
.media-full-wrap,
.media-grid-card {
  position: relative;
  overflow: hidden;
}

.project-cover-img,
.media-full-wrap img {
  transform: scale(1.05) translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.media-grid-card img {
  transform: scale(1.04) translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.media-full-wrap:hover img {
  transform: scale(1.06) translate3d(0, 0, 0);
}

.media-grid-card:hover img {
  transform: scale(1.05) translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   12. LIGHTBOX MODAL (Image Preview)
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 32px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.35s var(--ease-spring);
}

.lightbox-modal.active .lightbox-modal-content {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: #FFFFFF;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE DESIGN (Tablets & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .project-meta-row {
    flex-direction: column;
    gap: 32px;
  }
  
  .project-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 20px;
  }

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

@media (max-width: 768px) {
  /* Container padding */
  .project-container {
    padding: 0 20px;
  }

  /* Nav */
  .project-nav-inner {
    padding: 16px 20px;
  }

  /* On mobile: keep back button visible, hide desktop text links, show hamburger */
  .nav-links-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-links-wrap .nav-link-item {
    display: none;
  }

  .nav-back-btn {
    display: inline-flex !important;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Mobile panel is handled via .is-open */
  .nav-mobile-panel {
    display: flex;
  }

  .nav-link-item {
    font-size: 0.88rem;
  }

  /* Hero wrap */
  .project-hero-wrap {
    padding-top: 88px;
  }

  /* Title and meta */
  .project-meta-row {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
  }

  .project-title-block {
    min-width: unset;
  }

  .project-main-title {
    font-size: clamp(2.2rem, 9.5vw, 3.2rem);
  }

  .project-subtitle {
    font-size: 1rem;
  }

  .project-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Images: remove breakout on mobile, full width with rounded corners */
  .project-cover-card,
  .media-full-wrap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
  }

  .project-cover-img,
  .media-full-wrap img {
    border-radius: 12px;
    max-height: 65vw;
  }

  .project-cover-card {
    margin-bottom: 40px;
  }

  /* Grid cards */
  .media-grid-card,
  .media-grid-card img {
    border-radius: 12px;
  }

  /* 2-col and 3-col grids go single column */
  .media-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .media-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .media-full-wrap {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  /* Text sections */
  .case-story-section {
    padding: 28px 0 16px;
  }

  .section-label {
    font-size: 0.82rem;
  }

  .section-headline {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
    margin-bottom: 16px;
  }

  .section-text-block p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .section-highlight-quote {
    font-size: 1.1rem;
    padding-left: 16px;
  }

  /* Pagination */
  .pagination-inner {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }

  .pagination-nav-item.next-item {
    align-items: flex-start;
    text-align: left;
  }

  .pagination-project-title {
    font-size: 1.1rem;
  }

  /* Footer wordmark */
  .project-footer-section {
    padding: 36px 0 24px 0;
  }

  .footer-wordmark-text {
    font-size: clamp(2.75rem, 15vw, 16.5rem);
  }
}

@media (max-width: 420px) {
  .project-container {
    padding: 0 16px;
  }

  .project-nav-inner {
    padding: 14px 16px;
  }

  .nav-links-wrap {
    gap: 12px;
  }

  .nav-link-item {
    font-size: 0.82rem;
  }

  .project-specs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-cover-img,
  .media-full-wrap img {
    max-height: 75vw;
  }

  .section-headline {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* --------------------------------------------------------------------------
   14. ACCESSIBILITY: PREFERS REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .case-story-section .section-label,
  .case-story-section .section-headline,
  .case-story-section .section-text-block > p,
  .case-story-section .section-highlight-quote,
  .case-story-section .section-bullet-list li,
  .media-grid-2 .media-grid-card,
  .media-grid-3 .media-grid-card,
  .project-meta-row .project-title-block,
  .project-meta-row .spec-column,
  .pagination-inner .pagination-nav-item,
  .footer-wordmark-container,
  .project-cover-img,
  .media-full-wrap img,
  .media-grid-card img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

