@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@300;400;500&display=swap');

:root {
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Outfit', sans-serif;

  --bg-color: #F5F5F3;
  --text-primary: #111111;
  --text-secondary: #666666;
  --accent-color: #000000;

  /* PRECISION SPACING SYSTEM - 8px base unit */
  --space-1: 8px;      /* Micro: icon gaps, tight elements */
  --space-2: 16px;     /* Small: text gaps, captions */
  --space-3: 24px;     /* Medium: between related elements */
  --space-4: 32px;     /* Standard: grid gaps, component spacing */
  --space-5: 48px;     /* Large: section internal padding */
  --space-6: 64px;     /* XL: between major sections */
  --space-7: 80px;     /* Section padding */
  --space-8: 120px;    /* Hero/major section breaks */

  /* Legacy compatibility */
  --spacing-xs: var(--space-1);
  --spacing-sm: var(--space-2);
  --spacing-md: var(--space-4);
  --spacing-lg: var(--space-6);
  --spacing-xl: var(--space-8);

  --line-height-relaxed: 1.8;
  --line-height-editorial: 2;
}

/* Magazine Grid System */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--space-4);
  row-gap: var(--space-4);
  width: 100%;
  align-items: start;
}

.mg-col-1 {
  grid-column: span 1;
}

.mg-col-2 {
  grid-column: span 2;
}

.mg-col-3 {
  grid-column: span 3;
}

.mg-col-4 {
  grid-column: span 4;
}

.mg-col-5 {
  grid-column: span 5;
}

.mg-col-6 {
  grid-column: span 6;
}

.mg-col-7 {
  grid-column: span 7;
}

.mg-col-8 {
  grid-column: span 8;
}

.mg-col-9 {
  grid-column: span 9;
}

.mg-col-10 {
  grid-column: span 10;
}

.mg-col-11 {
  grid-column: span 11;
}

.mg-col-12 {
  grid-column: span 12;
}

/* Editorial Text Styling */
.editorial-text {
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: var(--line-height-editorial);
  color: var(--text-secondary);
  max-width: 100%;
}

.editorial-text p {
  margin-bottom: var(--space-3);
}

.editorial-text p:last-child {
  margin-bottom: 0;
}

.editorial-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.editorial-subtitle {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
  opacity: 0.6;
}

.magazine-image-wrapper {
  width: 100%;
  overflow: hidden;
  background-color: transparent;
  position: relative;
}

/* Only cropped images show zoom cursor */
.magazine-image-wrapper.img-expandable {
  cursor: zoom-in;
}

/* Image overlay - shows full image at natural ratio */
.img-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-out;
}

.img-overlay.active {
  opacity: 1;
  visibility: visible;
}

.img-overlay-content {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-overlay.active .img-overlay-content {
  transform: scale(1);
  opacity: 1;
}

/* When aspect-ratio is set via inline style, fill the container */
.magazine-image-wrapper[style*="aspect-ratio"] .magazine-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile: simpler image display without absolute positioning */
@media (max-width: 768px) {
  .magazine-image-wrapper {
    aspect-ratio: auto !important;
    height: auto;
  }

  .magazine-image-wrapper .magazine-img,
  .magazine-image-wrapper[style*="aspect-ratio"] .magazine-img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
}

/* Global image/video radius for refined look */
img,
video,
.magazine-image-wrapper {
  border-radius: 5px;
}

.magazine-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

/* Utility Classes for Editorial Layout */
.bg-white {
  background-color: #fff;
}

.bg-dark {
  background-color: #111;
  color: #fff;
}

.bg-light {
  background-color: #f4f4f4;
}

.pd-block-80 {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.pd-block-120 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.pd-block-160 {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.pd-side-50 {
  padding-left: 50px;
  padding-right: 50px;
}

/* Side padding for sections already in container */
.pd-side-0 {
  padding-left: 0;
  padding-right: 0;
}

/* MARGIN SYSTEM - Based on 8px grid */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

/* Legacy support */
.mb-20 { margin-bottom: var(--space-2); }
.mb-40 { margin-bottom: var(--space-4); }
.mb-60 { margin-bottom: var(--space-5); }
.mb-80 { margin-bottom: var(--space-6); }
.mb-100 { margin-bottom: var(--space-7); }
.mt-20 { margin-top: var(--space-2); }
.mt-40 { margin-top: var(--space-4); }
.mt-60 { margin-top: var(--space-5); }
.mt-80 { margin-top: var(--space-6); }
.mt-120 { margin-top: var(--space-8); }

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-white {
  color: #fff;
}

.text-gray {
  color: #ccc;
}

.text-muted {
  color: #999;
}

.align-center {
  align-self: center;
}

.align-end {
  align-self: end;
}

.ml-auto {
  margin-left: auto;
}

.d-block {
  display: block;
}

.d-flex-col-end {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.is-caption {
  font-size: 13px;
  margin-top: 20px;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .magazine-grid {
    column-gap: 20px;
    row-gap: 40px;
  }
}

@media (max-width: 768px) {
  .magazine-grid {
    display: flex;
    flex-direction: column;
  }
}

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

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: var(--line-height-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  font-weight: 300;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.6;
}

/* Layout */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 50px; /* Consistent side padding */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md) 50px;
  /* Enforced 50px spacing */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(245, 245, 243, 0.8);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo a {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.logo-img {
  height: 56px;
  width: auto;
  transition: opacity 0.3s ease;
}

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

/* Stacked text logo */
.logo-stack {
  display: block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo-stack:hover {
  opacity: 0.7;
}

.logo-mili {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000;
  line-height: 1;
}

.logo-lab {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.58em;
  color: transparent;
  -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000;
  line-height: 1;
  margin-top: -2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  header {
    padding: var(--spacing-sm) var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.95);
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 42px;
  }

  .logo-mili,
  .logo-lab {
    font-size: 1.4rem;
  }

  nav ul {
    gap: var(--spacing-sm);
    font-size: 0.65rem;
  }
}

/* Nav Subtitle Stacking */
nav ul {
  align-items: flex-start;
}

nav ul li {
  display: flex;
  align-items: flex-start;
}

/* All nav links align at top */
nav ul li > a,
nav ul li > button {
  line-height: 1;
}

.nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  opacity: 0.5;
  position: relative;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

.nav-link.active {
  opacity: 1;
}

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

.nav-sub {
  font-size: 0.55em;
  font-weight: 400;
  opacity: 0;
  text-transform: capitalize;
  font-family: var(--font-primary);
  margin-top: 2px;
  min-height: 1em;
  transition: opacity 0.3s ease;
}

.nav-link:hover .nav-sub,
.nav-link.active .nav-sub {
  opacity: 0.6;
}

main {
  padding-top: var(--space-8);
}

/* SECTION INTRO - Subtle text reveal */
.section-intro {
  padding: var(--space-6) 50px var(--space-5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-intro-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0.4;
  display: inline-block;
}

.section-intro-divider {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--text-primary);
  opacity: 0.2;
  vertical-align: middle;
  margin: 0 var(--space-3);
}

.section-intro-title {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.6;
  display: inline-block;
}

/* HERO TITLE SECTION - Before video */
.hero-intro {
  padding: var(--space-8) 50px var(--space-6);
  text-align: center;
}

.hero-intro-title {
  font-family: var(--font-primary);
  font-weight: 300;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.15em;
}

.hero-intro-title .title-large {
  display: block;
  font-size: clamp(48px, 10vw, 140px);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-intro-title .title-small {
  display: block;
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 400;
  letter-spacing: 0.4em;
  margin-top: var(--space-3);
  opacity: 0.5;
  text-transform: uppercase;
}

/* VIDEO CONTENT BELOW - Simplified */
.video-content-below {
  padding: var(--space-6) 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-content-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-6);
  align-items: start;
}

.video-content-left .content-subtitle {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.5;
  margin-bottom: var(--space-2);
}

.video-content-left .content-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  margin: 0;
}

.video-content-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.content-item {
  padding-right: var(--space-3);
}

.content-item-title {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.content-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 1024px) {
  .video-content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .video-content-right {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  .hero-intro {
    padding: var(--space-6) var(--space-4) var(--space-5);
  }

  .hero-intro-title .title-large {
    letter-spacing: 0.1em;
  }
}



section {
  padding: var(--space-6) 0;
}

/* ============================================
   PROJECT SECTIONS - Consistent spacing
   120px top and bottom on each section
   ============================================ */
#space-section {
  padding-top: var(--space-5);
}

/* Each project section - consistent 120px padding */
#space-section section {
  padding-top: 120px !important;
  padding-bottom: 120px !important;
}

/* Visual separator between sections */
#space-section section + section {
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Colored background sections handle their own separation */
#space-section section.bg-dark,
#space-section section.bg-light,
#space-section section.bg-white {
  border-top: none;
}

#space-section section.bg-dark + section,
#space-section section.bg-light + section,
#space-section section.bg-white + section {
  border-top: none;
}

