/* Homepage */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: var(--vault); }
.hero-gem { position: absolute; z-index: 1; right: -9vw; top: 52%; width: min(52vw, 800px); aspect-ratio: 1; transform: translateY(-50%); }
.hero-gem .hero-fallback { position: absolute; inset: 28%; width: 44%; height: 44%; transition: opacity .8s; }
.hero-gem.has-3d .hero-fallback { opacity: 0; }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 28px; max-width: var(--maxw); padding-top: var(--header-h); }
.hero-copy .lead { max-width: 34ch; }
.hero-copy .display { max-width: 9.5em; }
.hero-cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; color: var(--text-dim); }
.hero-cue i { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease-in-out) infinite; transform-origin: top; }
@media (max-width: 860px) {
  .hero { align-items: end; padding-bottom: 96px; }
  .hero { padding-top: calc(var(--header-h) + 46vw); }
  .hero-gem { right: auto; left: 50%; top: calc(var(--header-h) + 4px); width: 64vw; transform: translateX(-50%); }
  .hero-copy { gap: 20px; }
}

/* The Eight, pinned: one stone at a time, cross-faded as you scroll */
.eight { position: relative; overflow: hidden; isolation: isolate; background: var(--midnight); }
.eight-pin { position: relative; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr; padding-top: calc(var(--header-h) + 24px); }
.eight-head { position: relative; z-index: 3; display: flex; align-items: end; gap: 32px; flex-wrap: wrap; }
.eight-count { margin-left: auto; font-family: var(--f-display); letter-spacing: .2em; color: var(--text-dim); }
.eight-count span { color: var(--gold-lt); }
.eight-stage { position: absolute; z-index: 1; right: 2vw; top: 54%; width: min(48vw, 680px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.eight-track { position: relative; z-index: 2; }
.eight-panel { position: absolute; inset: 0; display: grid; align-content: center; padding: 0 var(--gutter); opacity: 0; visibility: hidden; transition: opacity .9s var(--ease-lux), visibility 0s linear .9s; }
.eight-panel.is-active { opacity: 1; visibility: visible; transition-delay: .15s, 0s; }
.eight-panel .inner { max-width: min(520px, 44vw); display: grid; gap: 16px; margin-left: max(0px, calc((100vw - var(--maxw)) / 2)); }
.eight-panel .inner > * { transform: translateY(24px); transition: transform 1.1s var(--ease-lux); }
.eight-panel.is-active .inner > * { transform: none; }
.eight-panel .inner > :nth-child(2) { transition-delay: 60ms; } .eight-panel .inner > :nth-child(3) { transition-delay: 120ms; } .eight-panel .inner > :nth-child(4) { transition-delay: 180ms; } .eight-panel .inner > :nth-child(5) { transition-delay: 240ms; } .eight-panel .inner > :nth-child(6) { transition-delay: 300ms; }
.eight-panel .num { font-family: var(--f-display); font-size: clamp(4rem, 10vw, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201,168,76,.4); }
.eight-panel h3 { font-size: var(--fs-h1); }
.eight-panel .origin { font-family: var(--f-editorial); font-style: italic; font-size: 1.4rem; color: var(--gold-lt); }
.eight-panel p { color: var(--text-soft); max-width: 42ch; }
.eight-panel .row { margin-top: 10px; }
.eight-panel .icon-mobile { display: none; width: 96px; height: 96px; }
.eight-dots { position: absolute; z-index: 3; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; gap: 10px; }
.eight-dots i { width: 22px; height: 1px; background: rgba(250,247,240,.25); transition: background .5s, width .5s var(--ease-lux); }
.eight-dots i.is-on { width: 44px; background: var(--gold); }
.eight.is-static .eight-pin { height: auto; padding-bottom: 72px; }
.eight.is-static .eight-stage, .eight.is-static .eight-dots { display: none; }
.eight.is-static .eight-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 40px var(--gutter) 8px; scrollbar-width: none; }
.eight.is-static .eight-track::-webkit-scrollbar { display: none; }
.eight.is-static .eight-panel { position: relative; inset: auto; opacity: 1; visibility: visible; flex: 0 0 min(82vw, 420px); scroll-snap-align: center; padding: 28px; border: 1px solid var(--line); background: rgba(10,18,13,.5); }
.eight.is-static .eight-panel .inner { margin: 0; max-width: none; }
.eight.is-static .eight-panel .inner > * { transform: none; }
.eight.is-static .eight-panel .icon-mobile { display: block; }
.eight.is-static .eight-panel .num { font-size: 3rem; }
.eight.is-static .eight-panel h3 { font-size: var(--fs-h2); }

.journey-teaser .chapter { min-height: 120vh; }

.prov-plot svg { width: 100%; height: auto; overflow: visible; }
.prov-plot .grid line { stroke: rgba(201,168,76,.16); stroke-width: .5; }
.prov-plot .grid text { fill: rgba(250,247,240,.6); font: 300 9px var(--f-body); letter-spacing: .1em; }
.prov-plot a .dot { fill: var(--c, var(--gold)); stroke: var(--gold); stroke-width: 1; transition: r .4s var(--ease-lux); }
.prov-plot a .halo { fill: none; stroke: var(--gold); opacity: .35; }
.prov-plot a text { fill: var(--ivory); font: 400 10px var(--f-display); letter-spacing: .18em; text-transform: uppercase; opacity: .75; transition: opacity .3s; }
.prov-plot a text.sub { font: italic 300 11px var(--f-editorial); letter-spacing: 0; text-transform: none; fill: var(--gold-lt); opacity: 0; }
.prov-plot a:hover text, .prov-plot a:focus-visible text { opacity: 1; }
.prov-plot a:hover .dot, .prov-plot a:focus-visible .dot { r: 7; }

.atelier-ring { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; }

.special-card { position: relative; display: grid; gap: 14px; align-content: start; padding: 0 0 32px; border: 1px solid var(--line); background: var(--bg-raised); transition: border-color .6s, transform .6s var(--ease-lux); }
.special-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.special-card > :not(.sc-art) { padding-inline: 28px; }
.special-card .sc-art { display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(60% 70% at 50% 55%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 70%), var(--midnight-2); margin-bottom: 14px; overflow: hidden; }
.special-card .sc-art svg { width: 30%; height: auto; aspect-ratio: 1; transition: transform 1.6s var(--ease-lux); }
.special-card:hover .sc-art svg { transform: scale(1.08) rotate(-6deg); }
.special-card strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .08em; }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise > div { display: grid; gap: 8px; padding: 8px 28px; }
.promise > div + div { border-left: 1px solid var(--line); }
.promise strong { font-family: var(--f-display); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--gold-lt); }
.promise span { color: var(--text-soft); font-size: .92rem; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr 1fr; gap: 28px 0; } .promise > div:nth-child(3) { border-left: 0; } }

