/* ============================================================
   SIVALAYA TEXTILES — PREMIUM CINEMATIC LANDING PAGE
   Design System & Stylesheet
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --emerald: #1a6b4a;
  --emerald-dark: #0d3d29;
  --emerald-deep: #081f16;
  --gold: #c9a227;
  --gold-light: #e8d5a3;
  --gold-pale: #f5edd6;
  --cream: #f5f0e8;
  --cream-warm: #ede5d4;
  --ink: #0a0f0c;
  --ink-soft: #111810;
  --text-muted: #8a9489;
  --text-light: #d4ccc0;

  --ff-serif: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  --ff-sans: 'Inter', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 72px;
}

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

html {
  scroll-behavior: auto;
  /* Lenis handles smooth scroll */
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-sans);
  overflow-x: hidden;
  cursor: none;
}

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

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

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

/* ── Custom Cursor ────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
    height 0.3s var(--ease-out-expo),
    border-color 0.2s,
    opacity 0.3s;
  opacity: 0.6;
}

body:hover #cursor-ring {
  opacity: 1;
}

/* ── Scroll Progress Bar ──────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ── Navigation ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background 0.5s var(--ease-out-expo),
    backdrop-filter 0.5s,
    box-shadow 0.5s;
}

#nav.scrolled {
  background: rgba(8, 31, 22, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.nav-logo.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.nav-brand {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  line-height: 1.1;
}

.nav-brand small {
  display: block;
  font-size: 0.6rem;
  font-family: var(--ff-sans);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--gold-light);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 2px;
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold-light);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero Section ─────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: var(--nav-h);
}

/* Upper zone — logo */
.hero-top {
  flex: 0 0 38%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 3;
}

/* Lower zone — text content */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient-bg {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 120% 80% at 20% 110%, rgba(26, 107, 74, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% -10%, rgba(13, 61, 41, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201, 162, 39, 0.04) 0%, transparent 70%),
    linear-gradient(160deg, #050d08 0%, #0a1a10 30%, #0d2018 55%, #06100c 100%);
  animation: heroBgPulse 12s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.06); }
  100% { filter: brightness(1); }
}

/* Silk-wave SVG layer */
.hero-silk-waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-silk-waves svg {
  width: 100%;
  height: 100%;
}

.svg-wave {
  animation: waveFlow 8s ease-in-out infinite alternate;
}
.wave-1 { animation-duration: 9s; }
.wave-2 { animation-duration: 11s; animation-direction: alternate-reverse; }
.wave-3 { animation-duration: 7s; animation-delay: 1s; }

@keyframes waveFlow {
  0%   { stroke-dashoffset: 0; opacity: 0.7; }
  100% { stroke-dashoffset: 60; opacity: 1; }
}

.dot-float {
  animation: dotFloat 5s ease-in-out infinite alternate;
}
@keyframes dotFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* Corner ornaments */
.hero-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: cornerFade 1.5s 2s forwards;
}
@keyframes cornerFade {
  to { opacity: 1; }
}
.hero-corner--tl { top: 2rem; left: 2rem; border-top: 1px solid rgba(201,162,39,0.45); border-left: 1px solid rgba(201,162,39,0.45); }
.hero-corner--tr { top: 2rem; right: 2rem; border-top: 1px solid rgba(201,162,39,0.45); border-right: 1px solid rgba(201,162,39,0.45); }
.hero-corner--bl { bottom: 5rem; left: 2rem; border-bottom: 1px solid rgba(201,162,39,0.45); border-left: 1px solid rgba(201,162,39,0.45); }
.hero-corner--br { bottom: 5rem; right: 2rem; border-bottom: 1px solid rgba(201,162,39,0.45); border-right: 1px solid rgba(201,162,39,0.45); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5, 12, 8, 0.82) 0%,
    rgba(8, 20, 12, 0.6) 35%,
    rgba(10, 25, 15, 0.72) 65%,
    rgba(4, 8, 6, 0.97) 100%
  );
  z-index: 2;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 4rem) 5rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 3;
}