/* ============================================
   SECTION TRANSITION - SPLIT SCREEN WIPE
   MONO slides left → KUUKAN enters right
   ============================================ */
.section-transition {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Panel - MONO - Scroll controlled via JS */
.transition-from {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  z-index: 2;
}

.transition-from .transition-inner {
  text-align: center;
}

/* Bottom Panel - KUUKAN - Scroll controlled via JS */
.transition-to {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #3d3a36;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  z-index: 1;
}

.transition-to .transition-inner {
  text-align: center;
}

.transition-to .transition-inner {
  text-align: left;
  padding-left: var(--space-6);
}

.transition-to .transition-label {
  opacity: 0.5;
  color: #fff;
}

.transition-to .transition-title {
  color: #fff;
}

.transition-to .transition-subtitle {
  color: rgba(255,255,255,0.5);
}

/* Shared styles */
.transition-inner {
  max-width: 100%;
}

.transition-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0.4;
  margin-bottom: var(--space-2);
  display: block;
}

.transition-title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 10vw, 120px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 0.9;
  margin: 0;
  color: var(--text-primary);
}

.transition-title-jp {
  display: block;
  font-size: 0.3em;
  letter-spacing: 0.2em;
  margin-top: var(--space-2);
  opacity: 0.25;
}

.transition-subtitle {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.5;
  margin-top: var(--space-3);
  display: block;
}

/* Center divider line - hidden for vertical transition */
.transition-divider {
  display: none;
}

/* Scroll indicator */
.transition-scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.4;
  z-index: 20;
  color: #999;
}

.transition-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background: currentColor;
  margin: var(--space-2) auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ============================================
   SIMPLIFIED TRANSITION SECTION
   ============================================ */
.section-transition-simple {
  background: #3d3a36;
  padding: var(--space-6) var(--space-5);
  text-align: center;
}

.transition-simple-inner {
  max-width: 800px;
  margin: 0 auto;
}

.transition-simple-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-2);
  display: block;
}

.transition-simple-title {
  font-family: var(--font-primary);
  font-size: clamp(32px, 8vw, 72px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  color: #fff;
}

.transition-simple-title .transition-title-jp {
  display: inline-block;
  font-size: 0.5em;
  letter-spacing: 0.2em;
  opacity: 0.3;
  margin-left: var(--space-2);
}

.transition-simple-subtitle {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-3);
  display: block;
}

/* ============================================
   HERO CTA BUTTON
   ============================================ */