.nl-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 520px; margin: 12px auto 0; width: 100%; }
.nl-form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .nl-form { grid-template-columns: 1fr; } }

/* Shop on the homepage */
.home-shop-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.home-shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .home-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .home-shop-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .home-shop-grid { gap: 12px; }
  .home-shop-grid .pc-body { padding: 14px 14px 16px; gap: 4px; }
  .home-shop-grid .pc-name { font-size: .85rem; }
  .home-shop-grid .pc-origin { font-size: .9rem; }
  .home-shop-grid .pc-spec { display: none; }
  .home-shop-grid .pc-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .home-shop-grid .pc-add { width: 100%; padding: 0 8px; letter-spacing: .2em; }
  .home-shop-grid .pc-badge { top: 8px; left: 8px; padding: 4px 8px; font-size: .55rem; }
  .home-shop-grid .pc-price { white-space: normal; font-size: .85rem; }
}

.prov-list { display: none; }
@media (max-width: 760px) {
  .prov-plot a text { display: none; }
  .prov-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 20px; list-style: none; }
  .prov-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .85rem; color: var(--text-soft); }
  .prov-list i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 1px solid var(--gold); flex: none; }
}

/* The Eight: scale with the screen's height too, so nothing is clipped on laptops,
   short browser windows or zoomed-in pages */
