/* ==========================================================================
   LUXURY MINIMALIST PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-dark: #070708;
  --bg-dark-card: #111113;
  --bg-light: #F3F3EF;
  --bg-light-card: #FFFFFF;

  --text-primary-dark: #FFFFFF;
  --text-secondary-dark: #8F8F99;
  --text-muted-dark: #52525B;

  --text-primary-light: #09090B;
  --text-secondary-light: #475569;
  --text-muted-light: #94A3B8;

  --accent-blue: #2563EB;
  --accent-glow: rgba(37, 99, 235, 0.15);

  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);

  /* Fonts */
  --font-hegarty: 'BBH Hegarty', 'Bebas Neue', 'Oswald', sans-serif;
  --font-display: 'Oswald', 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body-alt: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Custom Strong Easing Curves (Emil Kowalski / animations.dev framework) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: transform 160ms var(--ease-out), opacity 160ms ease-out;
  --transition-smooth: transform 200ms var(--ease-out), opacity 200ms ease-out;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

/* Light Background & Theme Overrides for Project Detail Pages */
html.detail-page,
body.detail-page,
body.detail-page main {
  background-color: #FFFFFF !important;
  color: #111113 !important;
  overflow-x: clip !important;
}

body.detail-page .custom-cursor {
  background-color: rgba(0, 0, 0, 0.75);
  mix-blend-mode: normal;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor.active {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.95);
}

/* Base Typography */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  display: inline-block;
}

/* Touch device cursor disabling */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* Container Utility - Full width with 40px left and right margin/padding */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 40px);
  box-sizing: border-box;
}

/* ==========================================================================
   1. NAVIGATION HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: padding 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  padding: 0.9rem 0;
  background-color: rgba(244, 243, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo (IA Monogram) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-ia {
  font-family: var(--font-hegarty);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #000000;
  line-height: 1;
  transition: transform 0.3s var(--ease-out-expo);
}

.brand-logo:hover .logo-ia {
  transform: scale(1.05);
}

/* Right Nav Controls */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.nav-link {
  font-family: var(--font-body-alt);
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  font-weight: 500;
  color: #18181B;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #000000;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #000000;
  transition: width 0.3s var(--ease-out-expo);
}

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

/* Contact / Copy Email Button in Nav */
.pill-btn-dark {
  background-color: #000000;
  color: #FFFFFF;
  padding: 0.6rem clamp(1.2rem, 2vw, 1.6rem);
  border-radius: 9999px;
  font-family: var(--font-body-alt), 'Inter', sans-serif;
  font-size: clamp(0.82rem, 1.1vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  border: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .pill-btn-dark:hover {
    transform: translateY(-1px);
    background-color: #18181B;
  }
}

.pill-btn-dark:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

/* Copy Email Button Shared Styling & Animations */
.copy-email-btn .btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.25s var(--ease-out-expo), color 0.2s ease;
}

.copy-email-btn .btn-text {
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.copy-email-btn.is-copied {
  background-color: #111113 !important;
  animation: copyPulse 0.4s var(--ease-out-expo);
}

.copy-email-btn.is-copied .btn-icon-wrap {
  transform: scale(1.15);
  color: #4ADE80;
}

@keyframes copyPulse {
  0% {
    transform: scale(0.96);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   2. HERO SECTION (Latest Dual-Layer Design - Extreme Top & Bottom, No Blur)
   ========================================================================== */
.hero-section {
  background-color: #FFFFFF;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

/* Background Continuous Rotating Flower (Touching Top & Bottom of Hero) */
.hero-flower-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flowerRotate 45s linear infinite;
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rotating-flower {
  height: 100%;
  width: 100%;
  object-fit: contain;
  backface-visibility: hidden;
}

@keyframes flowerRotate {
  from {
    transform: translate3d(-50%, -50%, 0) rotate(0deg);
  }

  to {
    transform: translate3d(-50%, -50%, 0) rotate(360deg);
  }
}

/* Hero Layers Wrapper (Spans full height, pushing content to extreme top & bottom) */
.hero-layers-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(4.5rem, 7.5vh, 5.5rem) clamp(1rem, 3vw, 2.5rem) clamp(0.75rem, 2vh, 1.5rem) clamp(1rem, 3vw, 2.5rem);
  box-sizing: border-box;
  pointer-events: none;
}

.hero-top-layer,
.hero-bottom-layer {
  pointer-events: auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-top-layer {
  margin-top: 0;
}

.hero-bottom-layer {
  margin-bottom: 0;
}

/* --- TOP LAYER: OPEN TO WORK BADGE (30% OPACITY CONTAINER, NO BLUR) --- */
.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.4rem;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease;
}

.hero-status-badge:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.45);
}

/* Blinking Green Rectangle */
.blinking-green-rect {
  width: 15px;
  height: 15px;
  background-color: #00D06C;
  border-radius: 2px;
  display: inline-block;
  animation: blinkGreenPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blinkGreenPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(0, 208, 108, 0.7);
  }

  50% {
    opacity: 0.25;
    transform: scale(0.92);
    box-shadow: 0 0 0px rgba(0, 208, 108, 0);
  }
}

