/* ==========================================================================
   کهنسار | KOHNSAAR — LUXURY DIGITAL ARCHIVE & CATALOG
   Colors:
   - Forest green: #28352A
   - Deep black: #11120F
   - Warm beige: #D8C8A3
   - Natural cream: #F2EDE2
   - Earth brown: #75634A
   ========================================================================== */

:root {
  --color-forest: #28352A;
  --color-forest-dark: #1C261E;
  --color-forest-light: #37473A;
  --color-black: #11120F;
  --color-black-elevated: #161814;
  --color-black-card: #191B16;
  --color-beige: #D8C8A3;
  --color-beige-dim: rgba(216, 200, 163, 0.65);
  --color-beige-hairline: rgba(216, 200, 163, 0.18);
  --color-cream: #F2EDE2;
  --color-cream-muted: #D9D2C3;
  --color-brown: #75634A;
  --color-brown-light: #8E7A5E;

  --font-persian: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Marcellus', 'Cormorant Garamond', serif;

  --ease-editorial: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-cinematic: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s var(--ease-editorial);
  --transition-medium: 0.4s var(--ease-editorial);
}

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

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

body {
  font-family: var(--font-persian);
  background-color: var(--color-black);
  color: var(--color-cream);
  line-height: 1.8;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  selection-background-color: var(--color-forest);
  selection-color: var(--color-beige);
}

::selection {
  background-color: var(--color-forest);
  color: var(--color-beige);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-black);
}
::-webkit-scrollbar-thumb {
  background: var(--color-forest);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brown);
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Typography Helpers */
.en-label {
  font-family: var(--font-display);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-beige-dim);
  direction: ltr;
  display: inline-block;
}

.editorial-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-beige);
  font-weight: 300;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

/* Hairline Dividers */
.hairline {
  height: 1px;
  background-color: var(--color-beige-hairline);
  width: 100%;
  border: none;
}

/* ==========================================================================
   TOP NAVIGATION BAR (Strict Top Bar Contract)
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(17, 18, 15, 0.92) 0%, rgba(17, 18, 15, 0.4) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 200, 163, 0.08);
  transition: transform 0.4s ease, background 0.4s ease, padding 0.4s ease;
}

.top-nav.scrolled {
  padding: 0.85rem 2.5rem;
  background: rgba(17, 18, 15, 0.96);
  border-bottom: 1px solid var(--color-beige-hairline);
}

/* Zone 1: Single text element wordmark */
.nav-brand {
  text-decoration: none;
  color: var(--color-cream);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-brand .brand-persian {
  font-weight: 600;
  color: var(--color-cream);
}

.nav-brand .brand-separator {
  color: var(--color-beige-dim);
  font-size: 0.85rem;
  opacity: 0.6;
}

.nav-brand .brand-latin {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-beige);
}

/* Zone 2: Curated Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--color-cream-muted);
  font-size: 0.875rem;
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-beige);
  transition: width 0.3s var(--ease-editorial);
}

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

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

/* Zone 3: Audio Atmosphere Control & Timeline Indicator */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.audio-toggle {
  background: transparent;
  border: 1px solid var(--color-beige-hairline);
  color: var(--color-cream);
  padding: 0.45rem 1rem;
  font-family: var(--font-persian);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
}

.audio-toggle:hover {
  background-color: rgba(216, 200, 163, 0.08);
  border-color: var(--color-beige);
  color: var(--color-beige);
}

.audio-toggle .sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 14px;
}

.audio-toggle .sound-bar {
  width: 2px;
  height: 100%;
  background-color: var(--color-beige);
  transform-origin: bottom;
  transition: transform 0.2s ease;
}

.audio-toggle.playing .sound-bar:nth-child(1) {
  animation: waveBar 1.2s infinite ease-in-out;
}
.audio-toggle.playing .sound-bar:nth-child(2) {
  animation: waveBar 0.9s infinite ease-in-out 0.2s;
}
.audio-toggle.playing .sound-bar:nth-child(3) {
  animation: waveBar 1.4s infinite ease-in-out 0.4s;
}

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* Reading Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--color-brown), var(--color-beige));
  z-index: 101;
  transition: width 0.1s linear;
}

/* ==========================================================================
   SECTION 1: HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-black);
}

/* Forest Canvas / SVG Visual Backdrop */
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-forest-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 28s alternate infinite ease-in-out;
  filter: brightness(0.65) contrast(1.15) saturate(0.9);
}

@keyframes slowZoom {
  0% { transform: scale(1.04) translateY(0); }
  100% { transform: scale(1.12) translateY(-2%); }
}