.eight-pin { padding-top: calc(var(--header-h) + min(24px, 2vh)); padding-bottom: min(56px, 6vh); }
.eight-head .h1 { font-size: min(var(--fs-h1), 9vh); }
.eight-stage { width: min(46vw, 640px, 70vh); top: 55%; }
.eight-panel .inner { gap: min(16px, 1.8vh); }
.eight-panel .num { font-size: clamp(2.5rem, 11vh, 8rem); }
.eight-panel h3 { font-size: min(var(--fs-h1), 8.5vh); }
.eight-panel .origin { font-size: min(1.4rem, 3vh); }
.eight-dots { bottom: min(32px, 3vh); }
@media (max-height: 760px) and (min-width: 861px) {
  .eight-panel .num { display: none; }
  .eight-panel p { font-size: .95rem; line-height: 1.6; }
  .eight-count { margin-bottom: 0; }
}
@media (max-height: 560px) and (min-width: 861px) {
  .eight-panel p { display: none; }
}
/* Hero: keep the 3D gem inside the screen on short windows */
@media (min-width: 861px) {
  .hero-gem { --hg: min(52vw, 800px, 92vh); width: var(--hg); right: calc(-9vw + (52vw - var(--hg)) * .6); }
}
/* Hero copy: keep the buttons above the fold on short laptop screens */
@media (min-width: 861px) {
  .hero-copy { gap: min(28px, 3.2vh); padding-top: calc(var(--header-h) - 8px); }
  .hero-copy .display { font-size: min(var(--fs-display), 13.5vh); }
  .hero-copy .lead { font-size: min(1.35rem, 3.2vh); }
  .hero-cue { bottom: min(28px, 2.5vh); }
}
@media (min-width: 861px) and (max-height: 620px) { .hero-cue { display: none; } }

/* ── The Worlds ── */
.worlds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(32px, 5vw, 64px); }
.world { position: relative; display: grid; align-content: end; gap: 12px; min-height: clamp(420px, 46vw, 600px); padding: clamp(24px, 3vw, 40px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  background: radial-gradient(120% 80% at 50% 18%, color-mix(in srgb, var(--w) 34%, transparent), transparent 62%), linear-gradient(180deg, var(--w2), var(--midnight) 88%);
  transition: border-color .5s var(--ease-lux), transform .8s var(--ease-lux); }
.world::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--w) 18%, transparent) 50%, transparent 70%); transform: translateX(-100%); transition: transform 1.4s var(--ease-lux); }
.world:hover, .world:focus-visible { border-color: var(--line-strong); transform: translateY(-6px); }
.world:hover::after, .world:focus-visible::after { transform: translateX(100%); }
.world-art { position: absolute; left: 50%; top: 34%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--w) 45%, transparent)); }
.world-art .gem-icon, .world-art .crystal { width: 100%; height: 100%; animation: world-float 7s ease-in-out infinite; }
.world:nth-child(2) .world-art > * { animation-delay: -2.3s; } .world:nth-child(3) .world-art > * { animation-delay: -4.6s; }
.crystal path { fill: color-mix(in srgb, var(--w) 55%, transparent); stroke: color-mix(in srgb, var(--w) 85%, white); stroke-width: 1.1; stroke-linejoin: round; }
.crystal .matrix { fill: none; stroke: var(--line-strong); }
@keyframes world-float { 50% { transform: translateY(-10px) rotate(2deg); } }
.world strong { font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem)/1.1 var(--f-display); letter-spacing: .06em; }
.world .eyebrow { color: color-mix(in srgb, var(--w) 70%, var(--gold-lt)); }
.world-copy { color: var(--text-soft); font-size: .95rem; line-height: 1.6; max-width: 34ch; }
.worlds-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: clamp(24px, 3vw, 40px); }
.worlds-more a { display: inline-flex; align-items: center; min-height: 44px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.worlds-more a:hover { color: var(--gold-lt); border-color: var(--gold); }

/* ── Chooser ── */
.chooser-form { display: grid; gap: 22px; max-width: 920px; margin: clamp(24px, 4vw, 48px) auto 0; }
.chooser-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.chooser-form legend { width: 100%; text-align: center; margin-bottom: 10px; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-lt); }
.chooser-form label { position: relative; cursor: pointer; }
.chooser-form input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chooser-form label span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); font-size: .86rem; color: var(--text-soft); transition: border-color .3s, color .3s, background .3s; }
.chooser-form input:checked + span { border-color: var(--gold); color: var(--midnight); background: var(--gold-lt); }
.chooser-form input:focus-visible + span { outline: 2px solid var(--gold-lt); outline-offset: 2px; }
.chooser-go { display: grid; justify-items: center; gap: 10px; margin-top: 6px; }

