/* Homepage v5 (2026-11-13): store buttons lead the first screen, the
   hand-drawn craft and the five-star reviews follow. Loaded after site.css
   and chrome.css on the homepage only. */

/* ---------- First screen: the store buttons are the point ---------- */
.hero .hero-stores {
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.hero .hero-stores a {
  min-width: 200px;
  min-height: 68px;
  padding: 0.7rem 1.2rem 0.7rem 3.7rem;
  border-radius: 14px;
  box-shadow: 0 14px 34px -14px rgba(227, 185, 108, 0.55);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.hero .hero-stores a:hover,
.hero .hero-stores a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -14px rgba(227, 185, 108, 0.75);
}
.hero .hero-stores small {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.hero .hero-stores strong {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.hero .hero-stores .store-icon {
  left: 1.2rem;
  width: 1.8rem;
  height: 1.8rem;
}
/* A slow shine across the primary button, so the eye lands on it. */
.hero .hero-stores a[data-store-priority='primary']::after,
.hero .hero-stores:not(.has-primary) a:first-child::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  animation: store-shine 5.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes store-shine {
  0%,
  62% {
    transform: translateX(-120%);
  }
  82%,
  100% {
    transform: translateX(120%);
  }
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  border: 1px solid rgba(227, 185, 108, 0.32);
  border-radius: 999px;
  color: #e5e8dc;
  background: rgba(4, 10, 12, 0.55);
  font-size: 0.86rem;
  line-height: 1.3;
  text-align: start;
  backdrop-filter: blur(6px);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.hero-proof:hover,
.hero-proof:focus-visible {
  border-color: var(--gold);
  background: rgba(4, 10, 12, 0.75);
}
.proof-stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.proof-text b {
  color: var(--cream);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.proof-stores {
  display: block;
  color: #a9b6a6;
  font-size: 0.76rem;
}
.hero-handmade {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.85rem;
  color: var(--gold);
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(227, 185, 108, 0.35);
  text-underline-offset: 4px;
}
.hero-handmade:hover,
.hero-handmade:focus-visible {
  text-decoration-color: var(--gold);
}
.hero-handmade svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero .hero-promise {
  margin-top: 0.9rem;
}

@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 112px;
    gap: 36px;
  }
  .hero-copy {
    min-width: 0;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
    margin-bottom: 1rem;
  }
  .hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .hero-proof,
  .hero-handmade {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-handmade {
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 620px) {
  .hero .hero-stores {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero .hero-stores a {
    min-width: 0;
    min-height: 64px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 4.2rem;
  }
  .hero .hero-stores a[data-store-priority='primary'] {
    order: -1;
    min-height: 70px;
    color: var(--night);
    background: var(--gold);
  }
  .hero .hero-stores.has-primary a:not([data-store-priority='primary']) {
    min-height: 56px;
    color: var(--cream);
    background: transparent;
    border: 1px solid rgba(247, 240, 221, 0.4);
    box-shadow: none;
  }
  .hero .hero-stores .store-icon {
    left: 1.5rem;
  }
}

/* ---------- Made by hand: a scene you can take apart ---------- */
.craft5 {
  position: relative;
  color: var(--cream);
  background:
    radial-gradient(
      ellipse 70% 45% at 50% 58%,
      rgba(127, 158, 92, 0.18),
      transparent 70%
    ),
    #010508;
  padding-top: 96px;
}
.craft5-intro {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.craft5-intro h2 {
  margin: 0.8rem 0 1rem;
  color: var(--cream);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
}
.craft5-intro > p:not(.eyebrow) {
  max-width: 36rem;
  margin: 0 auto;
  color: #d5ddd0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.layers {
  --spread: 0;
  --px: 0px;
  container-type: inline-size;
  max-width: 1120px;
  margin: 2.75rem auto 0;
}
.layers-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  perspective: 1500px;
  perspective: 134cqw;
  perspective-origin: 50% 38%;
  box-shadow:
    0 0 0 1px rgba(227, 185, 108, calc(0.22 - var(--spread) * 0.22)),
    0 40px 80px -40px rgba(0, 0, 0, 0.9);
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(227, 185, 108, calc(var(--spread) * 0.08)),
    transparent 70%
  );
  touch-action: pan-y;
}
.layers-viewport::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(transparent, #010508);
  opacity: calc(1 - var(--spread) * 1.4);
  pointer-events: none;
}
.layers-scene {
  position: relative;
  aspect-ratio: 1290 / 720;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--spread) * 8deg))
    rotateY(calc(var(--spread) * -50deg)) scale(calc(1 - var(--spread) * 0.45));
}
.layer {
  position: absolute;
  inset: 0 -6%;
  transform-style: preserve-3d;
  transform: translate3d(
    calc(
      var(--px) * var(--depth) + (var(--depth) - 2.5) * var(--spread) * 60px
    ),
    0,
    calc((var(--depth) - 2.5) * var(--spread) * 260px)
  );
  /* The same spread at any width: measured against the scene, not pixels. */
  transform: translate3d(
    calc(
      var(--px) * var(--depth) + (var(--depth) - 2.5) * var(--spread) * 5.4cqw
    ),
    0,
    calc((var(--depth) - 2.5) * var(--spread) * 23cqw)
  );
  will-change: transform;
}
.layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layer::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(227, 185, 108, calc(var(--spread) * 0.95));
  border-radius: 6px;
  background: rgba(227, 185, 108, calc(var(--spread) * 0.035));
  pointer-events: none;
}
.layer-sky {
  background: linear-gradient(#7fa9ad 0%, #c9d3a4 45%, #e6dfb2 70%);
}
.layer-sky::after {
  display: none;
}
.layer-tag {
  position: absolute;
  top: 10px;
  left: calc(6% / 1.12 + 10px);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--night);
  background: var(--gold);
  font:
    600 0.9rem 'DM Sans',
    sans-serif;
  opacity: calc(var(--spread) * 1.6 - 0.4);
  transform: translateZ(1px);
}
.layers-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  color: #d5ddd0;
  font-size: 0.92rem;
}
.layers-control label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.layers-control label::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  box-shadow:
    4px -4px 0 -1.5px #010508,
    4px -4px 0 0 var(--gold);
  transform: skewY(-12deg);
}
.layers-control input[type='range'] {
  width: min(320px, 55vw);
  height: 28px;
  margin: 0;
  background: transparent;
  accent-color: var(--gold);
  cursor: grab;
  -webkit-appearance: none;
  appearance: none;
}
.layers-control input[type='range']:active {
  cursor: grabbing;
}
.layers-control input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--gold) calc(var(--spread) * 100%),
    rgba(247, 240, 221, 0.22) calc(var(--spread) * 100%)
  );
}
.layers-control input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(247, 240, 221, 0.22);
}
.layers-control input[type='range']::-moz-range-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--gold);
}
.layers-control input[type='range']::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 3px solid #010508;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 18px rgba(227, 185, 108, 0.6);
  -webkit-appearance: none;
  appearance: none;
}
.layers-control input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #010508;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 18px rgba(227, 185, 108, 0.6);
}
.layers-control input[type='range']:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 99px;
}
.craft5-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  max-width: 880px;
  margin: 2.5rem auto 0;
  text-align: center;
}
.craft5 .craft-credit {
  max-width: 30rem;
  margin: 0;
  color: #aeb9a8;
  font-size: 0.88rem;
  line-height: 1.6;
}
.craft5 .film-open {
  color: var(--cream);
  border-color: rgba(247, 240, 221, 0.45);
}
.craft5 .film-open:hover,
.craft5 .film-open:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Reviews: paper between two torn edges ---------- */
.reviews {
  position: relative;
  z-index: 1;
  color: #11201a;
  background: #f3ead7;
  border-top: 60px solid transparent;
  border-image-source: url('/site-assets/home/craft-surface-v4.webp');
  border-image-slice: 180 0 0 0 fill;
  border-image-width: 60px 0 0 0;
  border-image-repeat: stretch;
  padding-top: 72px;
}
.reviews::after {
  content: '';
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -60px;
  left: 0;
  height: 0;
  border-top: 60px solid transparent;
  border-image-source: url('/site-assets/home/craft-surface-v4.webp');
  border-image-slice: 180 0 0 0 fill;
  border-image-width: 60px 0 0 0;
  border-image-repeat: stretch;
  transform: rotate(180deg);
  pointer-events: none;
}
.reviews-head {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.reviews .eyebrow {
  color: #60430f;
}
.reviews-stars {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin: 1rem 0 0.25rem;
  color: #c9962f;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}
.reviews-stars span {
  display: inline-block;
}
.js .reviews-stars span {
  opacity: 0.18;
  transform: scale(0.6);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.js .reviews.is-visible .reviews-stars span {
  opacity: 1;
  transform: none;
}
.reviews.is-visible .reviews-stars span:nth-child(2) {
  transition-delay: 0.12s;
}
.reviews.is-visible .reviews-stars span:nth-child(3) {
  transition-delay: 0.24s;
}
.reviews.is-visible .reviews-stars span:nth-child(4) {
  transition-delay: 0.36s;
}
.reviews.is-visible .reviews-stars span:nth-child(5) {
  transition-delay: 0.48s;
}
.reviews h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: #11201a;
}
.reviews-number {
  font:
    500 clamp(4.2rem, 11vw, 7.5rem) / 0.95 'Cormorant Garamond',
    serif;
  font-variant-numeric: lining-nums tabular-nums;
  color: #11201a;
}
.reviews-label {
  margin-top: 0.3rem;
  font:
    400 clamp(1.5rem, 3vw, 2.1rem) / 1.15 'Cormorant Garamond',
    serif;
}
.reviews-stores {
  margin: 0.5rem 0 0;
  color: #526258;
}
.reviews-note {
  margin: 0.4rem 0 0;
  color: #7a6a4a;
  font-size: 0.88rem;
}
.reviews-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1180px;
  margin: 2.5rem auto 0;
}
.reviews-track {
  display: flex;
  flex: 1 1 auto;
  gap: 1.25rem;
  min-width: 0;
  margin: 0;
  padding: 0.75rem 0.25rem 1.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.reviews-track::-webkit-scrollbar {
  display: none;
}
.reviews-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.reviews-track:focus-visible {
  outline: 2px solid #80601f;
  outline-offset: 4px;
  border-radius: 12px;
}
.review-card {
  display: flex;
  flex: 0 0 calc((100% - 2.5rem) / 3);
  flex-direction: column;
  min-height: 260px;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid rgba(128, 96, 31, 0.18);
  border-radius: 16px;
  background: linear-gradient(160deg, #fffaf0 0%, #f8efdc 100%);
  box-shadow: 0 18px 36px -24px rgba(60, 40, 10, 0.55);
  scroll-snap-align: start;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.review-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 24px 40px -22px rgba(60, 40, 10, 0.6);
}
.review-stars {
  margin: 0;
  color: #c9962f;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.review-card blockquote {
  flex: 1 1 auto;
  margin: 0.8rem 0 1rem;
}
.review-card blockquote p {
  margin: 0;
  color: #1d2b24;
  font:
    400 1.22rem / 1.45 'Cormorant Garamond',
    serif;
}
.review-card blockquote p::before {
  content: '“';
}
.review-card blockquote p::after {
  content: '”';
}
.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(128, 96, 31, 0.18);
  font-size: 0.85rem;
}
.review-author {
  color: #3b4a40;
  font-weight: 600;
}
.review-translated {
  display: none;
  color: #8a7650;
  font-size: 0.75rem;
  font-style: italic;
}
.review-card.is-translated .review-translated {
  display: inline;
}
.reviews-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(17, 32, 26, 0.35);
  border-radius: 50%;
  color: #11201a;
  background: #fbf6ea;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}
.reviews-arrow .control-icon {
  filter: none;
}
.reviews-arrow:hover,
.reviews-arrow:focus-visible {
  border-color: #80601f;
  background: #fff;
  outline: none;
}
.reviews-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
html[dir='rtl'] .reviews-arrow .control-icon {
  transform: scaleX(-1);
}
/* The gallery now follows the paper; give it room under the torn edge. */
.reviews + .gallery {
  padding-top: 112px;
}

@media (max-width: 1023px) {
  .review-card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
}
@media (max-width: 899px) {
  .craft5 {
    padding-top: 72px;
  }
  .layers {
    margin-top: 2rem;
  }
  .layers-viewport {
    border-radius: 12px;
    margin: 0 -6px;
  }
  .layer-tag {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  .layers-control {
    flex-direction: column;
    gap: 0.4rem;
  }
  .layers-control input[type='range'] {
    width: min(360px, 86vw);
  }
  .reviews {
    border-top-width: 48px;
    border-image-width: 48px 0 0 0;
    padding-top: 56px;
  }
  .reviews::after {
    bottom: -48px;
    border-top-width: 48px;
    border-image-width: 48px 0 0 0;
  }
  .reviews-rail {
    margin-right: -22px;
    margin-left: -22px;
  }
  .reviews-arrow {
    display: none;
  }
  .reviews-track {
    gap: 0.9rem;
    padding-right: 22px;
    padding-left: 22px;
    scroll-padding-inline: 22px;
  }
  .review-card {
    flex-basis: min(84%, 360px);
    min-height: 240px;
  }
  .reviews + .gallery {
    padding-top: 88px;
  }
}
/* Paper no longer sits above "how it works": no torn edge there. */
.how {
  padding-top: 112px;
}
.how::before {
  display: none;
}
@media (max-width: 899px) {
  .how {
    padding-top: 72px;
  }
}

/* ---------- Reviews: how far along the rail ---------- */
.reviews-progress {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 420px;
  margin: 0.5rem auto 0;
}
.reviews-progress-bar {
  flex: 1 1 auto;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(17, 32, 26, 0.15);
}
.reviews-progress-bar span {
  display: block;
  width: calc(var(--p, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: #80601f;
  transition: width 0.3s ease;
}
html[dir='rtl'] .reviews-progress-bar span {
  margin-left: auto;
}
.reviews-count {
  min-width: 4.5em;
  color: #526258;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

/* ---------- How it works: three stops on one trail ---------- */
.how6 .section-intro {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.how6 .how-trail {
  --trail: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0;
  list-style: none;
}
.how6 .how-trail::before,
.how6 .how-trail::after {
  content: '';
  position: absolute;
  top: 37px;
  right: 16.6%;
  left: 16.6%;
  height: 2px;
}
.how6 .how-trail::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(227, 185, 108, 0.4) 0 8px,
    transparent 8px 16px
  );
}
.how6 .how-trail::after {
  background: var(--gold);
  transform: scaleX(var(--trail));
  transform-origin: left;
}
html[dir='rtl'] .how6 .how-trail::after {
  transform-origin: right;
}
.how6 .how-trail li {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}
.how-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.1rem;
  border: 1.5px solid rgba(227, 185, 108, 0.5);
  border-radius: 50%;
  color: var(--gold);
  background: #0b1512;
  transition:
    background 0.45s ease,
    color 0.45s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s ease;
}
.how6 .how-trail li.is-lit .how-icon {
  color: #010508;
  background: var(--gold);
  box-shadow:
    0 0 0 7px rgba(227, 185, 108, 0.14),
    0 0 34px rgba(227, 185, 108, 0.45);
  transform: scale(1.06);
}
.how-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.how-icon svg.is-fill {
  fill: currentColor;
  stroke: none;
}
.how6 .how-trail h3 {
  margin: 0 0 0.4rem;
  color: var(--cream);
  font:
    400 clamp(1.5rem, 2.4vw, 1.85rem) / 1.15 'Cormorant Garamond',
    serif;
}
.how6 .how-trail p {
  max-width: 17rem;
  margin: 0 auto;
  color: #c9d2c4;
  line-height: 1.55;
}

/* ---------- Features: pick one and watch it work ---------- */
.features6 .section-intro {
  max-width: 42rem;
}
.feature-show {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1120px;
  margin: 2.25rem auto 0;
}
.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.feature-tab {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.1rem 1.25rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(128, 96, 31, 0.2);
  border-radius: 14px;
  color: #11201a;
  background: rgba(255, 250, 240, 0.45);
  text-align: start;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.feature-tab:hover {
  background: rgba(255, 250, 240, 0.85);
}
.feature-tab:focus-visible {
  outline: 2px solid #80601f;
  outline-offset: 3px;
}
.feature-tab[aria-selected='true'] {
  border-color: rgba(128, 96, 31, 0.45);
  background: #fffaf0;
  box-shadow: 0 18px 30px -22px rgba(60, 40, 10, 0.6);
}
.feature-tab-title {
  display: block;
  font:
    400 clamp(1.3rem, 2vw, 1.55rem) / 1.15 'Cormorant Garamond',
    serif;
}
.feature-tab-body {
  display: block;
  max-height: 0;
  overflow: hidden;
  color: #526258;
  line-height: 1.55;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin 0.4s ease;
}
.feature-tab[aria-selected='true'] .feature-tab-body {
  max-height: 9em;
  margin-top: 0.45rem;
  opacity: 1;
}
.feature-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #80601f;
  transform: scaleX(0);
  transform-origin: left;
}
html[dir='rtl'] .feature-tab-progress {
  transform-origin: right;
}
.feature-show.is-auto .feature-tab[aria-selected='true'] .feature-tab-progress {
  animation: tab-progress 6s linear forwards;
}
@keyframes tab-progress {
  to {
    transform: scaleX(1);
  }
}
.feature-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 38%, #22342a 0%, #0b1512 72%);
  box-shadow: 0 30px 60px -36px rgba(20, 14, 4, 0.85);
}
.feature-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.feature-panel[hidden] {
  display: none;
}
.quest-deck {
  position: relative;
  width: min(80%, 460px);
  aspect-ratio: 640 / 422;
  cursor: pointer;
}
.quest-deck img {
  --pos: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5));
  transform: translate(calc(var(--pos) * 16px), calc(var(--pos) * -12px))
    rotate(calc(var(--pos) * 2.6deg - 3deg));
  z-index: calc(10 - var(--pos));
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.quest-deck img.is-leaving {
  transform: translate(-60%, 18%) rotate(-14deg);
}
.medal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(88%, 470px);
}
.medal-grid img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
  opacity: 0;
  transform: scale(0.4) rotate(-20deg);
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--n) * 80ms);
}
.feature-panel.is-active .medal-grid img {
  opacity: 1;
  transform: none;
}
.feature-panel.is-active .medal-grid img:hover {
  transform: scale(1.12) rotate(-6deg);
  transition-delay: 0s;
}
.friend-race {
  display: grid;
  gap: 1.1rem;
  width: min(86%, 440px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.friend-race li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 0.9rem;
}
.friend-race img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(227, 185, 108, 0.35);
}
.race-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(247, 240, 221, 0.12);
}
.race-bar span {
  display: block;
  width: calc(var(--w) * 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a6a2a, var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--n) * 140ms);
}
html[dir='rtl'] .race-bar span {
  margin-left: auto;
  transform-origin: right;
}
.feature-panel.is-active .race-bar span {
  transform: scaleX(1);
}
.friend-race b {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}
.feature-panel[data-panel='sound'] {
  align-content: center;
}
.sound-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #010508;
  background: var(--gold);
  box-shadow:
    0 0 0 12px rgba(227, 185, 108, 0.12),
    0 0 44px rgba(227, 185, 108, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.sound-toggle:hover {
  transform: scale(1.05);
}
.sound-toggle:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 6px;
}
.sound-toggle svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}
.sound-toggle .sound-pause,
.sound-toggle[aria-pressed='true'] .sound-play {
  display: none;
}
.sound-toggle[aria-pressed='true'] .sound-pause {
  display: block;
}
.sound-bars {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 90px;
}
.sound-bars span {
  flex: 1 1 0;
  height: 10%;
  border-radius: 3px;
  background: rgba(227, 185, 108, 0.5);
  animation: bar-idle 2.6s ease-in-out infinite;
  animation-delay: calc(var(--n) * -0.17s);
}
.sound-bars.is-live span {
  animation: none;
  transition: height 0.09s linear;
}
@keyframes bar-idle {
  0%,
  100% {
    height: 8%;
  }
  50% {
    height: 28%;
  }
}

