/* Rudvi 3D experience (experience.html) */
:root {
  --pine: #153a2c;
  --pine-deep: #0b2018;
  --maize: #e7bd58;
  --gold-pale: #f3e6b5;
  --saffron: #d98942;
  --oat: #f6f2e8;
  --cream-dim: rgba(246, 242, 232, .72);
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--oat);
  font: 400 1.0625rem/1.65 var(--sans);
  background: radial-gradient(120% 90% at 70% 10%, #24533f 0%, var(--pine) 38%, var(--pine-deep) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 99; padding: .7rem 1rem; background: var(--maize); color: var(--pine); border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.xp-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; touch-action: pan-y; }
main, .xp-header, .xp-progress { position: relative; z-index: 2; }

/* Loader */
.xp-loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 1.1rem; background: var(--pine-deep); transition: opacity .9s var(--ease), visibility .9s; }
.xp-loader img { width: 110px; height: auto; filter: drop-shadow(0 10px 30px rgba(231, 189, 88, .25)); animation: xp-breathe 2.4s ease-in-out infinite; }
.xp-loader-bar { width: 180px; height: 2px; background: rgba(246, 242, 232, .15); border-radius: 2px; overflow: hidden; }
.xp-loader-bar i { display: block; height: 100%; width: 0; background: var(--maize); transition: width .4s var(--ease); }
.xp-loader span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim); }
.is-ready .xp-loader { opacity: 0; visibility: hidden; }
@keyframes xp-breathe { 50% { transform: scale(1.06); } }

/* Header */
.xp-header { position: fixed; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); }
.xp-brand img { width: 74px; height: auto; display: block; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.xp-dots { display: flex; gap: .35rem; padding: .3rem; border-radius: 999px; background: rgba(11, 32, 24, .45); border: 1px solid rgba(246, 242, 232, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.xp-dots a { font: 600 .72rem/1 var(--sans); letter-spacing: .08em; text-decoration: none; color: var(--cream-dim); padding: .55rem .7rem; border-radius: 999px; transition: background .3s, color .3s; }
.xp-dots a.is-active { background: var(--maize); color: var(--pine); }
.xp-exit { font-size: .85rem; font-weight: 600; text-decoration: none; padding: .6rem 1rem; border-radius: 999px; border: 1px solid rgba(246, 242, 232, .25); background: rgba(11, 32, 24, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, background .3s; }
.xp-exit:hover { border-color: var(--maize); background: rgba(231, 189, 88, .12); }
.xp-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 5; }
.xp-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--saffron), var(--maize)); }

/* Scenes */
.xp-scene { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 7rem clamp(1rem, 6vw, 5rem) 5rem; }
.xp-copy { max-width: 34rem; }
.xp-copy-right { margin-left: auto; }
.xp-copy-center { margin: 0 auto; text-align: center; max-width: 40rem; }
.xp-eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--maize); margin-bottom: 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; margin: 0 0 1.1rem; letter-spacing: -.02em; }
.xp-title { font-size: clamp(2.8rem, 7.4vw, 6.2rem); }
.xp-title span { display: block; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
em { font-style: italic; color: var(--maize); }
.xp-lede, .xp-copy p { color: var(--cream-dim); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 32rem; }
.xp-copy-center p { margin-inline: auto; }
.xp-hero .xp-copy, .xp-story .xp-copy, .xp-values .xp-copy, .xp-order .xp-copy { text-shadow: 0 4px 30px rgba(11, 32, 24, .6); }
.xp-scroll-hint { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2.2rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-dim); }
.xp-scroll-hint i { width: 22px; height: 34px; border: 1.5px solid rgba(246, 242, 232, .5); border-radius: 12px; position: relative; }
.xp-scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--maize); animation: xp-wheel 1.8s var(--ease) infinite; }
@keyframes xp-wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