.hero-cta {
  display: inline-block;
  margin-top: var(--space-4);
  padding: 14px 32px;
  background: var(--text-primary);
  color: var(--bg-color);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ============================================
   ARCHITECTURE INTRO SECTION
   ============================================ */
.architecture-intro {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.arch-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: start;
}

.arch-intro-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.arch-intro-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.arch-intro-text {
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 520px;
}

.arch-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arch-services-list li {
  font-family: var(--font-secondary);
  font-size: 14px;
  color: var(--text-primary);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.arch-services-list li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .arch-intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ============================================
   ARCHITECTURE CTA SECTION
   ============================================ */
.architecture-cta {
  background: #fafafa;
  text-align: center;
}

.arch-cta-content {
  max-width: 560px;
  margin: 0 auto;
}

.arch-cta-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.arch-cta-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 300;
  letter-spacing: 2px;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.arch-cta-text {
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

.arch-cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.arch-cta-button:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ============================================
   NAV SHOP LINK
   ============================================ */
.nav-shop {
  background: var(--text-primary);
  color: var(--bg-color) !important;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.nav-shop:hover {
  background: #333;
}

/* ============================================
   FOOTER SHOP BUTTON
   ============================================ */
.footer-shop-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #111 !important;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: var(--space-2);
}

.footer-shop-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* ============================================
   ENHANCEMENTS - Luxury Polish
   ============================================ */

/* 1. SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* 2. HEADER SHRINK ON SCROLL */
header {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  background: rgba(245, 245, 243, 0.95);
}

header.scrolled .logo {
  font-size: 1.2rem;
}

/* 3. IMAGE HOVER EFFECTS - Clean reveal without zoom */
.magazine-image-wrapper {
  position: relative;
  overflow: hidden;
}

/* No zoom or scale effects - just clean display */
.magazine-img {
  /* No transform transitions - images don't scale on hover */
}

/* Image row container for paired hover effects */
.img-row {
  display: flex;
  gap: var(--space-4);
  width: 100%;
  /* Fixed height ensures only WIDTH changes on hover (no vertical scaling) */
  --row-height: 450px;
}

.img-row > .img-cell {
  flex: 1;
  min-width: 0;
  height: var(--row-height);
  transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.img-cell .magazine-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remove aspect-ratio for img-row images - height is controlled by row */
.img-cell .magazine-image-wrapper[style*="aspect-ratio"] {
  aspect-ratio: unset !important;
}

/* Image does NOT scale - fixed size, container reveals more on hover */
.img-cell .magazine-img {
  /* Fixed height based on row, width auto to maintain aspect ratio */
  height: var(--row-height);
  width: auto;
  max-width: none; /* Allow image to be wider than container */
  object-fit: none;
  flex-shrink: 0;
}

/* ============================================
   HOVER BEHAVIOR: Expand container, NO image scaling
   - Image size stays constant
   - Container expands to reveal more
   - Sibling shrinks to make room
   ============================================ */

/* On hover: hovered cell expands, siblings shrink */
.img-row:has(.img-cell:hover) .img-cell:hover {
  flex: 2.5;
}

.img-row:has(.img-cell:hover) .img-cell:not(:hover) {
  flex: 0.4;
}

/* 4. CUSTOM CURSOR */
.custom-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: #000;
  border: 2px solid #000;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.custom-cursor.hover {
  width: 50px;
  height: 50px;
  background: transparent;
  border-color: #000;
}

body.custom-cursor-enabled {
  cursor: none;
}

body.custom-cursor-enabled a,
body.custom-cursor-enabled button {
  cursor: none;
}

/* 5. SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--text-primary);
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
}

/* 6. BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: #333;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* 7. PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.preloader-bar {
  width: 120px;
  height: 1px;
  background: rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--text-primary);
  animation: preloaderProgress 1.5s ease forwards;
}

@keyframes preloaderProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* 8. NEWSLETTER SIGNUP */
.newsletter-section {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
  margin-top: 40px;
}

.newsletter-title {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 360px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-input:focus {
  border-color: rgba(255,255,255,0.4);
}

.newsletter-btn {
  padding: 12px 20px;
  background: #fff;
  color: #111;
  border: none;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: #ddd;
}

@media (max-width: 768px) {
  .section-transition {
    flex-direction: column;
  }

  .transition-from,
  .transition-to {
    width: 100%;
    height: 50%;
  }

  .section-transition.in-view .transition-from {
    transform: translateY(-100%);
  }

  .transition-to {
    transform: translateY(100%);
  }

  .section-transition.in-view .transition-to {
    transform: translateY(0);
  }

  .transition-from .transition-inner,
  .transition-to .transition-inner {
    text-align: center;
    padding: var(--space-4);
  }

  .transition-divider {
    width: 0;
    height: 1px;
    top: 50%;
  }

  .section-transition.in-view .transition-divider {
    width: 120px;
    height: 1px;
  }
}

/* Typography Utilities */
.text-uppercase {
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}

.text-serif {
  font-family: var(--font-primary);
}

.mililab-video-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 50px;
  line-height: 0;
  width: 100%;
  display: block;
  position: relative;
}

/* --- HERO OVERLAY --- */
.hero-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Removed 40px padding to align with video corners */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.hero-full-overlay {
  display: grid !important;
  grid-template-columns: 1fr 1.2fr !important;
  gap: 40px !important;
  /* Reduced gap to group content as one element */
  align-items: center !important;
  max-width: 1000px !important;
  /* Narrowed to concentrate content in the center */
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  text-shadow: 0 2px 25px rgba(0, 0, 0, 0.8);
  /* Strengthened shades for readability */
}

.hero-title {
  color: #ffffff !important;
  font-size: clamp(48px, 6vw, 72px) !important;
  margin: 0 !important;
  letter-spacing: 2px !important;
  line-height: 1 !important;
  position: relative;
  font-weight: 400 !important;
}

.m-massive-kanji {
  display: block;
  font-size: 0.6em;
  margin-top: 10px;
  color: #ffffff !important;
  opacity: 0.9;
}

.hero-subtitle,
.m-massive-subtitle {
  color: #ffffff !important;
  margin-top: 25px !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  display: block;
}

.hero-full-overlay .m-item {
  margin-bottom: 60px;
}

.hero-full-overlay .m-item:last-child {
  margin-bottom: 0;
}

.hero-full-overlay .m-massive-right b {
  color: #ffffff !important;
  opacity: 1 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 500;
  display: block;
  margin-bottom: 16px;
}

.hero-full-overlay .m-massive-right p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px;
  line-height: 1.9;
  max-width: 480px;
  margin: 0;
}

.mililab-video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  /* Prevents it from being too tall on huge screens */
  object-fit: cover;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .hero-full-overlay {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 40px !important;
  }

  .hero-title {
    font-size: 58px !important;
  }

  .m-massive-subtitle,
  .hero-subtitle {
    font-size: 11px !important;
    margin-top: 15px !important;
  }

  main {
    padding-top: var(--spacing-lg);
  }

  section {
    padding: var(--spacing-lg) 0;
  }
}


/* --- MILILAB: INTERACTION GRID --- */
.mililab-grid-wrapper {
  max-width: 100%;
  /* Full width */
  margin: 0 auto;
  padding: 0 50px;
  /* Enforced 50px spacing */
  width: 100%;
}

.mililab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 3 / 2;
  background: transparent;
  gap: var(--spacing-md);
}

/* Grid Layout Logic */
.grid-pos-left {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.grid-pos-top-right {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.grid-pos-bot-right {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.grid-item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
}

.m-grid-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

/* B&W Image Styling */
.m-grid-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  filter: grayscale(100%);
  transition: opacity 0.5s ease, transform 0.8s ease;
}

/* Color Video Styling */
.m-grid-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1);
  transition: transform 0.8s ease;
}

/* Hover Animations */
.m-grid-link:hover .m-grid-img {
  opacity: 0;
  transform: scale(1.05);
}

.m-grid-link:hover .m-grid-video {
  transform: scale(1.05);
}

/* Overlay Text Styling */
.m-grid-text {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  pointer-events: none;
}

.m-grid-link:hover .m-grid-text {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive Adjustment */
@media (max-width: 768px) {
  .mililab-grid {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }

  .grid-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 2px;
  }
}

/* --- PRODUCT GRID: Clean White Background Images --- */
.product-grid-section {
  padding: var(--space-8) 50px var(--space-6);
  background: #fff;
}

