/* =========================================================================
   ₹15: THE MUMBAI VADA PAV STORY
   Design tokens + Base styles
   Palette: Mumbai street stall warmth: tungsten orange, saffron, night blue
   ========================================================================= */

:root {
  --saffron: #E3A94A;
  --tungsten: #D97706;
  --night-blue: #1E3A5F;
  --night-deep: #0B1120;
  --newspaper: #F5F0E8;
  --chutney-green: #2D6A4F;
  --chili-red: #DC2626;
  --cream: #FDF8F0;
  --ink: #1a1008;
  --text-primary: #F7F3EE;
  --text-muted: #A8977E;
  --text-warm: #E3A94A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;

  /* Motion curves (intentional, not default ease) */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Duration tokens */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-reveal: 700ms;

  --section-gap: clamp(5rem, 12vw, 10rem);
  --content-width: min(68ch, 88vw);
  --wide-width: min(1140px, 92vw);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  font-family: var(--font-body);
  background: var(--night-deep);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  overflow-x: hidden;
}

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

a { color: var(--saffron); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section { padding: var(--section-gap) 0; }
.container { width: var(--content-width); margin: 0 auto; }
.container--wide { width: var(--wide-width); margin: 0 auto; padding: 0 2rem; }

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('./img/hero-stall.jpg?v=2') center center/cover no-repeat;
  filter: brightness(0.6);
  z-index: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 3rem;
}

.hero__price {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--saffron);
  line-height: 0.85;
  text-shadow: 0 4px 40px rgba(227, 169, 74, 0.3);
  animation: hero-price-enter 1s var(--ease-out-expo) 0.3s both;
}

@keyframes hero-price-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-primary);
  margin-top: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 38ch;
  animation: hero-price-enter 0.8s var(--ease-out-expo) 0.6s both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: pulse-down 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

/* =========================================================================
   MOBILE HAMBURGER NAV
   ========================================================================= */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--saffron);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 60;
  line-height: 1;
}

.nav__overlay {
  display: none;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 55;
    opacity: 0;
    transform: translateY(-10px);
  }
  .nav__links.open {
    display: flex;
    animation: nav-enter 200ms var(--ease-out-expo) forwards;
  }
  @keyframes nav-enter {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav__links a {
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: 0.08em;
  }
  .nav__links a:hover { color: var(--saffron); }
}

/* =========================================================================
   ORIGIN SECTION
   ========================================================================= */
.origin {
  background: linear-gradient(180deg, var(--night-deep) 0%, #1a0f05 100%);
  padding: var(--section-gap) 0;
}

.origin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.origin__image {
  border-radius: 4px;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.9;
}

.origin__text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--saffron);
  margin-bottom: 1.5rem;
}

.origin__text p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

#story .origin__text p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.origin__year {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--tungsten);
  opacity: 0.1;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
}

/* =========================================================================
   TRAIN MAP SECTION
   ========================================================================= */
.train-map {
  background: var(--night-deep);
  padding: var(--section-gap) 0;
  text-align: center;
}

.train-map h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.train-map__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.train-map__image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(227, 169, 74, 0.2);
}

.station-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.station-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
  animation: station-pulse 2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes station-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* =========================================================================
   ASSEMBLER SECTION
   ========================================================================= */
.assembler {
  background: linear-gradient(180deg, var(--night-deep) 0%, #0d0800 50%, var(--night-deep) 100%);
  padding: var(--section-gap) 0;
}

.assembler h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.assembler__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.assembler__stage {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1208 0%, #0a0600 100%);
  border: 2px solid rgba(227, 169, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.assembler__layer {
  position: absolute;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.7) translateY(30px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-back);
}

.assembler__layer.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stacking effect: each layer shifts up slightly */
.assembler__layer.stacked {
  opacity: 0.3;
  transform: scale(0.85) translateY(-8px);
  filter: brightness(0.6);
}

.assembler__steps {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.assembler__step-btn {
  background: rgba(227, 169, 74, 0.1);
  border: 1px solid rgba(227, 169, 74, 0.3);
  color: var(--saffron);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: background var(--duration-fast) var(--ease-out-expo),
              color var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-out-expo);
}

.assembler__step-btn:hover,
.assembler__step-btn:focus,
.assembler__step-btn[aria-selected="true"] {
  background: var(--saffron);
  color: var(--ink);
  border-color: var(--saffron);
  outline: none;
  transform: scale(1.05);
}

.assembler__description {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1.5rem;
  min-height: 3rem;
  font-style: italic;
}

/* =========================================================================
   RECIPE SECTION
   ========================================================================= */
.recipe {
  background: var(--night-deep);
  color: var(--text-primary);
  padding: var(--section-gap) 0;
}

.recipe__header {
  text-align: center;
  margin-bottom: 3rem;
}

.recipe__header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--saffron);
  margin-bottom: 0.5rem;
}