/* Atmospheric Fog Layers */
.fog-layer {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.fog-1 {
  background: radial-gradient(ellipse at 40% 60%, rgba(216, 200, 163, 0.18) 0%, rgba(40, 53, 42, 0.12) 40%, transparent 75%);
  animation: fogDriftOne 32s infinite linear alternate;
}

.fog-2 {
  background: radial-gradient(ellipse at 70% 40%, rgba(216, 200, 163, 0.15) 0%, rgba(40, 53, 42, 0.18) 45%, transparent 80%);
  animation: fogDriftTwo 45s infinite linear alternate;
  opacity: 0.35;
}

@keyframes fogDriftOne {
  0% { transform: translateX(-4%) translateY(-2%) scale(1); }
  100% { transform: translateX(4%) translateY(3%) scale(1.08); }
}

@keyframes fogDriftTwo {
  0% { transform: translateX(5%) translateY(3%) scale(1.05); }
  100% { transform: translateX(-5%) translateY(-2%) scale(1); }
}

/* Canvas for floating dust particles */
#dustCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Dark Cinematic Overlay */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: 
    radial-gradient(circle at center, rgba(17, 18, 15, 0.3) 0%, rgba(17, 18, 15, 0.85) 85%, #11120F 100%),
    linear-gradient(to bottom, rgba(17, 18, 15, 0.8) 0%, transparent 25%, transparent 70%, #11120F 100%);
  pointer-events: none;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 960px;
  padding: 0 2rem;
  margin-top: 2rem;
}

.hero-curatorial-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-beige-dim);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1.2s var(--ease-editorial) forwards 0.3s;
}

.hero-title-lockup {
  opacity: 0;
  transform: translateY(25px);
  animation: heroFadeUp 1.4s var(--ease-editorial) forwards 0.5s;
}

.hero-brand {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-cream);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-brand .hero-persian {
  font-weight: 600;
  color: var(--color-cream);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-brand .hero-sep {
  color: var(--color-beige);
  font-family: var(--font-serif);
  font-weight: 300;
  opacity: 0.6;
}

.hero-brand .hero-latin {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--color-beige);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 300;
  color: var(--color-cream-muted);
  margin-top: 1.5rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1.4s var(--ease-editorial) forwards 0.75s;
}

.hero-provenance {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-beige-dim);
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeUp 1.4s var(--ease-editorial) forwards 1s;
}

/* Subtle Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  animation: heroFadeUp 1.2s var(--ease-editorial) forwards 1.2s;
}

.scroll-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-beige-dim);
  transition: color 0.3s ease;
}

.scroll-line-wrapper {
  width: 1px;
  height: 44px;
  background-color: var(--color-beige-hairline);
  position: relative;
  overflow: hidden;
}

.scroll-line-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--color-beige), transparent);
  animation: scrollDrop 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SECTION 2: INTRODUCTION SECTION
   Two-column luxury layout: Left fabric texture, Right exact text
   ========================================================================== */
.intro-section {
  position: relative;
  padding: 10rem 0;
  background-color: var(--color-black);
  border-top: 1px solid var(--color-beige-hairline);
  overflow: hidden;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

/* Left: Large artistic fabric texture presentation */
.intro-visual-column {
  position: relative;
}

.fabric-specimen-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--color-forest-dark);
  border: 1px solid var(--color-beige-hairline);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  cursor: crosshair;
}

.fabric-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease-editorial);
}

.fabric-specimen-frame:hover .fabric-canvas {
  transform: scale(1.03);
}

.fabric-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(17, 18, 15, 0.95) 0%, rgba(17, 18, 15, 0.4) 70%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(216, 200, 163, 0.1);
}

.fabric-caption {
  font-size: 0.75rem;
  color: var(--color-beige-dim);
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  direction: ltr;
}

.specimen-tag {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-cream);
  font-style: italic;
}

/* Right: Exact Introduction Text */
.intro-text-column {
  padding-right: 1rem;
}

.intro-curatorial-header {
  margin-bottom: 2.5rem;
}

.curatorial-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-beige);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.intro-lead-sentence {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.5;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.intro-secondary-sentence {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
  color: var(--color-beige);
  line-height: 1.6;
  margin-bottom: 3rem;
  text-wrap: balance;
  position: relative;
  padding-right: 1.5rem;
  border-right: 2px solid var(--color-forest);
}

.intro-body-prose {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 300;
  color: var(--color-cream-muted);
  line-height: 2.1;
  max-width: 32ch;
  white-space: pre-line;
}

.intro-provenance-meta {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-beige-hairline);
  display: flex;
  gap: 3rem;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-brown-light);
  text-transform: uppercase;
}

.meta-val {
  font-size: 0.85rem;
  color: var(--color-cream);
  font-weight: 400;
}

/* ==========================================================================
   SECTION 3: STORY COLLECTION SECTION
   Magazine style vertical storytelling (No uniform cards)
   ========================================================================== */
.stories-section {
  position: relative;
  padding: 10rem 0 12rem 0;
  background-color: var(--color-black);
}