.product-grid-header {
  max-width: 600px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.product-label {
  display: block;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.product-title {
  font-family: var(--font-primary);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
  color: var(--text-primary);
}

.product-desc {
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
}

.product-cta {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 32px;
  border: 1px solid var(--text-primary);
  transition: all 0.3s ease;
}

.product-cta:hover {
  background: var(--text-primary);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  max-width: 1400px;
  margin: 0 auto;
}

.product-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fafafa;
  position: relative;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item:hover .product-img {
  transform: scale(1.03);
}

.product-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
  background: linear-gradient(transparent, rgba(255,255,255,0.95));
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-item:hover .product-name {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive: 2 columns on tablet */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 480px) {
  .product-grid-section {
    padding: var(--space-5) var(--space-3);
  }

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

/* --- THE SIDE DOCK CONTAINER --- */
#m-dock {
  position: fixed;
  left: var(--spacing-lg);
  /* Aligned with MILILAB logo */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 999999;
}

.m-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000 !important;
  transform-origin: center;
  /* Fast, linear transition for smooth continuous scroll tracking */
  transition: transform 0.1s linear;
}

.m-dock-icon {
  width: 25px;
  /* Base size 25px */
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.m-dock-label {
  font-family: var(--font-primary);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.m-dock-sub {
  font-family: var(--font-primary);
  font-size: 6px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: lowercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: -14px;
  /* Tightened based on feedback */
  display: block;
}

.m-dock-item:hover .m-dock-sub {
  opacity: 0.7 !important;
}

.m-dock-item:hover {
  transform: scale(2) !important;
  /* Reaches 50px */
}

.m-dock-item:hover .m-dock-label {
  opacity: 1 !important;
}

/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
}

/* --- STUDIO PAGE SPECIFIC --- */
/* --- STUDIO PAGE REDESIGN --- */

/* Master Width for Studio Content - Constrained for readability */
.s-master-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px;
}

/* Philosophy Section */
.s-philo-section {
  padding: 120px 0;
  color: var(--text-primary);
}

.s-philo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
}

.s-philo-left {
  flex: 1;
  min-width: 300px;
}

.s-philo-right {
  flex: 2;
  min-width: 300px;
}

.s-philo-title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  color: #000;
}

.s-philo-text {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

.s-philo-highlight {
  font-weight: 500;
  color: #000;
}

/* Team Section (The Lab) */
.s-team-section {
  padding: 100px 0;
}

.s-lab-title {
  font-family: var(--font-primary);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 20px 0;
  letter-spacing: 2px;
  color: #000;
}

.s-lab-desc {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 80px;
}

.s-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.s-team-member {
  text-align: left;
}

.s-sketch-container {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: #eee;
}

.s-member-sketch {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-team-member:hover .s-member-sketch {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.03);
}

.s-member-name {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 4px 0;
  color: #000;
  letter-spacing: 1px;
}

.s-member-role {
  font-family: var(--font-primary);
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Network Section */
.s-network-section {
  padding-top: 40px;
}

.s-network-title {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.s-network-list {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
}

.s-network-person {
  font-size: 13px;
  color: var(--text-secondary);
}

.s-network-person span {
  display: block;
  font-size: 9px;
  color: #999;
  text-transform: uppercase;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* Recruit Section */
.s-recruit-section {
  padding: 120px 0;
}

.s-recruit-intro {
  margin-bottom: 80px;
}

.s-recruit-title {
  font-family: var(--font-primary);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: 2px;
  color: #000;
}

.s-recruit-desc {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
}

.s-accordion-item {
  width: 100%;
}

.s-accordion-header {
  width: 100%;
  padding: 40px 0;
  background: transparent;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.s-job-title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.s-job-loc {
  font-size: 12px;
  color: #888;
  margin-left: 20px;
  font-weight: 400;
  text-transform: none;
}

.s-icon {
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-accordion-header.active .s-icon {
  transform: rotate(45deg);
}

.s-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-content-inner {
  padding: 0 0 60px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
}

.s-content-inner ul {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.s-content-inner li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.s-content-inner li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #bbb;
}

.s-apply-box {
  margin-top: 100px;
  padding: 60px;
  font-size: 14px;
  max-width: 600px;
}

.s-apply-label {
  font-family: var(--font-primary);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
  letter-spacing: 2px;
  font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .s-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .s-philo-container {
    flex-direction: column;
    gap: 40px;
  }

  .s-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .s-network-list {
    gap: 40px;
  }

  .s-job-title {
    font-size: 16px;
  }

  .s-apply-box {
    padding: 30px;
  }
}

@media (max-width: 1560px) {
  #m-dock {
    display: none !important;
  }
}

/* --- SPACE SECTION --- */
.space-section {
  padding: 120px 50px;
  /* Enforced 50px spacing */
  max-width: 100%;
  /* Full width */
  margin: 0 auto;
}

.space-header {
  margin-bottom: 80px;
}

.space-title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-xs);
}

.space-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* --- CLASSICAL PORTFOLIO GRID --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 80px;
  width: 100%;
  margin-top: 60px;
  align-items: start;
  /* PREVENTS STRETCHING */
}

.portfolio-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f0f0f0;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.03);
}

.portfolio-content {
  padding-top: 10px;
  max-width: 90%;
}

.portfolio-title {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #000;
}

.portfolio-desc {
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    row-gap: 60px;
  }

  .portfolio-image-wrapper {
    aspect-ratio: 3/2;
    /* Slightly wider on mobile */
  }
}

/* --- MILILAB FOOTER (PREMIUM UNIFIED) --- */
.mililab-footer {
  background-color: #111;
  padding: 80px 0;
  margin-top: var(--space-8);
  color: #ffffff;
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
}

.mililab-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
}

.col-brand {
  flex: 1.5;
  min-width: 250px;
}

.col-links {
  flex: 1;
  min-width: 160px;
}

.col-social {
  flex: 1;
  min-width: 160px;
}