.status-badge-text {
  font-family: var(--font-hegarty);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #000000;
  line-height: 1;
  text-transform: uppercase;
}

/* --- BOTTOM LAYER: INTRO CARD (30% OPACITY CONTAINER, NO BLUR) --- */
.hero-intro-card {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: clamp(1.4rem, 2.8vh, 2.2rem) clamp(1.25rem, 3.5vw, 2.5rem);
  max-width: 580px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.hero-intro-title {
  font-family: var(--font-hegarty);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: 0.75rem;
}

.hero-intro-desc {
  font-family: var(--font-body-alt), 'Inter', sans-serif;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  font-weight: 400;
  color: #38383F;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 1.25rem auto;
}

.hero-copy-btn {
  background-color: #000000;
  color: #FFFFFF;
  padding: 0.7rem clamp(1.6rem, 2.5vw, 2.2rem);
  border-radius: 9999px;
  font-family: var(--font-body-alt), 'Inter', sans-serif;
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .hero-copy-btn:hover {
    transform: translateY(-2px);
    background-color: #18181B;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
}

.hero-copy-btn:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

@media (max-width: 768px) {
  .hero-layers-wrapper {
    padding: 4.8rem 1rem 1rem 1rem;
    gap: 1.5rem;
  }

  .hero-intro-card {
    padding: 1.25rem 1rem;
  }

  .hero-intro-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-bottom: 0.5rem;
  }

  .hero-intro-desc {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   3. FEATURED WORK SECTION
   ========================================================================== */
.work-section {
  background-color: #FFFFFF;
  color: var(--text-primary-light);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}

.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  gap: 1rem;
}

.work-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary-light);
}

.pill-btn-light {
  background-color: var(--text-primary-light);
  color: #FFFFFF;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.pill-btn-light:hover {
  transform: translateY(-2px);
  background-color: #18181B;
}

/* Horizontal Gallery Tracks Layout */
.container-fluid {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.projects-rows-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 6vw, 5.5rem);
}

.project-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Framer-Style Ticker Wrap & Infinite Animation */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0;
  contain: paint layout;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: max-content;
  animation: tickerInfinite 38s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
}