.stories-section-header {
  margin-bottom: 8rem;
  text-align: center;
  position: relative;
}

.section-counter {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--color-beige);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.stories-main-heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--color-cream);
  letter-spacing: -0.01em;
}

.stories-sub-heading {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  color: var(--color-beige-dim);
  direction: ltr;
}

/* Floating Chapter Quick Nav */
.story-quick-nav {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.story-quick-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.story-nav-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-beige-dim);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.story-nav-dot:hover,
.story-nav-dot.current {
  color: var(--color-beige);
  border-color: var(--color-beige-hairline);
  background-color: rgba(216, 200, 163, 0.08);
}

/* Story Storytelling Layouts: Varied editorial cadence */
.story-article {
  position: relative;
  padding: 6rem 0;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(216, 200, 163, 0.07);
}

.story-article:last-child {
  border-bottom: none;
}

/* Story Layout Variation A: Asymmetric Split (Visual on right, text on left) */
.story-layout-asymmetric {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Story Layout Variation B: Inverted Split (Text on right, visual on left) */
.story-layout-inverted {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

/* Story Layout Variation C: Wide Editorial Spread */
.story-layout-wide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3.5rem;
}

.story-layout-wide .story-visual-wrap {
  width: 100%;
  max-width: 1060px;
  aspect-ratio: 16 / 9;
}

.story-layout-wide .story-content-wrap {
  max-width: 720px;
}

/* Story Elements */
.story-meta-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.story-large-number {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--color-beige);
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.story-archive-id {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-brown-light);
  direction: ltr;
}

.story-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.35;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.story-body-text {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 300;
  color: var(--color-cream-muted);
  line-height: 2.1;
  max-width: 48ch;
  white-space: pre-line;
}

.story-visual-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--color-black-elevated);
  border: 1px solid var(--color-beige-hairline);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.story-visual-wrap.aspect-tall {
  aspect-ratio: 3 / 4;
}

.story-plate-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.8s var(--ease-cinematic);
}

.story-visual-wrap:hover .story-plate-canvas {
  transform: scale(1.04);
}

.story-plate-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(17, 18, 15, 0.9) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-beige-dim);
}

.caption-label {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  direction: ltr;
}

.caption-botanical {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-cream);
}

/* Reveal Animations on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s var(--ease-editorial), transform 1s var(--ease-editorial);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   SECTION 4: COLLECTION TAGS SECTION
   Luxury clothing tag / label inspired design, Dark background
   ========================================================================== */
.tags-section {
  position: relative;
  padding: 11rem 0;
  background-color: #0E0F0C;
  border-top: 1px solid var(--color-beige-hairline);
  border-bottom: 1px solid var(--color-beige-hairline);
  overflow: hidden;
}

.tags-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(40, 53, 42, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.tags-header {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
  z-index: 2;
}

.tags-editorial-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  color: var(--color-cream);
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.25rem;
  position: relative;
  z-index: 2;
}

/* Physical Luxury Garment Tag Presentation */
.luxury-tag-wrapper {
  perspective: 1000px;
}

.garment-tag-card {
  position: relative;
  background: #151713;
  background-image: 
    radial-gradient(#242921 1px, transparent 1px),
    linear-gradient(to bottom, #181B15, #11130E);
  background-size: 16px 16px, 100% 100%;
  border: 1px solid rgba(216, 200, 163, 0.22);
  padding: 2.5rem 1.75rem 2.25rem 1.75rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.5s var(--ease-editorial), border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.garment-tag-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  border-color: var(--color-beige);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(216, 200, 163, 0.08);
}

/* Tag Top Hang String & Eyelet */
.tag-eyelet-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -1.75rem;
  margin-bottom: 1.5rem;
}

.tag-twine {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--color-brown-light), var(--color-beige));
  margin-bottom: -1px;
}

.tag-eyelet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #0E0F0C 35%, #75634A 55%, #D8C8A3 90%);
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Stitched Edge Detail */
.tag-stitch-border {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(216, 200, 163, 0.12);
  pointer-events: none;
}

/* Tag Header & Serial */
.tag-header {
  border-bottom: 1px solid var(--color-beige-hairline);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.tag-title-main {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-beige);
  letter-spacing: 0.02em;
}

.tag-archive-stamp {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--color-brown-light);
  direction: ltr;
}

/* Tag Exact Body Prose */
.tag-content-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag-exact-text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-cream);
  line-height: 2.1;
  white-space: pre-line;
}

/* Tag Footer Provenance Seal */
.tag-footer {
  border-top: 1px solid var(--color-beige-hairline);
  padding-top: 1.25rem;
  margin-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-origin {
  font-size: 0.7rem;
  color: var(--color-cream-muted);
  letter-spacing: 0.05em;
}

.tag-monogram {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-beige);
  font-weight: 500;
}