.mililab-logo {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.1em;
  margin: 0 0 15px 0;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.mililab-sub {
  font-family: var(--font-secondary);
  color: #888;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.mililab-heading {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 11px;
  color: #fff;
  margin-bottom: 25px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
}

.mililab-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mililab-list li {
  margin-bottom: 12px;
}

.mililab-list a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

.mililab-list a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.link-highlight {
  color: #fff !important;
}

/* --- DOCK INTERACTION (LEGACY) --- */
/* Scale is now handled dynamically in main.js */

@media (max-width: 767px) {
  .mililab-container {
    flex-direction: column;
    gap: 40px;
  }
}

/* --- ARCHIVE PAGE REDESIGN --- */

.a-gateway-section {
  padding: 120px 0;
  color: var(--text-primary);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a-master-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 50px;
  width: 100%;
  text-align: center;
}

.a-gateway-left {
  margin-bottom: var(--space-5);
}

.a-gateway-right {
  max-width: 500px;
  margin: 0 auto;
}

.a-gateway-title {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  color: #000;
}

.a-gateway-warning {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  color: #c44;
  margin-bottom: var(--space-3);
  display: inline-block;
  letter-spacing: 3px;
  padding: 8px 16px;
  border: 1px solid #c44;
  border-radius: 2px;
}

.a-gateway-text {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.a-access-button {
  display: inline-block;
  padding: 16px 40px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid #000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.a-access-button:hover {
  background: transparent;
  color: #000;
}

@media (max-width: 768px) {
  .a-master-container {
    flex-direction: column;
    gap: 40px;
  }
}

/* --- CONTACT PAGE REDESIGN --- */

.c-master-container {
  max-width: 100%;
  /* Full width */
  margin: 0 auto;
  padding: 0 50px;
  /* Enforced 50px spacing */
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
}

.c-contact-section {
  padding: 120px 0;
  color: var(--text-primary);
}

.c-contact-left {
  flex: 1;
  min-width: 300px;
}

.c-contact-right {
  flex: 2;
  min-width: 300px;
  padding-top: 40px;
}

.c-contact-title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  color: #000;
  position: sticky;
  top: 120px;
  /* Adjusted for header height visibility */
}

.c-contact-subtitle {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 25px;
  display: block;
  color: #000;
  letter-spacing: 2px;
}

.c-contact-text {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 50px;
  max-width: 500px;
}

.c-contact-link {
  color: #111;
  text-decoration: none;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.c-contact-link:hover {
  border-color: #000;
  color: #000;
}

.c-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  margin-bottom: 80px;
}

.c-map-button {
  display: inline-block;
  padding: 16px 32px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid #111;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-map-button:hover {
  background: transparent;
  color: #111;
}

@media (max-width: 992px) {
  .c-master-container {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .c-master-container {
    flex-direction: column;
    gap: 60px;
  }

  .c-contact-title {
    position: relative;
    top: 0;
  }
}

/* ============================================
   KUUKAN MAGAZINE ENHANCEMENTS
   Pull Quotes, Project Stats, Scroll Animations
   ============================================ */

/* --- PULL QUOTES --- */
.pull-quote {
  grid-column: span 12;
  padding: var(--space-6) 0;
  margin: var(--space-5) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pull-quote-text {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  max-width: 900px;
}

.pull-quote-text::before {
  content: '"';
  display: block;
  font-size: 0.6em;
  opacity: 0.3;
  margin-bottom: var(--space-2);
}

.bg-dark .pull-quote {
  border-color: rgba(255, 255, 255, 0.15);
}

.bg-dark .pull-quote-text {
  color: #fff;
}

/* --- PROJECT STATS --- */
.project-stats {
  grid-column: span 12;
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  margin: var(--space-4) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.5;
  color: var(--text-primary);
}

.bg-dark .project-stats {
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-dark .stat-value,
.bg-dark .stat-label {
  color: #fff;
}

@media (max-width: 768px) {
  .project-stats {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .stat-item {
    min-width: 45%;
  }
}

/* --- ENHANCED SCROLL ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* Image reveal animation */
.image-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-reveal.visible {
  clip-path: inset(0 0 0% 0);
}

/* Scale in animation for images */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Mobile fallback - disable animations, show content immediately */
@media (max-width: 768px) {
  .fade-up,
  .scale-in,
  .image-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Parallax wrapper */
.parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- PROJECT NUMBER INDICATOR --- */
.project-number {
  font-family: var(--font-primary);
  font-size: clamp(120px, 15vw, 200px);
  font-weight: 200;
  line-height: 0.8;
  opacity: 0.06;
  position: absolute;
  right: 50px;
  top: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-dark .project-number {
  opacity: 0.08;
  color: #fff;
}

/* Section needs relative positioning for project number */
#book-forest-section,
#light-veil-section,
#snow-canvas-section,
#timeless-fusion-section,
#under-curve-section,
#vertical-lush-section {
  position: relative;
  overflow: hidden;
}

/* --- HOVER LINE ANIMATION --- */
.hover-line {
  position: relative;
  display: inline-block;
}

.hover-line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-line:hover::after {
  width: 100%;
}

/* ============================================
   SHOPPING - PRODUCT & CART PAGES
   ============================================ */

/* --- PRODUCT PAGE --- */
.product-page {
  padding: var(--space-8) 50px var(--space-6);
  min-height: 80vh;
}

/* Breadcrumb navigation */
.product-breadcrumb {
  max-width: 1400px;
  margin: 0 auto var(--space-4);
  padding: 0;
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.breadcrumb-back:hover {
  color: var(--text-primary);
}

.breadcrumb-back svg {
  transition: transform 0.3s ease;
}

.breadcrumb-back:hover svg {
  transform: translateX(-3px);
}

.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
}

.product-gallery {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.product-image-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  overflow: hidden;
  margin-bottom: var(--space-3);
  position: relative;
}

.product-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.8s ease-in-out;
}

.product-image-main img.fade-out {
  opacity: 0;
}

.product-thumbnails {
  display: flex;
  gap: var(--space-2);
}

.product-thumbnails .thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center 70%;  /* Show lower part of image (stool sits higher in frame) */
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
}

.product-thumbnails .thumb:hover,
.product-thumbnails .thumb.active {
  opacity: 1;
  border-color: var(--text-primary);
}

/* --- AR/3D VIEWER --- */
.ar-viewer-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  margin-bottom: var(--space-3);
}

.ar-viewer-container model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: #fafafa;
}

.ar-button {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.ar-button svg {
  width: 20px;
  height: 20px;
}

.ar-button:hover {
  background: #333;
}

.ar-prompt {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  white-space: nowrap;
}

/* View Toggle (Photo / 3D) */
.view-toggle {
  display: flex;
  gap: 4px;
  margin-top: var(--space-3);
  padding: 4px;
  background: #f0f0f0;
  width: fit-content;
}

.view-toggle-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: #fff;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .ar-button {
    padding: 10px 16px;
    font-size: 11px;
  }
}

.product-info {
  padding-top: var(--space-4);
}

.product-info .product-subtitle {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  display: block;
}

.product-info .product-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.product-info .product-price {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 var(--space-5);
  color: var(--text-primary);
}

.product-info .price-note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-info .price-value {
  display: block;
}

.product-info .product-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  max-width: 500px;
}