/* Logo — in-flow inside hero-top zone */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-logo-wrap img {
  height: clamp(130px, 16vw, 190px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
}

.hero-eyebrow {
  font-family: var(--ff-sans);
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(15px);
}

.hero-headline {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-family: var(--ff-sans);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(15px);
}

/* hero-actions removed */

/* ── Hero Trust Strip ────────────────────────────────────── */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  padding: 1.5rem 2.5rem;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 4px;
  background: rgba(201, 162, 39, 0.04);
  backdrop-filter: blur(8px);
  max-width: 520px;
  margin: 0 auto;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-trust-num {
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.hero-trust-num sup {
  font-size: 0.6em;
  vertical-align: super;
}

.hero-trust-label {
  font-family: var(--ff-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-trust-sep {
  width: 1px;
  height: 36px;
  background: rgba(201, 162, 39, 0.25);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out-expo);
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(245, 240, 232, 0.35);
  color: var(--cream);
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
  transform: translateY(-2px);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s var(--ease-out-expo);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ── Scroll Indicator ─────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInScroll 1s 2.5s forwards;
}

.hero-scroll-hint span {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(0.7);
  }
}

@keyframes fadeInScroll {
  to {
    opacity: 1;
  }
}

/* ── Entrance Transition Section ──────────────────────────── */
#entrance {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}

.entrance-inner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.entrance-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.3);
  filter: brightness(0.45);
  clip-path: ellipse(25% 25% at 50% 50%);
  transition: clip-path 0s;
}

.entrance-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(8, 15, 12, 0.9) 70%);
  z-index: 1;
}

.entrance-text {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.entrance-step {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  opacity: 0;
  margin-bottom: 0.5rem;
}

.entrance-headline {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.02em;
  opacity: 0;
}

/* ── About / Legacy Section ───────────────────────────────── */
#about {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0;
  background: var(--ink-soft);
  overflow: hidden;
}

/* Subtle radial glow */
#about::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 55%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26, 107, 74, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.about-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

/* Left: text */
.about-text {
  position: sticky;
  top: calc(var(--nav-h) + 3rem);
}

.about-text .section-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 2.5rem;
}

.text-gold { color: var(--gold-light); }
.italic { font-style: italic; }

/* 80-year stat badge */
.about-stat {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 39, 0.05);
  border-radius: 0 4px 4px 0;
}

.about-stat-num {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}

.about-stat-unit {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--gold-light);
  font-style: italic;
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: 0.4rem;
}

.about-stat-desc {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.about-text .section-body {
  color: var(--text-muted);
  max-width: 460px;
}

/* Right: generation timeline */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.5rem;
}

.gen-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1.25rem;
  position: relative;
}

.gen-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gen-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gen-dot--active {
  background: var(--gold);
  border-color: var(--gold-light);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

.gen-item:hover .gen-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.gen-line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(201, 162, 39, 0.4), rgba(201, 162, 39, 0.1));
  margin: 6px 0;
}

.gen-item--last .gen-marker {
  justify-content: flex-start;
}

.gen-body {
  padding-bottom: 2.5rem;
}

.gen-item--last .gen-body {
  padding-bottom: 0;
}

.gen-era {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.gen-name {
  font-family: var(--ff-serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.gen-item--last .gen-name {
  color: var(--gold-light);
}

.gen-desc {
  font-family: var(--ff-sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Section Common ───────────────────────────────────────── */
.section-label {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-headline {
  font-family: var(--ff-serif);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

.section-body {
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-light);
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ── Textile Experience Section ───────────────────────────── */
#textiles {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.textiles-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.textiles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.textiles-header .section-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 520px;
}

.textiles-header p {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.75;
}

/* Fabric strip animation */
.fabric-strip {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  animation: fabricSweep 4s ease-in-out infinite;
}

@keyframes fabricSweep {
  0% {
    transform: translateX(-20%);
    opacity: 0;
  }

  30% {
    opacity: 0.4;
  }

  70% {
    opacity: 0.4;
  }

  100% {
    transform: translateX(20%);
    opacity: 0;
  }
}

/* Fabric cards horizontal scroll */
.fabric-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2rem;
  cursor: grab;
}

.fabric-track::-webkit-scrollbar {
  display: none;
}

.fabric-track.dragging {
  cursor: grabbing;
}

.fabric-card {
  flex-shrink: 0;
  width: clamp(260px, 28vw, 380px);
  height: clamp(360px, 45vw, 520px);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.fabric-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.8s var(--ease-out-expo);
}

.fabric-card:hover img {
  transform: scale(1.12);
}

.fabric-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(8, 15, 12, 0.9) 0%,
      rgba(8, 15, 12, 0.3) 50%,
      transparent 100%);
  z-index: 1;
}

.fabric-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.5rem;
  z-index: 2;
}

.fabric-card-tag {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.fabric-card-name {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
}

/* Gold accent line on hover */
.fabric-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  z-index: 3;
  transition: width 0.6s var(--ease-out-expo);
}

.fabric-card:hover::after {
  width: 100%;
}

/* ── Collections Section ──────────────────────────────────── */
#collections {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0;
  background: var(--ink);
}

.collections-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.collections-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.collections-header .section-label {
  justify-content: center;
}

.collections-header .section-label::before {
  display: none;
}

.collections-header .section-headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

.collections-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Collection grid */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.col-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  background: var(--emerald-deep);
}