.project-row:nth-child(even) .ticker-track {
  animation-duration: 44s;
  animation-direction: reverse;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerInfinite {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Gallery Cards Sizing & Link Wrapper */
.gallery-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.gallery-card {
  flex: 0 0 auto;
  width: clamp(280px, 36vw, 620px);
  aspect-ratio: 16 / 9;
  border-radius: clamp(8px, 1.5vw, 12px);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #F1F1F4;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease;
  cursor: pointer;
  box-shadow: none;
}

.gallery-card-link:hover .gallery-card {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.2);
}

.card-wide,
.card-tall,
.card-square {
  width: clamp(280px, 36vw, 620px);
  aspect-ratio: 16 / 9;
  height: auto;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery-card-link:hover .gallery-img {
  transform: scale(1.04);
}

/* ==========================================================================
   PROJECT DETAIL PAGE — Sticky Sidebar & Editorial Layout (Ref: netpay.png)
   ========================================================================== */

/* 1. Top Navigation Bar */
.detail-top-nav {
  width: 100%;
  background-color: #FFFFFF;
  border-bottom: 1px solid #EAEAEA;
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.detail-top-nav-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-nav-btn {
  font-family: 'Inter', var(--font-body-alt), sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #111113;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s ease;
}

.detail-nav-btn:hover {
  opacity: 0.6;
}

/* 2. Hero Section - Fill width container with fixed height and locked aspect ratio */
.detail-hero-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background-color: #FAFAFA;
  height: clamp(480px, 60vw, 600px);
  display: block;
  overflow: hidden;
  position: relative;
}

.detail-hero-container {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.detail-hero-image {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* 3. Metadata / Action Row */
.detail-meta-header {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.5rem 2rem 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-meta-title {
  font-family: 'Inter Tight', var(--font-body), sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #111113;
  letter-spacing: -0.015em;
  margin: 0;
}

.detail-meta-subtitle {
  font-family: var(--font-body-alt), sans-serif;
  font-size: 0.92rem;
  color: #8E8E93;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
}

.detail-figma-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter Tight', var(--font-body), sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #111113;
  background-color: #F4F4F6;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .detail-figma-btn:hover {
    background-color: #E8E8EC;
    transform: translateY(-1px);
  }
}

.detail-figma-btn:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

/* 4. Two-Column Main Content Layout (Constrained Width) */
.detail-main-layout {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 2rem 7rem 2rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4.5rem;
  align-items: start;
}

/* Sticky Left Sidebar Navigation */
.detail-sticky-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  align-self: start;
  padding-top: 0.25rem;
  z-index: 50;
}

.detail-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-sidebar-link {
  font-family: 'Inter', var(--font-body-alt), sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: #8E8E93;
  text-decoration: none;
  transition: color 0.2s ease, font-weight 0.2s ease;
  display: block;
}

.detail-sidebar-link:hover {
  color: #111113;
}

.detail-sidebar-link.active {
  color: #111113;
  font-weight: 600;
}

/* Main Content Column */
.detail-content-column {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  width: 100%;
  max-width: 100%;
}

.detail-content-section {
  scroll-margin-top: 100px;
}

.detail-section-tag {
  font-family: 'Inter Tight', var(--font-body), sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: #8E8E93;
  margin-bottom: 0.4rem;
  text-transform: capitalize;
}

.detail-section-title {
  font-family: 'Inter Tight', var(--font-body), sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: #111113;
  line-height: 1.35;
  margin: 0 0 0.6rem 0;
}

.detail-section-text {
  font-family: var(--font-body-alt), sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #333336;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.detail-subsection-title {
  font-family: 'Inter Tight', var(--font-body), sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111113;
  margin: 1.75rem 0 0.5rem 0;
}

.detail-subgroup {
  margin-top: 1.75rem;
}

.detail-step-item {
  margin-bottom: 1.25rem;
}

.detail-step-num {
  font-family: var(--font-body), sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #111113;
  display: block;
  margin-bottom: 0.25rem;
}

.detail-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-bullet-list li {
  font-family: var(--font-body-alt), sans-serif;
  font-size: 0.95rem;
  color: #333336;
  position: relative;
  padding-left: 1.25rem;
}

.detail-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8E8E93;
  font-size: 1rem;
  line-height: 1.5;
}

/* Image Card Frames (Framed canvas with responsive scaling) */
.detail-card-frame {
  background-color: #F8F8FA;
  border-radius: 10px;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3.5vw, 2.5rem);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #EEEEF0;
}

.detail-card-frame img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  object-fit: contain;
}

/* 5. Minimal Footer */
.detail-footer {
  border-top: 1px solid #EAEAEA;
  background-color: #FFFFFF;
  padding: 2.5rem 2rem;
}

.detail-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter Tight', var(--font-body), sans-serif;
  font-size: 0.85rem;
  color: #111113;
}

.detail-footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.8rem;
}

.detail-footer-socials a {
  color: #111113;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.detail-footer-socials a:hover {
  opacity: 0.6;
}

/* Responsive adjustments for Detail Pages */
@media (min-width: 1440px) {
  .detail-hero-wrapper {
    height: clamp(500px, 39.06vw, 750px);
  }
}