.product-details {
  margin-bottom: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- PRODUCT OPTIONS (Fabric/Wood Swatches) --- */
.product-options {
  margin-bottom: var(--space-5);
}

.option-group {
  margin-bottom: var(--space-5);
}

.option-title {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.option-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.swatch-btn {
  background: transparent;
  border: 2px solid transparent;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.swatch-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.swatch-btn.active {
  border-color: var(--text-primary);
}

.swatch-color {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.wood-swatch .swatch-name {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.wood-swatch.active .swatch-name {
  color: var(--text-primary);
  font-weight: 500;
}

.option-selected {
  font-size: 13px;
  color: var(--text-secondary);
  margin: var(--space-2) 0 0;
}

/* Fabric Categories */
.fabric-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.fabric-category {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fabric-category:last-child {
  border-bottom: none;
}

.fabric-category-name {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.price-modifier {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}

.fabric-category-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
}

.fabric-swatch .swatch-color {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .swatch-color {
    width: 32px;
    height: 32px;
  }

  .fabric-swatch .swatch-color {
    width: 28px;
    height: 28px;
  }
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
}

.detail-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.detail-value {
  font-size: 14px;
  color: var(--text-primary);
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.add-to-cart-btn {
  padding: 18px 40px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: #333;
}

.inquire-btn {
  display: inline-block;
  text-align: center;
  padding: 18px 40px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.inquire-btn:hover {
  background: var(--text-primary);
  color: #fff;
}

.product-shipping {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.product-shipping p {
  margin: 0 0 var(--space-2);
}

.product-shipping strong {
  color: var(--text-primary);
}

.back-to-collection {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.back-to-collection a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-to-collection a:hover {
  color: var(--text-primary);
}

/* --- CONSULTATION FORM (for sofas) --- */
.consultation-section {
  max-width: 800px;
  margin: var(--space-8) auto;
  padding: 0 50px;
}

.consultation-container {
  background: #fafafa;
  padding: var(--space-6);
}

.consultation-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}

.consultation-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-family: var(--font-secondary);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.consultation-submit {
  padding: 18px 40px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: var(--space-3);
}

.consultation-submit:hover {
  background: #333;
}

.consultation-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .consultation-section {
    padding: 0 var(--space-3);
  }

  .consultation-container {
    padding: var(--space-4);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- RELATED PRODUCTS --- */
.related-products {
  max-width: 1200px;
  margin: var(--space-8) auto;
  padding: 0 50px;
}

.related-title {
  font-family: var(--font-primary);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-5);
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.related-item {
  text-decoration: none;
  color: inherit;
}

.related-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fafafa;
  margin-bottom: var(--space-3);
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-item:hover .related-image img {
  transform: scale(1.03);
}

.related-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 4px;
}

.related-price {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .related-products {
    padding: 0 var(--space-3);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* --- PRODUCT FAQ --- */
.product-faq {
  max-width: 800px;
  margin: var(--space-8) auto;
  padding: 0 50px;
}

.faq-title {
  font-family: var(--font-primary);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-5);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  padding: var(--space-4) 0;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-secondary);
  font-size: 15px;
  color: var(--text-primary);
  transition: opacity 0.3s ease;
}

.faq-question:hover {
  opacity: 0.7;
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: var(--space-3);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-4);
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
  padding-right: var(--space-5);
}

@media (max-width: 768px) {
  .product-faq {
    padding: 0 var(--space-3);
  }

  .faq-question {
    font-size: 14px;
  }
}

/* ============================================
   JOURNAL PAGE
   ============================================ */
.journal-page {
  padding-top: var(--space-8);
}

.journal-hero {
  padding: var(--space-8) 50px var(--space-6);
  text-align: center;
}

.journal-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.journal-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.journal-title {
  font-family: var(--font-primary);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}

.journal-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

/* Featured Story */
.journal-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-6);
  padding: 0 50px var(--space-8);
  align-items: center;
}

.featured-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: var(--space-4) 0;
}

.story-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--text-primary);
}

.featured-content .story-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 var(--space-4);
  line-height: 1.2;
}

.story-excerpt {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

.story-link {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text-primary);
  transition: all 0.3s ease;
}

.story-link:hover {
  opacity: 0.7;
}

/* Story Grid */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding: 0 50px var(--space-8);
}

.journal-story {
  cursor: pointer;
}

.story-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: var(--space-3);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.journal-story:hover .story-image img {
  transform: scale(1.05);
}

.story-info .story-category {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: var(--space-2);
}

.story-info .story-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-2);
  line-height: 1.3;
}

.story-info .story-excerpt {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* Video Section */
.journal-video {
  padding: var(--space-8) 50px;
  background: #111;
  color: #fff;
  text-align: center;
}

.video-container {
  max-width: 1000px;
  margin: 0 auto var(--space-5);
  aspect-ratio: 16 / 9;
  background: #222;
  position: relative;
  overflow: hidden;
}

.video-container video,
.video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-button svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-caption h3 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 var(--space-2);
}

.video-caption p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Journal Newsletter */
.journal-newsletter {
  padding: var(--space-8) 50px;
  text-align: center;
  background: #fafafa;
}

.newsletter-heading {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}

.newsletter-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
}

.newsletter-form-inline {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form-inline input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: var(--font-secondary);
  font-size: 14px;
}

.newsletter-form-inline input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.newsletter-form-inline button {
  padding: 16px 32px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form-inline button:hover {
  background: #333;
}

/* Placeholder styling for empty images */
.image-placeholder,
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
  color: #999;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.video-placeholder {
  background: #333;
  color: #666;
}

@media (max-width: 1024px) {
  .journal-featured {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .journal-hero,
  .journal-featured,
  .journal-grid,
  .journal-video,
  .journal-newsletter {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

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

  .newsletter-form-inline {
    flex-direction: column;
  }

  .newsletter-form-inline button {
    width: 100%;
  }
}

/* ============================================
   TRADE PROGRAM PAGE
   ============================================ */
.trade-page {
  padding-top: var(--space-8);
}

.trade-hero {
  padding: var(--space-8) 50px var(--space-6);
  text-align: center;
  background: #111;
  color: #fff;
}

.trade-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.trade-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-3);
}

.trade-title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}

.trade-intro {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Benefits */
.trade-benefits {
  padding: var(--space-8) 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-item {
  padding: var(--space-4);
}

.benefit-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.benefit-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-2);
}

.benefit-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Who Qualifies */
.trade-qualifies {
  padding: var(--space-6) 50px var(--space-8);
  background: #fafafa;
}

.section-heading {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 var(--space-6);
}

.qualifies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.qualify-item h4 {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 var(--space-2);
}

.qualify-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Application Form */
.trade-application {
  padding: var(--space-8) 50px;
}

.application-container {
  max-width: 800px;
  margin: 0 auto;
}

.application-intro {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 var(--space-6);
}

.trade-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-section-title {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.trade-submit {
  padding: 18px 40px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: var(--space-4);
}

.trade-submit:hover {
  background: #333;
}

.trade-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Trade Contact */
.trade-contact {
  padding: var(--space-6) 50px;
  text-align: center;
  background: #f5f5f3;
}

.trade-contact p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
}

.trade-contact a {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--text-primary);
}

@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .trade-hero,
  .trade-benefits,
  .trade-qualifies,
  .trade-application,
  .trade-contact {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .benefits-grid,
  .qualifies-grid {
    grid-template-columns: 1fr;
  }
}

.product-not-found {
  text-align: center;
  padding: var(--space-8) 0;
}

.product-not-found h1 {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.product-not-found p {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.product-not-found a {
  display: inline-block;
  padding: 14px 32px;
  background: var(--text-primary);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .product-container {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .product-gallery {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .product-page {
    padding: var(--space-6) var(--space-3);
  }
}

/* --- CART PAGE --- */
.cart-page {
  padding: var(--space-8) 50px var(--space-6);
  min-height: 80vh;
}

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

.cart-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-6);
}

.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto auto;
  gap: var(--space-4);
  align-items: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  background: #fafafa;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-item-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.cart-item-price {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0;
}

.cart-item-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0;
}

