:root {
  --cream: #f5eee2;
  --paper: #fbf7f0;
  --wood-dark: #2a1c10;
  --wood: #5b3a1f;
  --honey: #c8893a;
  --honey-light: #e2b36d;
  --olive: #5c6338;
  --olive-soft: #8c9168;
  --ink: #2b241d;
  --muted: #6f6254;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h1 em, h2 em { font-style: italic; color: var(--honey-light); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.7rem; }

.eyebrow {
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--honey); font-weight: 600; margin: 0 0 1.2rem;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  color: var(--cream);
  transition: background .4s var(--ease), padding .4s var(--ease), color .4s;
}
.nav.scrolled {
  background: rgba(251, 247, 240, .85); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: .7rem; box-shadow: 0 1px 0 rgba(43, 36, 29, .08);
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .02em; }
.brand-sub { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.nav-links { display: flex; gap: clamp(.8rem, 2.4vw, 2.2rem); align-items: center; font-size: .9rem; }
.nav-links a { text-decoration: none; opacity: .85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { border: 1px solid currentColor; padding: .45rem 1.1rem; border-radius: 99px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.7rem; border-radius: 99px; text-decoration: none;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--honey); color: var(--wood-dark); box-shadow: 0 10px 30px -10px rgba(200, 137, 58, .7); }
.btn-primary:hover { background: var(--honey-light); }
.btn-ghost { border: 1px solid rgba(245, 238, 226, .5); color: var(--cream); }
.btn-ghost:hover { background: rgba(245, 238, 226, .1); }
.btn-ghost.dark { border-color: rgba(43, 36, 29, .3); color: var(--ink); }
.btn-ghost.dark:hover { background: rgba(43, 36, 29, .05); }

/* HERO */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: center;
  padding: 7rem clamp(1rem, 6vw, 5rem) 5rem;
  color: var(--cream);
  background: radial-gradient(120% 90% at 70% 45%, #5a3b20 0%, #2a1c10 55%, #150d06 100%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background: linear-gradient(90deg, rgba(21, 13, 6, .92) 25%, rgba(21, 13, 6, .3)), url("../images/village-shop.webp") center/cover;
}
.no-webgl .hero-fallback { opacity: 1; }
.hero-content { position: relative; z-index: 2; max-width: 40rem; }
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(245, 238, 226, .78); max-width: 32rem; margin: 0 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-content > * { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-rating {
  position: absolute; z-index: 2; right: clamp(1rem, 4vw, 3rem); bottom: 2.2rem;
  display: flex; gap: .6rem; align-items: center; font-size: .85rem;
  background: rgba(245, 238, 226, .08); border: 1px solid rgba(245, 238, 226, .15);
  padding: .6rem 1rem; border-radius: 99px; backdrop-filter: blur(8px);
}
.stars { color: var(--honey-light); letter-spacing: .1em; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 2rem; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(245, 238, 226, .5); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--cream); border-radius: 2px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* SECTIONS */
section:not(.hero) { padding: clamp(5rem, 11vw, 9rem) clamp(1rem, 6vw, 5rem); }
.section-head { max-width: 42rem; margin: 0 auto 4rem; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* STORY */
.story {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center;
  max-width: 1280px; margin: 0 auto;
}
.story-media { position: relative; aspect-ratio: 1 / 1.05; perspective: 1200px; }
.story-media figure { margin: 0; position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(42, 28, 16, .55); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.stack-back { width: 62%; height: 82%; left: 0; top: 0; }
.stack-front { width: 58%; height: 62%; right: 0; bottom: 0; border: 8px solid var(--paper); }
.story-text p { color: var(--muted); font-size: 1.05rem; }
.facts { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid rgba(43, 36, 29, .12); padding-top: 1.8rem; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--wood); line-height: 1.1; }
.facts span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

/* COLLECTION */
.collection { background: var(--cream); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  max-width: 1320px; margin: 0 auto; perspective: 1400px;
}
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(42, 28, 16, .45);
  transform-style: preserve-3d;
}
.card:nth-child(even) { margin-top: 3rem; }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.12); }
.card-body { padding: 1.4rem 1.5rem 1.7rem; transform: translateZ(30px); }
.card-num { font-size: .72rem; letter-spacing: .2em; color: var(--honey); font-weight: 600; }
.card-body h3 { margin: .3rem 0 .4rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .93rem; }

.tilt { transition: transform .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }

/* GALLERY RING */
.gallery { background: var(--wood-dark); color: var(--cream); overflow: hidden; }
.gallery .section-head p:not(.eyebrow) { color: rgba(245, 238, 226, .7); }
.ring-wrap { height: clamp(340px, 46vw, 520px); perspective: 1600px; display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; }
.ring-wrap:active { cursor: grabbing; }
.ring { position: relative; width: clamp(200px, 22vw, 290px); aspect-ratio: 3 / 4; transform-style: preserve-3d; }
.ring figure {
  position: absolute; inset: 0; margin: 0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  backface-visibility: hidden;
}
.ring img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ring-hint { text-align: center; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; opacity: .5; margin: 2rem 0 0; }

/* VISIT */
.visit {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: stretch;
  max-width: 1320px; margin: 0 auto;
}
.visit-card { background: var(--cream); border-radius: var(--radius); padding: clamp(2rem, 4vw, 3.5rem); }
.visit-card > p:not(.eyebrow) { color: var(--muted); }
.details { margin: 2rem 0 2.2rem; display: grid; gap: 1.2rem; }
.details div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; border-bottom: 1px solid rgba(43, 36, 29, .1); padding-bottom: 1.1rem; }
.details dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--honey); font-weight: 600; padding-top: .2rem; }
.details dd { margin: 0; font-size: 1.02rem; }
.details small { color: var(--muted); }
.details a { text-decoration: none; border-bottom: 1px solid var(--honey); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: 0 30px 70px -40px rgba(42, 28, 16, .6); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: sepia(.25) saturate(.9); }

/* FOOTER */
.footer {
  background: var(--wood-dark); color: rgba(245, 238, 226, .75);
  padding: 3rem clamp(1rem, 6vw, 5rem); display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap;
}
.footer .brand-mark { color: var(--cream); }
.footer p { margin: .3rem 0 0; font-size: .9rem; }
.footer .copy { font-size: .8rem; opacity: .6; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .story, .visit { grid-template-columns: 1fr; }
  .story-media { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 1fr; gap: .2rem; }
  .hero { align-items: end; padding-bottom: 3rem; }
  .hero-rating { display: none; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-content > * { opacity: 1; transform: none; animation: none; transition: none; }
}