@media (max-width: 900px) {
  .detail-hero-wrapper {
    height: clamp(240px, 48vw, 380px);
    width: 100%;
  }

  .detail-main-layout {
    grid-template-columns: 100%;
    gap: 2rem;
    padding: 0 0 5rem 0;
    width: 100%;
  }

  .detail-top-nav {
    padding: 0.85rem 1.25rem;
  }

  .detail-meta-header {
    padding: 2rem 1.25rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  /* Sticky Horizontal Nav Bar on Mobile */
  .detail-sticky-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 950;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #EAEAEA;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .detail-nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.4rem;
    padding: 0.15rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .detail-nav-list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .detail-nav-list li {
    flex: 0 0 auto;
    display: inline-flex;
  }

  .detail-sidebar-link {
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 400;
    padding: 0.35rem 0.15rem;
    border-radius: 0;
    background-color: transparent;
    color: #8E8E93;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, font-weight 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .detail-sidebar-link:hover {
    color: #111113;
    background-color: transparent;
  }

  .detail-sidebar-link.active {
    color: #111113 !important;
    background-color: transparent !important;
    font-weight: 600;
  }

  .detail-content-column {
    gap: 3.5rem;
    padding: 0 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-content-section {
    scroll-margin-top: 115px;
  }

  .detail-card-frame {
    padding: clamp(0.75rem, 3vw, 1.5rem);
    border-radius: 8px;
    margin: 1.25rem 0 1.5rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-card-frame img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }

  .detail-footer {
    padding: 2rem 1.25rem;
  }

  .detail-footer-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .detail-hero-wrapper {
    height: clamp(220px, 52vw, 300px);
  }

  .detail-figma-btn {
    width: 100%;
    justify-content: center;
  }

  .detail-section-title {
    font-size: 1.15rem;
  }

  .detail-section-text {
    font-size: 0.92rem;
  }

  .detail-card-frame {
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
  }
}

/* Placeholder Styling */
.placeholder-card {
  background: linear-gradient(135deg, #F6F6F4 0%, #E8E8E4 100%);
  border: 1px dashed rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.placeholder-card.dark-placeholder {
  background: linear-gradient(135deg, #18181B 0%, #09090B 100%);
  border-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.placeholder-card.vibrant-placeholder {
  background: linear-gradient(135deg, #FFF0F5 0%, #FCE4EC 100%);
  border-color: rgba(233, 30, 99, 0.2);
  color: #880E4F;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  color: #64748B;
  pointer-events: none;
}

.dark-placeholder .placeholder-content {
  color: #94A3B8;
}

.vibrant-placeholder .placeholder-content {
  color: #AD1457;
}

.placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.placeholder-hint {
  font-size: 0.78rem;
  opacity: 0.7;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.project-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary-light);
}

.project-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary-light);
  font-weight: 400;
}

/* ==========================================================================
   4 & 5. COMBINED CALL TO ACTION & FOOTER SECTION
   ========================================================================== */
.footer-combined-section {
  background-color: #FFFFFF;
  color: var(--text-primary-light);
  padding: clamp(5rem, 8vw, 8rem) 0 0 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Background Translucent Hero Flower Rising Behind Typography (50% Bleed Out at Bottom) */
.footer-flower-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: clamp(750px, 75vw, 1200px);
  height: auto;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-flower-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Top CTA Header */
.footer-cta-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(6rem, 14vw, 13rem);
}

.cta-headline {
  font-family: 'Inter Tight', var(--font-body);
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.025em;
  color: #000000;
  line-height: 1.05;
  margin: 0;
  text-align: left;
}

.cta-rect-btn {
  background-color: #000000;
  color: #FFFFFF;
  padding: 1.15rem clamp(2rem, 3.8vw, 3.2rem);
  font-family: var(--font-body-alt), 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: transform 0.25s var(--ease-out-expo), background-color 0.25s ease;
}

.cta-rect-btn:hover {
  transform: translateY(-2px);
  background-color: #18181B;
}

.cta-rect-btn:active {
  transform: scale(0.97);
}

/* Social Labels Row Aligned With Letters */
.footer-social-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.2rem;
  padding: 0 clamp(1.25rem, 3vw, 40px);
  box-sizing: border-box;
}

.footer-social-link {
  font-family: 'Inter', var(--font-body-alt), sans-serif;
  font-size: clamp(0.7rem, 1.15vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000000;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.footer-social-link:hover {
  opacity: 0.6;
  transform: translateY(-1px);
}

.col-i1 {
  width: 9%;
  text-align: left;
}

.col-d {
  width: 26%;
  text-align: center;
}

.col-r {
  width: 26%;
  text-align: center;
}

.col-i2 {
  width: 11%;
  text-align: center;
}

.col-s {
  width: 26%;
  text-align: right;
}

/* Giant Solid Black IDRIS Vector Letters Bleeding Out at the Bottom */
.footer-svg-artwork-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  line-height: 0;
  margin-bottom: -1.5vw;
}

.idris-footer-svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .footer-cta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 5rem;
  }

  .cta-rect-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .footer-flower-bg {
    width: clamp(550px, 125vw, 850px);
    bottom: 0;
    transform: translate(-50%, 50%);
  }

  .footer-social-row {
    padding: 0 0.5rem;
    margin-bottom: 0.75rem;
  }

  .footer-social-link {
    font-size: clamp(0.52rem, 2vw, 0.75rem);
  }
}

/* ==========================================================================
   MODAL / LIGHTBOX & CONTACT DRAWER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: clamp(1rem, 3vw, 2rem);
}

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

.modal-card {
  background-color: #121214;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  max-height: 90svh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
  color: #FFFFFF;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.modal-img {
  width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms var(--ease-out);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Reduced Motion (Emil Kowalski / animations.dev framework) */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 200ms ease-out !important;
  }
}