/* ==========================================================================
   SECTION 5: PRODUCT PRESENTATION SECTION
   Premium fashion product showcase with fabric close-up, loupe & specs
   ========================================================================== */
.product-section {
  position: relative;
  padding: 10rem 0 12rem 0;
  background-color: var(--color-black);
}

.product-editorial-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 6rem auto;
}

.product-statement-block {
  margin-bottom: 3.5rem;
}

.statement-main-text {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.statement-sub-text {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 400;
  color: var(--color-beige);
  line-height: 1.8;
  white-space: pre-line;
}

/* Interactive Product Exhibition Grid */
.product-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Floating Garment Display */
.garment-stage-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: radial-gradient(circle at 50% 40%, #1e251f 0%, #11120F 75%);
  border: 1px solid var(--color-beige-hairline);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.garment-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  animation: subtleFloat 8s infinite alternate ease-in-out;
}

@keyframes subtleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Interactive Magnifying Loupe Overlay */
.loupe-glass {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--color-beige);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-editorial);
  overflow: hidden;
  background-color: var(--color-forest-dark);
  z-index: 10;
}

.garment-stage-container:hover .loupe-glass {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.loupe-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: center;
}

.garment-plinth-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 2rem;
  background: linear-gradient(to top, rgba(17, 18, 15, 0.95), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(216, 200, 163, 0.08);
}

.plinth-title {
  font-size: 0.85rem;
  color: var(--color-cream);
  font-weight: 500;
}

.plinth-subtitle {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-beige-dim);
  direction: ltr;
}

/* Product Specifications Column */
.product-spec-column {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.spec-chapter-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-brown-light);
  text-transform: uppercase;
}

.spec-heading {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.4;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spec-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-beige-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.spec-key {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-beige);
  text-transform: uppercase;
}

.spec-value {
  font-size: 1.05rem;
  color: var(--color-cream-muted);
  font-weight: 300;
  line-height: 1.8;
}

/* Material Fiber Zoom Tabs */
.material-detail-strip {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.material-thumb-btn {
  background: var(--color-black-elevated);
  border: 1px solid var(--color-beige-hairline);
  padding: 0.75rem 1.25rem;
  color: var(--color-cream);
  font-family: var(--font-persian);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.material-thumb-btn:hover,
.material-thumb-btn.active {
  border-color: var(--color-beige);
  background-color: rgba(216, 200, 163, 0.08);
  color: var(--color-beige);
}

.material-color-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================================================
   SECTION 6: FINAL SECTION
   Full screen ending, Forest background, Large typography
   ========================================================================== */
.final-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--color-black);
  border-top: 1px solid var(--color-beige-hairline);
  overflow: hidden;
}

.final-forest-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.final-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.2) saturate(0.85);
  transform: scale(1.05);
  animation: finalPan 30s alternate infinite ease-in-out;
}

@keyframes finalPan {
  0% { transform: scale(1.05) translateY(0); }
  100% { transform: scale(1.1) translateY(-3%); }
}

.final-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    radial-gradient(circle at center, rgba(17, 18, 15, 0.4) 0%, rgba(17, 18, 15, 0.92) 80%, #11120F 100%),
    linear-gradient(to bottom, #11120F 0%, transparent 20%, transparent 75%, #11120F 100%);
  pointer-events: none;
}

.final-content-container {
  position: relative;
  z-index: 3;
  max-width: 980px;
  padding: 0 2rem;
}

.final-monumental-heading {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.5;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.final-second-line {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 300;
  color: var(--color-beige);
  line-height: 1.5;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.final-colophon {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-beige-hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.colophon-monogram {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.35em;
  color: var(--color-beige);
}

.colophon-creds {
  font-size: 0.85rem;
  color: var(--color-cream-muted);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.return-top-btn {
  margin-top: 2rem;
  background: transparent;
  border: 1px solid var(--color-beige-hairline);
  color: var(--color-cream);
  padding: 0.75rem 2rem;
  font-family: var(--font-persian);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.return-top-btn:hover {
  background-color: var(--color-forest);
  border-color: var(--color-beige);
  color: var(--color-beige);
}

/* ==========================================================================
   FOOTER (Minimal Museum Colophon)
   ========================================================================== */
.site-footer {
  background-color: #0A0B09;
  border-top: 1px solid rgba(216, 200, 163, 0.1);
  padding: 3rem 0;
  font-size: 0.8rem;
  color: var(--color-brown-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-brown-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-beige);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .fabric-specimen-frame {
    aspect-ratio: 16 / 10;
  }

  .story-layout-asymmetric,
  .story-layout-inverted {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .top-nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .story-quick-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-brand {
    gap: 0.75rem;
  }

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

  .intro-section,
  .stories-section,
  .tags-section,
  .product-section {
    padding: 6rem 0;
  }

  .intro-provenance-meta {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