.col-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.col-card--wide {
  grid-column: span 2;
}

.col-card-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease-out-expo), filter 0.5s;
  filter: brightness(0.75) saturate(0.9);
}

.col-card--featured .col-card-img {
  min-height: 520px;
}

.col-card:hover .col-card-img {
  transform: scale(1.10);
  filter: brightness(0.85) saturate(1.1);
}

.col-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(8, 15, 12, 0.85) 0%,
      rgba(8, 15, 12, 0.2) 55%,
      transparent 100%);
  z-index: 1;
  transition: opacity 0.4s;
}

.col-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  transform: translateY(4px);
  transition: transform 0.4s var(--ease-out-expo);
}

.col-card:hover .col-card-body {
  transform: translateY(0);
}

.col-number {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.col-name {
  font-family: var(--ff-serif);
  color: var(--cream);
  line-height: 1.15;
}

.col-card--featured .col-name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
}

.col-name {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 400;
}

.col-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
}

.col-card:hover .col-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.col-card-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* ── Walking the Racks ────────────────────────────────────── */
#racks {
  position: relative;
  padding: clamp(5rem, 10vh, 8rem) 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.racks-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.racks-header {
  margin-bottom: 3.5rem;
  max-width: 600px;
}

.racks-header .section-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}

.racks-header p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 440px;
}

/* Perspective rack */
.rack-perspective {
  perspective: 1200px;
  perspective-origin: 50% 60%;
  margin-bottom: 2rem;
}

.rack-row {
  display: flex;
  gap: 1.5rem;
  transform: rotateX(4deg) translateZ(-30px);
  transform-style: preserve-3d;
}

.rack-item {
  flex: 0 0 clamp(180px, 20vw, 260px);
  height: clamp(280px, 35vw, 400px);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s;
}

.rack-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

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

.rack-item:hover img {
  transform: scale(1.08);
}

.rack-item-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(8, 15, 12, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 2px;
  padding: 0.3rem 0.7rem;
  font-family: var(--ff-sans);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ── Store Experience Section ─────────────────────────────── */
#store-experience {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0;
  overflow: hidden;
  background: var(--ink);
}

.store-exp-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.store-exp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.store-exp-text .section-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.store-exp-text .section-body {
  margin-bottom: 2rem;
  max-width: 420px;
}

.store-exp-photos {
  position: relative;
  height: clamp(400px, 60vh, 680px);
}

.store-photo-main {
  position: absolute;
  right: 0;
  top: 0;
  width: 80%;
  height: 85%;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.store-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.store-photo-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  height: 55%;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 3px solid var(--ink);
}

.store-photo-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-exp-badge {
  position: absolute;
  top: 35%;
  left: 48%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
}

.store-exp-badge small {
  font-size: 0.45rem;
  font-family: var(--ff-sans);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Divider ──────────────────────────────────────────────── */
.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25;
  margin: 0;
}

/* ── Aisle / Approach Section ─────────────────────────────── */
#aisle {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}

.aisle-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.aisle-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.4) saturate(0.8);
}

/* Perspective corridor effect */
.aisle-perspective {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(201, 162, 39, 0.06) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(8, 15, 12, 0.7) 0%, transparent 30%, transparent 60%, rgba(8, 15, 12, 0.9) 100%);
  z-index: 1;
}