.cart-item-option {
  font-size: 11px;
  color: var(--text-secondary);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.qty-value {
  font-size: 14px;
  min-width: 24px;
  text-align: center;
}

.cart-item-total {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  min-width: 100px;
  text-align: right;
}

.cart-item-remove {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  padding: 0 var(--space-2);
}

.cart-item-remove:hover {
  opacity: 1;
}

.cart-empty {
  text-align: center;
  padding: var(--space-8) 0;
  grid-column: 1 / -1;
}

.cart-empty p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.continue-shopping-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--text-primary);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cart-summary {
  background: #fafafa;
  padding: var(--space-5);
  position: sticky;
  top: 120px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-total {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.checkout-btn {
  width: 100%;
  padding: 18px 40px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: var(--space-4);
}

.checkout-btn:hover {
  background: #333;
}

.cart-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-4);
  text-align: center;
}

.continue-shopping-link {
  display: block;
  text-align: center;
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .cart-content {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .cart-page {
    padding: var(--space-6) var(--space-3);
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: var(--space-3);
  }

  .cart-item-image {
    width: 80px;
    height: 80px;
  }

  .cart-item-quantity,
  .cart-item-total,
  .cart-item-remove {
    grid-column: 2;
  }

  .cart-item-quantity {
    margin-top: var(--space-2);
  }
}

/* --- CART NOTIFICATION --- */
.cart-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--text-primary);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.cart-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

.cart-notification span {
  font-size: 14px;
}

.cart-notification a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: underline;
}

/* --- CART COUNT BADGE --- */
.nav-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.nav-cart::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

.nav-cart.active {
  opacity: 1;
}

.nav-cart.active::after {
  width: 100%;
}

/* Elegant cart count - shows below Cart text */
.cart-count {
  font-size: 0.55em;
  font-weight: 400;
  color: #c45a5a;
  margin-top: 2px;
  display: block;
}

/* --- COMING SOON PAGE --- */
.coming-soon-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 50px;
}

.coming-soon-content {
  text-align: center;
  max-width: 480px;
}

.coming-soon-label {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: var(--space-3);
}

.coming-soon-title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.coming-soon-text {
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
}

.coming-soon-form {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.coming-soon-form input {
  padding: 14px 20px;
  font-family: var(--font-secondary);
  font-size: 13px;
  border: 1px solid #ddd;
  background: #fff;
  min-width: 220px;
  outline: none;
  transition: border-color 0.3s ease;
}

.coming-soon-form input:focus {
  border-color: var(--text-primary);
}

.coming-soon-form button {
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--text-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.coming-soon-form button:hover {
  opacity: 0.8;
}

@media (max-width: 480px) {
  .coming-soon-form {
    flex-direction: column;
  }

  .coming-soon-form input {
    min-width: 100%;
  }
}

/* --- CHECKOUT SUCCESS PAGE --- */
.checkout-success-page {
  padding: var(--space-8) 50px var(--space-6);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-container {
  max-width: 600px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}

.success-message {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.success-details {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 var(--space-6);
}

.success-timeline {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.timeline-number {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 300;
  opacity: 0.3;
}

.timeline-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-align: center;
}

.success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.success-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--text-primary);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.success-btn:hover {
  background: #333;
}

.success-link {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .checkout-success-page {
    padding: var(--space-6) var(--space-3);
  }

  .success-timeline {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* ============================================
   SAMPLE REQUEST
   Material swatches request button and modal
   ============================================ */

/* Sample Request Link/Button */
.sample-request-link {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sample-btn svg {
  width: 18px;
  height: 18px;
}

.sample-btn:hover {
  background: var(--text-primary);
  color: #fff;
}

.sample-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* Sample Modal Overlay */
.sample-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sample-modal.open {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.sample-modal-content {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-5);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.sample-modal.open .sample-modal-content {
  transform: translateY(0);
}

.sample-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.sample-modal-close:hover {
  color: var(--text-primary);
}

.sample-modal-title {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-2);
}

.sample-modal-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

/* Sample Form */
.sample-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sample-form .form-group {
  margin-bottom: 20px;
}

.sample-form label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.sample-form input[type="text"],
.sample-form input[type="email"],
.sample-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-primary);
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease;
}

.sample-form input:focus,
.sample-form textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.sample-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* Sample Options Checkboxes */
.sample-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sample-options .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.sample-options .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Sample Submit Button */
.sample-submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: var(--space-2);
}

.sample-submit:hover {
  background: #333;
}

@media (max-width: 600px) {
  .sample-form .form-row {
    grid-template-columns: 1fr;
  }

  .sample-modal-content {
    padding: var(--space-4);
  }
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */

.product-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.share-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.share-btn:hover {
  border-color: var(--text-primary);
  background: var(--text-primary);
}

.share-btn:hover svg {
  color: #fff;
}

/* Pinterest - red hover */
#sharePinterest:hover {
  background: #E60023;
  border-color: #E60023;
}

/* Facebook - blue hover */
#shareFacebook:hover {
  background: #1877F2;
  border-color: #1877F2;
}

/* Twitter/X - black hover */
#shareTwitter:hover {
  background: #000;
  border-color: #000;
}

/* Copy link - subtle feedback */
.share-btn.copied {
  background: #22c55e;
  border-color: #22c55e;
}

.share-btn.copied svg {
  color: #fff;
}

/* ============================================
   POLICY PAGES (Shipping, Returns, etc.)
   ============================================ */

.policy-page {
  padding: 120px var(--space-4) var(--space-7);
  max-width: 800px;
  margin: 0 auto;
}

.policy-title {
  font-family: var(--font-primary);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}

.policy-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.policy-section {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-heading {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 var(--space-3);
}

.policy-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.policy-content h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin: var(--space-4) 0 var(--space-2);
}

.policy-content h3:first-child {
  margin-top: 0;
}

.policy-content p {
  margin: 0 0 var(--space-3);
}

.policy-list {
  margin: 0 0 var(--space-3);
  padding-left: 20px;
}

.policy-list li {
  margin-bottom: 8px;
}

.policy-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-link:hover {
  opacity: 0.7;
}

/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 24px;
}

/* Hamburger icon - 3 lines */
.nav-dropdown-toggle .hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-dropdown-toggle .hamburger-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .hamburger-icon span:nth-child(1) {
  transform: translateY(1px);
}

.nav-dropdown:hover .hamburger-icon span:nth-child(3) {
  transform: translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-toggle {
    width: 24px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-dropdown-toggle .hamburger-icon {
    width: 16px;
    height: 12px;
    gap: 3px;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    z-index: 1000;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-dropdown-menu a {
    padding: 8px 16px;
    font-size: 11px;
  }
}

/* ============================================
   SOFA SYSTEM PAGE
   Modular sofa configurator
   ============================================ */

.sofa-system-page {
  padding-top: 80px;
}

/* Hero */
.sofa-hero {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.sofa-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: var(--space-2);
}

.sofa-title {
  font-family: var(--font-primary);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}

.sofa-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Labels */
.section-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 var(--space-2);
}

.section-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 0 var(--space-5);
}