/* ── Packaging: a presentation box drawn in CSS 3D; the lid lifts on its back hinge ── */
.pack-stage { position: relative; z-index: 1; aspect-ratio: 1; max-width: 520px; width: 100%; margin: auto; perspective: 1600px; display: grid; place-items: center; }
.pack-box { --s: min(56vw, 280px); --h: calc(var(--s) * .3); position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(-34deg); animation: pack-turn 24s linear infinite; }
.pack-box i { position: absolute; display: block; backface-visibility: visible; }
.pack-base, .pack-lid { position: absolute; inset: 0; transform-style: preserve-3d; }
.pack-base .d { inset: 0; background: #0c1d15; box-shadow: 0 0 90px 10px rgba(0,0,0,.55); }
.pack-base .f, .pack-base .b { left: 0; width: 100%; height: var(--h); background: linear-gradient(180deg, #2c6048, #163527); border: 1px solid rgba(201,168,76,.55); }
.pack-base .l, .pack-base .r { top: 0; width: var(--h); height: 100%; background: linear-gradient(90deg, #163527, #2a5a43); border: 1px solid rgba(201,168,76,.55); }
.pack-base .f { top: 100%; transform-origin: top; transform: rotateX(90deg); }
.pack-base .b { top: 0; transform-origin: top; transform: rotateX(90deg); }
.pack-base .l { left: 0; transform-origin: left; transform: rotateY(-90deg); }
.pack-base .r { left: 100%; transform-origin: left; transform: rotateY(-90deg); }
.pack-cushion { position: absolute; inset: 8%; transform: translateZ(calc(var(--h) * .55)); background: radial-gradient(circle at 50% 42%, #f6f0e2, #d6c9aa 70%, #bfae88); display: grid; place-items: center; box-shadow: inset 0 0 24px rgba(0,0,0,.25); transform-style: preserve-3d; }
.pack-cushion .gem-icon { width: 44%; height: 44%; transform: translateZ(14px); filter: drop-shadow(0 8px 6px rgba(0,0,0,.35)); }
.pack-lid { transform: translateZ(calc(var(--h) + 1px)); transition: transform 1.8s var(--ease-lux); }
.pack-lid .t { inset: -2%; background: linear-gradient(135deg, #2f654c, #173a2a); border: 1px solid rgba(226,201,126,.75); box-shadow: inset 0 0 0 7px rgba(201,168,76,.14); display: grid; place-items: center; }
.pack-lid .t .wordmark { font-size: calc(var(--s) * .075); letter-spacing: .35em; color: var(--gold-lt); }
.pack-lid .f, .pack-lid .b, .pack-lid .l, .pack-lid .r { display: none; }
.pack-lid { transform-origin: 50% 0; }
.pack-stage.is-open .pack-lid, .pack-stage:hover .pack-lid { transform: translateZ(calc(var(--h) + 1px)) rotateX(-115deg); }
@keyframes pack-turn { 0%, 100% { transform: rotateX(60deg) rotateZ(-34deg); } 50% { transform: rotateX(56deg) rotateZ(-10deg); } }
.pack-card { position: absolute; right: 4%; bottom: 8%; padding: 16px 20px; background: var(--ivory); color: var(--ink); transform: rotate(-6deg); box-shadow: 0 20px 40px rgba(0,0,0,.35); font-family: var(--f-editorial); display: grid; gap: 2px; }
.pack-card span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pack-card em { font-size: 1.4rem; }
.pack-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: p; }
.pack-list li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.pack-list li::before { content: counter(p, upper-roman); grid-row: span 2; font-family: var(--f-display); color: var(--gold); }
.pack-list strong { font-weight: 500; } .pack-list span { color: var(--text-soft); font-size: .92rem; }

/* ── The VERDAAN way ── */
.way .card { display: grid; align-content: start; gap: 12px; }
.way-n { font: 400 2rem/1 var(--f-display); color: var(--gold); opacity: .8; }

@media (max-width: 900px) {
  .worlds-grid { grid-template-columns: minmax(0, 1fr); }
  .world { min-height: 360px; }
  .world-art { width: 34%; top: 30%; }
  .pack-stage { max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-art .gem-icon, .world-art .crystal, .pack-box { animation: none; }
  .world, .world::after, .pack-lid { transition: none; }
}