/* Corridor lines */
.corridor-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.corridor-lines::before,
.corridor-lines::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(201, 162, 39, 0.3));
}

.corridor-lines::before {
  left: 20%;
  transform-origin: bottom center;
  transform: perspective(800px) rotateY(-15deg);
}

.corridor-lines::after {
  right: 20%;
  transform-origin: bottom center;
  transform: perspective(800px) rotateY(15deg);
}

.aisle-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
}

.aisle-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  opacity: 0;
}

.aisle-headline {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0;
}

.aisle-sub {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.75;
  opacity: 0;
}

/* ── Billing Counter Section ──────────────────────────────── */
#billing {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(26, 107, 74, 0.18) 0%, transparent 70%),
    linear-gradient(160deg, #0a1410 0%, #0d1a14 50%, #060e0a 100%);
  overflow: hidden;
}

/* Subtle decorative gold ring behind headline */
#billing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.07);
  pointer-events: none;
}

#billing::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
  height: 760px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.04);
  pointer-events: none;
}

.billing-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* No-image variant — centred single column */
.billing-inner--no-image {
  grid-template-columns: 1fr;
  max-width: 780px;
  text-align: center;
}

.billing-inner--no-image .section-label {
  justify-content: center;
}

.billing-inner--no-image .section-label::before {
  display: none;
}

.billing-inner--no-image .billing-ctas {
  justify-content: center;
}

.billing-inner--no-image .billing-address {
  text-align: center;
}

.billing-inner--no-image .billing-contact-links {
  justify-content: center;
}

.billing-inner--no-image .billing-visual {
  display: none;
}

.billing-visual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.billing-visual img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

.billing-visual-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}

.billing-text .section-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
}

.billing-text .section-body {
  margin-bottom: 2rem;
}

.billing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.billing-address {
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding-top: 1.5rem;
}

.billing-address-label {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.billing-address-text {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.billing-contact-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.billing-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s;
}

.billing-contact-link:hover {
  color: var(--gold);
}

.billing-contact-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

/* ── Final Logo / Footer ──────────────────────────────────── */
#finale {
  position: relative;
  padding: clamp(6rem, 15vh, 12rem) 0 clamp(3rem, 6vh, 5rem);
  text-align: center;
  background: var(--emerald-deep);
  overflow: hidden;
}

/* Subtle background texture lines */
.finale-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 59px,
      rgba(201, 162, 39, 0.04) 59px,
      rgba(201, 162, 39, 0.04) 60px);
  pointer-events: none;
}

.finale-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.finale-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(24px);
}

.finale-logo img {
  height: clamp(100px, 15vw, 150px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 40px rgba(201, 162, 39, 0.25));
}

.finale-tagline {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
}

.finale-sub {
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  opacity: 0;
}

.finale-gold-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
  opacity: 0;
}

.finale-info {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 2;
  opacity: 0;
}

.finale-info strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.finale-info a {
  color: var(--gold-light);
  transition: color 0.3s;
}

.finale-info a:hover {
  color: var(--gold);
}

.finale-copyright {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.12);
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(138, 148, 137, 0.5);
}

/* ── Mobile Menu ──────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(8, 15, 12, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: var(--gold-light);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-light);
}

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

  .col-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .col-card--featured .col-card-img {
    min-height: 360px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-text {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  #cursor-dot,
  #cursor-ring {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-cta.desktop-only {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .textiles-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-exp-layout {
    grid-template-columns: 1fr;
  }

  .store-exp-photos {
    height: clamp(300px, 60vw, 420px);
    order: -1;
  }

  .store-photo-main {
    width: 85%;
    height: 90%;
  }

  .store-photo-accent {
    width: 55%;
    height: 50%;
  }

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

  .col-card--featured,
  .col-card--wide {
    grid-column: span 1;
  }

  .col-card--featured .col-card-img {
    min-height: 300px;
  }

  .billing-inner {
    grid-template-columns: 1fr;
  }

  .billing-visual {
    order: -1;
  }

  .rack-row {
    transform: none;
  }

  .aisle-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .billing-ctas {
    flex-direction: column;
  }
}

/* ── 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;
  }

  .hero-logo-wrap,
  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-actions {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Utility ──────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-gold {
  color: var(--gold-light);
}

.italic {
  font-style: italic;
}