.recipe__tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.recipe__servings {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(227, 169, 74, 0.08);
  border: 1px solid rgba(227, 169, 74, 0.2);
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
}

.recipe__servings label {
  font-weight: 600;
  color: var(--saffron);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recipe__servings select {
  padding: 0.3rem 0.8rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-body);
}

.recipe__card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border: 1px solid rgba(227, 169, 74, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.recipe__ingredients {
  padding: 2.5rem;
  border-right: 1px solid rgba(227, 169, 74, 0.1);
}

.recipe__method {
  padding: 2.5rem;
}

.recipe__ingredients h3,
.recipe__method h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  color: var(--saffron);
}

.recipe__ingredients ul {
  list-style: none;
}

.recipe__ingredients li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.recipe__ingredients li:last-child {
  border-bottom: none;
}

.recipe__ingredients li span {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.recipe__method ol {
  list-style: none;
  padding: 0;
  counter-reset: none;
}

.recipe__method li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.recipe__method li:last-child {
  border-bottom: none;
}

.recipe__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(227, 169, 74, 0.15);
  color: var(--saffron);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* =========================================================================
   CULTURE SECTION
   ========================================================================= */
.culture {
  background: var(--night-deep);
  padding: var(--section-gap) 0;
}

.culture h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

.culture__rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.culture__rule {
  background: rgba(227, 169, 74, 0.03);
  border: 1px solid rgba(227, 169, 74, 0.08);
  border-radius: 1.5rem;
  padding: 0.375rem;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.culture__rule:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(227, 169, 74, 0.08);
}

.culture__rule-inner {
  background: rgba(11, 17, 32, 0.5);
  border-radius: calc(1.5rem - 0.375rem);
  padding: 2rem;
  border: 1px solid rgba(227, 169, 74, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.culture__rule h3,
.culture__rule-inner h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--saffron);
  margin-bottom: 0.8rem;
}

.culture__rule p,
.culture__rule-inner p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================================================
   CLOSER SECTION
   ========================================================================= */
.closer {
  padding: calc(var(--section-gap) * 1.3) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--night-deep) 0%, #1a0f05 100%);
}

.closer__greeting {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--saffron);
  margin-bottom: 1rem;
  /* Slower, larger reveal for emotional peak */
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.closer__greeting.visible {
  opacity: 1;
  transform: translateY(0);
}

.closer__translation {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.closer__meaning {
  color: var(--text-primary);
  max-width: 50ch;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.closer__image {
  margin: 3rem auto 0;
  max-width: 700px;
  border-radius: 8px;
  opacity: 0.85;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(227, 169, 74, 0.1);
}

.footer a {
  color: var(--saffron);
  transition: color 0.25s var(--ease-out-expo), opacity 0.25s var(--ease-out-expo);
}

.footer a:hover {
  color: var(--tungsten);
  text-decoration: none;
  opacity: 0.85;
}

/* Stats count-up animation */
.stats__item h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--saffron);
  line-height: 1;
  transition: transform 0.5s var(--ease-out-back);
}

.stats__grid.visible .stats__item h3 {
  animation: stat-pop 0.6s var(--ease-out-back) both;
}

.stats__grid.visible .stats__item:nth-child(1) h3 { animation-delay: 0.1s; }
.stats__grid.visible .stats__item:nth-child(2) h3 { animation-delay: 0.2s; }
.stats__grid.visible .stats__item:nth-child(3) h3 { animation-delay: 0.3s; }
.stats__grid.visible .stats__item:nth-child(4) h3 { animation-delay: 0.4s; }

@keyframes stat-pop {
  0% { transform: scale(0.85); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 768px) {
  .origin__grid { grid-template-columns: 1fr; }
  .recipe__card { grid-template-columns: 1fr; }
  .recipe__ingredients { border-right: none; border-bottom: 1px solid rgba(227, 169, 74, 0.1); }
  .hero__price { font-size: 5rem; }
  .hero__content { padding: 1.5rem; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Keep opacity/color transitions for comprehension, remove movement */
  .reveal, .reveal-left, .reveal-right, .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.2s ease !important;
  }
  .hero__scroll-hint { display: none; }
  .particles { display: none; }
}

/* =========================================================================
   SCROLL-DRIVEN ANIMATIONS (Reveal on scroll)
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.06s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.18s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.30s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.36s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   PARALLAX HERO EFFECT
   ========================================================================= */
/* hero__bg parallax handled via will-change on the original declaration */

/* =========================================================================
   FLOATING PARTICLES (Spice dust in hero)
   ========================================================================= */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--saffron);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s ease-in-out infinite;
}