/* ---------- Store bar pinned while scrolling, on every screen ---------- */
.home-sticky {
  position: fixed;
  z-index: 40;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(560px, calc(100% - 20px));
  padding: 0.55rem 0.55rem 0.55rem 0.7rem;
  border: 1px solid rgba(227, 185, 108, 0.35);
  border-radius: 18px;
  color: var(--cream);
  background: rgba(4, 10, 12, 0.92);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  transform: translate(-50%, calc(100% + 34px));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.home-sticky.is-shown {
  transform: translate(-50%, 0);
}
html[dir='rtl'] .home-sticky {
  right: auto;
}
.home-sticky > img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.home-sticky-copy {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font:
    600 1.15rem 'Cormorant Garamond',
    serif;
}
.home-sticky a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 12px;
  color: var(--night);
  background: var(--gold);
  font-size: 0.95rem;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.home-sticky a:hover,
.home-sticky a:focus-visible {
  transform: translateY(-2px);
}
.home-sticky a + a {
  color: var(--cream);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(247, 240, 221, 0.4);
}
.home-sticky .store-icon {
  position: static;
  width: 1.15rem;
  height: 1.15rem;
  transform: none;
}
.home-sticky[data-native] a {
  display: none;
}
.home-sticky[data-native='ios'] a[data-store='apple'],
.home-sticky[data-native='android'] a[data-store='google'] {
  display: inline-flex;
  color: var(--night);
  background: var(--gold);
  box-shadow: none;
}
body.dialog-open .home-sticky,
body.mobile-menu-open .home-sticky {
  transform: translate(-50%, calc(100% + 34px));
}
@media (max-width: 420px) {
  .home-sticky a {
    padding: 0 0.75rem;
  }
  .home-sticky:not([data-native]) .home-sticky-copy {
    display: none;
  }
}

/* ---------- Seams: every picture fades into its neighbours ---------- */
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 200px;
  background: linear-gradient(rgba(1, 5, 8, 0), #010508);
  pointer-events: none;
}
.guides {
  position: relative;
  z-index: 1;
  background: #f3ead7;
  border-top: 60px solid transparent;
  border-image-source: url('/site-assets/home/craft-surface-v4.webp');
  border-image-slice: 180 0 0 0 fill;
  border-image-width: 60px 0 0 0;
  border-image-repeat: stretch;
}
.guides .eyebrow {
  color: #60430f;
}
.guides::after {
  content: '';
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -60px;
  left: 0;
  height: 0;
  border-top: 60px solid transparent;
  border-image-source: url('/site-assets/home/craft-surface-v4.webp');
  border-image-slice: 180 0 0 0 fill;
  border-image-width: 60px 0 0 0;
  border-image-repeat: stretch;
  transform: rotate(180deg);
  pointer-events: none;
}
.closing {
  padding-top: 150px;
  padding-bottom: 120px;
  background:
    linear-gradient(
      #010508 0%,
      rgba(1, 5, 8, 0) 30%,
      rgba(1, 5, 8, 0) 60%,
      #010508 100%
    ),
    url('/site-assets/home/atmosphere-v4.webp') center / cover no-repeat,
    #010508;
}
footer {
  background: #010508;
}

@media (max-width: 899px) {
  .how6 .how-trail {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 30rem;
    margin-top: 2.25rem;
  }
  .how6 .how-trail::before,
  .how6 .how-trail::after {
    top: 38px;
    bottom: 38px;
    right: auto;
    left: 37px;
    width: 2px;
    height: auto;
  }
  html[dir='rtl'] .how6 .how-trail::before,
  html[dir='rtl'] .how6 .how-trail::after {
    right: 37px;
    left: auto;
  }
  .how6 .how-trail::before {
    background: repeating-linear-gradient(
      180deg,
      rgba(227, 185, 108, 0.4) 0 8px,
      transparent 8px 16px
    );
  }
  .how6 .how-trail::after {
    transform: scaleY(var(--trail));
    transform-origin: top;
  }
  .how6 .how-trail li {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 1.1rem;
    align-items: center;
    text-align: start;
  }
  .how-icon {
    grid-row: span 2;
    margin: 0;
  }
  .how6 .how-trail h3 {
    align-self: end;
    margin: 0;
  }
  .how6 .how-trail p {
    align-self: start;
    max-width: none;
    margin: 0.25rem 0 0;
  }
  .feature-show {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .feature-stage {
    order: -1;
    min-height: 300px;
  }
  .medal-grid {
    gap: 0.6rem;
  }
  .guides {
    border-top-width: 48px;
    border-image-width: 48px 0 0 0;
  }
  .guides::after {
    bottom: -48px;
    border-top-width: 48px;
    border-image-width: 48px 0 0 0;
  }
  .closing {
    padding-top: 120px;
  }
}

/* ---------- Gentle reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-stores a::after {
    animation: none;
    display: none;
  }
  .js .reveal,
  .js .reviews-stars span {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .review-card,
  .home-sticky,
  .how-icon,
  .medal-grid img,
  .race-bar span,
  .quest-deck img {
    transition: none;
  }
  .sound-bars span {
    animation: none;
  }
  .reviews-track {
    scroll-behavior: auto;
  }
}
.craft5 .film-play .control-icon {
  filter: invert(90%) sepia(20%);
}