/* Modules Section */
.sofa-modules {
  padding: var(--space-6) var(--space-4);
  max-width: 1400px;
  margin: 0 auto;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.module-card {
  background: #fafafa;
  padding: var(--space-4);
}

.module-image {
  background: #fff;
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.module-image img {
  width: 100%;
  height: auto;
  display: block;
}

.module-name {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
}

.module-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
}

.module-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-primary);
}

/* Layouts Section */
.sofa-layouts {
  padding: var(--space-6) var(--space-4);
  background: #f8f8f8;
}

.sofa-layouts .section-label,
.sofa-layouts .section-intro {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.sofa-layouts .section-intro {
  margin-bottom: var(--space-4);
}

/* Layout Tabs */
.layout-tabs {
  display: flex;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto var(--space-4);
  flex-wrap: wrap;
}

.layout-tab {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layout-tab:hover {
  border-color: var(--text-primary);
}

.layout-tab.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* Layout Panels */
.layout-content {
  max-width: 1400px;
  margin: 0 auto;
}

.layout-panel {
  display: none;
}

.layout-panel.active {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.layout-info {
  background: #fff;
  padding: var(--space-4);
}

.layout-name {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 var(--space-2);
}

.layout-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
}

.layout-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  font-size: 11px;
  font-weight: 500;
}

/* Layout Images */
.layout-images {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.layout-main {
  background: #fff;
}

.layout-main img {
  width: 100%;
  height: auto;
  display: block;
}

.layout-thumb,
.layout-thumbs-row {
  display: flex;
  gap: var(--space-2);
}

.layout-thumb img,
.layout-thumbs-row img {
  width: 150px;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.layout-thumb img:hover,
.layout-thumbs-row img:hover {
  border-color: var(--text-primary);
}

/* CTA Section */
.sofa-cta {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  margin: 0 0 var(--space-3);
}

.cta-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

.cta-buttons {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: var(--text-primary);
  color: #fff;
}

.cta-btn.primary:hover {
  background: #333;
}

.cta-btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.cta-btn.secondary:hover {
  background: var(--text-primary);
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .layout-panel.active {
    grid-template-columns: 1fr;
  }

  .layout-info {
    order: 2;
  }

  .layout-images {
    order: 1;
  }
}

@media (max-width: 600px) {
  .layout-thumb img,
  .layout-thumbs-row img {
    width: 100px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* Sofa System Link on Product Page */
.sofa-system-link {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.system-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #f5f5f5;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.system-link-btn svg {
  width: 18px;
  height: 18px;
}

.system-link-btn:hover {
  background: #eee;
}

.sofa-system-link p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 10px 0 0;
}

/* ============================================
   ENWA SOFA - Editorial Product Page
   ============================================ */

.enwa-sofa-page {
  padding-top: 0;
}

/* Hero - Full Bleed */
.es-hero {
  width: 100%;
  height: 90vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
}

.es-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Intro */
.es-intro {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.es-title {
  font-family: var(--font-primary);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
}

.es-subtitle {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin: var(--space-2) 0 var(--space-4);
}

.es-lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Story Section */
.es-story {
  padding: var(--space-6) var(--space-4);
  max-width: 1400px;
  margin: 0 auto;
}

.es-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-5);
  align-items: center;
}

.es-story-text h2 {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  margin: 0 0 var(--space-3);
}

.es-story-text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
}

.es-story-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Labels */
.es-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.es-section-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 300;
  margin: 0 0 var(--space-2);
}

.es-section-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Modules Concept */
.es-concept {
  padding: var(--space-7) var(--space-4);
  background: #f8f8f8;
}

.es-concept-header {
  max-width: 1400px;
  margin: 0 auto var(--space-5);
}

.es-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 1200px;
  margin: 0 auto;
}

.es-module {
  background: transparent;
  padding: var(--space-4);
  text-align: center;
}

.es-module-img {
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.es-module-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.es-module h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
}

.es-module p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Configurations */
.es-configs {
  padding: var(--space-7) var(--space-4);
  max-width: 1400px;
  margin: 0 auto;
}

.es-config-header {
  margin-bottom: var(--space-4);
}

.es-config-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.es-config-tab {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.es-config-tab:hover {
  border-color: var(--text-primary);
}

.es-config-tab.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.es-config-panel {
  display: none;
}

.es-config-panel.active {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-4);
}

.es-config-main img {
  width: 100%;
  height: auto;
  display: block;
}

.es-config-info {
  padding: var(--space-3);
  background: #f8f8f8;
}

.es-config-info h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 var(--space-2);
}

.es-config-info > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
}

.es-config-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.es-config-pieces span {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
}

.es-config-thumb img,
.es-config-thumbs img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-top: var(--space-2);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 4px;
}

.es-config-thumb img:hover,
.es-config-thumbs img:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.es-config-thumbs {
  display: flex;
  gap: var(--space-2);
}

.es-config-thumbs img {
  max-width: 150px;
}

/* Specs */
.es-specs {
  padding: var(--space-6) var(--space-4);
  background: #f8f8f8;
}

.es-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 1000px;
  margin: 0 auto var(--space-5);
}

.es-specs-col h3 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 var(--space-2);
}

.es-specs-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.es-specs-col li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.es-specs-col li strong {
  color: var(--text-primary);
  font-weight: 500;
}

.es-pricing {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.es-price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.es-price {
  font-family: var(--font-primary);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  margin: 0;
}

.es-price-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 8px 0 0;
}

/* Consultation Form */
.es-consultation {
  padding: var(--space-7) var(--space-4);
  max-width: 700px;
  margin: 0 auto;
}

.es-consultation-intro {
  text-align: center;
  margin-bottom: var(--space-5);
}

.es-consultation-intro h2 {
  font-family: var(--font-primary);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  margin: 0 0 var(--space-2);
}

.es-consultation-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.es-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.es-form-group {
  margin-bottom: 20px;
}

.es-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.es-form-group input,
.es-form-group select,
.es-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease;
}

.es-form-group input:focus,
.es-form-group select:focus,
.es-form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.es-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.es-submit {
  width: 100%;
  padding: 18px 24px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.es-submit:hover {
  background: #333;
}

/* Responsive */
@media (max-width: 992px) {
  .es-story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .es-story-image {
    order: -1;
  }

  .es-modules-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .es-module-img {
    min-height: 200px;
  }

  .es-config-panel.active {
    grid-template-columns: 1fr;
  }

  .es-specs-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

@media (max-width: 600px) {
  .es-hero {
    height: 60vh;
  }

  .es-modules-grid {
    grid-template-columns: 1fr;
  }

  .es-form-row {
    grid-template-columns: 1fr;
  }
}