.xp-chips { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.xp-chips li, .xp-tags span { font-size: .8rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px; background: rgba(246, 242, 232, .08); border: 1px solid rgba(246, 242, 232, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Reveal */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Product range */
.xp-range { height: 420vh; position: relative; }
.xp-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 6.5rem clamp(1rem, 6vw, 5rem) 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; pointer-events: none; }
.xp-sticky > * { pointer-events: auto; }
.xp-range-head { grid-column: 1 / -1; }
.xp-range-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0; }
.xp-product { grid-column: 2; align-self: center; justify-self: end; max-width: 23rem; padding: 1.6rem; border-radius: 22px; background: rgba(11, 32, 24, .55); border: 1px solid rgba(246, 242, 232, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.xp-product h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: .5rem 0 .6rem; }
.xp-product p { color: var(--cream-dim); margin: 0 0 1rem; font-size: .98rem; }
.xp-product.is-swap > * { animation: xp-swap .55s var(--ease); }
@keyframes xp-swap { from { opacity: 0; transform: translateY(10px); } }
.xp-product-count { font-size: .78rem; letter-spacing: .14em; color: var(--cream-dim); }
.xp-product-count b { color: var(--maize); }
.xp-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.3rem; }
.xp-product-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.xp-range-nav { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dim); }
.xp-range-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(246, 242, 232, .3); background: rgba(11, 32, 24, .45); color: var(--oat); font-size: 1.1rem; cursor: pointer; transition: background .3s, border-color .3s, transform .3s; }
.xp-range-nav button:hover { background: var(--maize); color: var(--pine); border-color: var(--maize); transform: scale(1.06); }
.xp-range-nav span { margin-left: .4rem; }
.xp-fallback-list { display: none; }

/* Buttons */
.xp-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .85rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; transition: transform .35s var(--ease), background .3s, box-shadow .3s, border-color .3s; }
.xp-btn:hover { transform: translateY(-2px); }
.xp-btn-gold { background: var(--maize); color: var(--pine); box-shadow: 0 12px 30px rgba(231, 189, 88, .3); }
.xp-btn-gold:hover { box-shadow: 0 18px 40px rgba(231, 189, 88, .45); }
.xp-btn-ghost { border: 1px solid rgba(246, 242, 232, .3); background: rgba(11, 32, 24, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.xp-btn-ghost:hover { border-color: var(--maize); }
.xp-btn:focus-visible, .xp-range-nav button:focus-visible, .xp-dots a:focus-visible, .xp-exit:focus-visible { outline: 2px solid var(--maize); outline-offset: 3px; }

/* Values */
.xp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.8rem; }
.xp-stats div { padding: 1.1rem; border-radius: 18px; background: rgba(11, 32, 24, .5); border: 1px solid rgba(246, 242, 232, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.xp-stats b { display: block; font: 500 clamp(1.5rem, 2.4vw, 2rem)/1 var(--serif); color: var(--maize); margin-bottom: .45rem; }
.xp-stats span { font-size: .82rem; color: var(--cream-dim); line-height: 1.4; display: block; }

/* Order */
.xp-order h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.xp-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.8rem; }
.xp-foot { margin-top: 3.5rem !important; font-size: .8rem !important; }
.xp-foot a { text-decoration: none; border-bottom: 1px solid rgba(246, 242, 232, .3); }

/* No WebGL / reduced motion: show products as a plain list */
.no-webgl .xp-canvas, .no-webgl .xp-range-nav, .no-webgl .xp-product { display: none; }
.no-webgl .xp-range { height: auto; }
.no-webgl .xp-sticky { position: static; height: auto; display: block; }
.no-webgl .xp-fallback-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.xp-fallback-list a { display: block; text-decoration: none; padding: .8rem; border-radius: 18px; background: rgba(11, 32, 24, .5); border: 1px solid rgba(246, 242, 232, .12); }
.xp-fallback-list img { width: 100%; height: auto; border-radius: 12px; display: block; margin-bottom: .6rem; }

@media (max-width: 820px) {
  .xp-dots { display: none; }
  .xp-brand img { width: 60px; }
  .xp-scene { align-items: flex-end; padding-bottom: 4.5rem; }
  .xp-hero { align-items: flex-end; }
  .xp-copy-right { margin-left: 0; }
  .xp-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding-top: 5.5rem; padding-bottom: 1.4rem; }
  .xp-product { grid-column: 1; grid-row: 3; justify-self: stretch; max-width: none; padding: 1.1rem 1.2rem; }
  .xp-product p { display: none; }
  .xp-product h3 { margin-bottom: .7rem; }
  .xp-tags { margin-bottom: .9rem; }
  .xp-range-nav { grid-row: 4; margin-top: .8rem; }
  .xp-range-nav span { display: none; }
  .xp-stats { grid-template-columns: 1fr; }
  .xp-stats div { display: flex; align-items: baseline; gap: .8rem; padding: .85rem 1rem; }
  .xp-stats b { margin: 0; min-width: 4.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