@keyframes float-particle {
  0% { opacity: 0; transform: translateY(100vh) rotate(0deg); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) rotate(360deg); }
}

/* =========================================================================
   GLOWING BORDER ON ASSEMBLER
   ========================================================================= */
.assembler__stage {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1208 0%, #0a0600 100%);
  border: 2px solid rgba(227, 169, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(227, 169, 74, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.5);
  animation: stage-glow 3s ease-in-out infinite alternate;
}

@keyframes stage-glow {
  0% { box-shadow: 0 0 40px rgba(227, 169, 74, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.5); }
  100% { box-shadow: 0 0 60px rgba(227, 169, 74, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.5), 0 0 80px rgba(227, 169, 74, 0.05); }
}

/* =========================================================================
   PROGRESS BAR (Shows assembly progress)
   ========================================================================= */
.assembler__progress {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: rgba(227, 169, 74, 0.1);
  border-radius: 2px;
  margin: 1.5rem auto 0;
  overflow: hidden;
}

.assembler__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--tungsten));
  border-radius: 2px;
  transition: width 0.5s var(--ease-out-expo);
  width: 20%;
}

/* =========================================================================
   COUNTER WIDGET (Stats strip)
   ========================================================================= */
.stats {
  background: rgba(227, 169, 74, 0.03);
  border-top: 1px solid rgba(227, 169, 74, 0.1);
  border-bottom: 1px solid rgba(227, 169, 74, 0.1);
  padding: 2.5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stats__item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================================
   IMAGE HOVER ZOOM
   ========================================================================= */
.img-zoom {
  overflow: hidden;
  border-radius: 8px;
}

.img-zoom img {
  transition: transform 0.6s var(--ease-out-expo);
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* =========================================================================
   DIVIDER (decorative)
   ========================================================================= */
.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  margin: 2rem auto;
  border: none;
}

/* =========================================================================
   BACK TO TOP BUTTON
   ========================================================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--ink);
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
  z-index: 100;
  box-shadow: 0 4px 15px rgba(227, 169, 74, 0.3);
}

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

.back-to-top:hover {
  background: var(--tungsten);
  transform: translateY(-3px) scale(1.05);
}

/* =========================================================================
   NAVIGATION (Sticky minimal)
   ========================================================================= */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  right: 2rem;
  z-index: 50;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  border-radius: 0;
  width: auto;
  max-width: none;
  gap: 2rem;
  transform: none;
}

.nav.scrolled {
  background: none;
  backdrop-filter: none;
  box-shadow: none;
  border-color: transparent;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--saffron);
  order: 2;
  margin-left: auto;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  order: 1;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
}

.nav.scrolled .nav__links {
  opacity: 1;
}

.nav__links a {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.25s var(--ease-out-expo);
}

.nav__links a:hover { color: var(--saffron); text-decoration: none; }

/* =========================================================================
   RESPONSIVE: TABLET (768px - 1024px)
   ========================================================================= */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 0.8rem; }
  .assembler__stage { width: 280px; height: 280px; }
}

/* =========================================================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ========================================================================= */
@media (max-width: 768px) {
  .origin__grid { grid-template-columns: 1fr; }
  .recipe__card { grid-template-columns: 1fr; }
  .recipe__ingredients { border-right: none; border-bottom: 1px solid rgba(227, 169, 74, 0.1); }
  .hero__price { font-size: 5rem; }
  .hero__content { padding: 1.5rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .culture__rules { grid-template-columns: 1fr; }
  .assembler__stage { width: 260px; height: 260px; }
  .assembler__steps { gap: 0.5rem; }
  .assembler__step-btn { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
  .closer__greeting { font-size: 2.5rem; }
  .train-map__image { border-radius: 4px; }
}

/* =========================================================================
   RESPONSIVE: SMALL MOBILE (max-width: 420px)
   ========================================================================= */
@media (max-width: 420px) {
  .hero__price { font-size: 4rem; }
  .hero__subtitle { font-size: 1rem; }
  .assembler__stage { width: 220px; height: 220px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__item h3 { font-size: 1.8rem; }
}

/* =========================================================================
   GRAIN OVERLAY (physicality / editorial texture)
   ========================================================================= */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* =========================================================================
   ORIGIN IMAGE TREATMENT (editorial depth)
   ========================================================================= */
.origin__image {
  border-radius: 4px;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.9;
  transition: filter var(--duration-slow) var(--ease-out-expo), opacity var(--duration-slow) var(--ease-out-expo);
}

.origin__image:hover {
  filter: grayscale(0.5) contrast(1.05);
  opacity: 1;
}
