/* A quieter editorial layer over the existing components. */
.nav-links {
  gap: clamp(20px, 2.2vw, 34px);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-shop {
  padding-inline: 1.25rem;
  background: var(--accent);
  border-color: var(--accent);
  color: #050a13;
}

.nav-shop:hover,
.nav-shop:focus-visible {
  background: var(--accent-soft);
}

[data-theme="light"] :is(.btn-primary, .nav-shop, .cart-badge, .skip-link, .btn-add,
  .product-page__next-icon, .creations__play, .gallery-page__play) {
  color: #f6f1e7;
}

html:has(.hero) {
  scroll-snap-type: none;
}

html:has(.hero) .section {
  min-height: 0;
  padding-block: clamp(88px, 9vw, 136px);
  scroll-snap-align: none;
}

html:has(.hero) .section-title {
  max-width: 750px;
  font-size: clamp(3rem, 5.2vw, 5.35rem);
  line-height: 1.03;
}

html:has(.hero) .lead {
  color: var(--text);
}

.hero {
  min-height: 100svh;
  padding-block: 132px 100px;
  background-position: center;
  scroll-snap-align: none;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 19, 0.92) 0%, rgba(5, 10, 19, 0.72) 36%, rgba(5, 10, 19, 0.22) 77%),
    linear-gradient(0deg, rgba(5, 10, 19, 0.5), transparent 42%);
  content: "";
}

.hero-grid {
  display: block;
}

.hero-copy {
  max-width: 690px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-copy::before,
.hero-copy::after {
  display: none;
}

.hero-copy h1 {
  color: #f6f1e7;
  font-size: clamp(5rem, 9.1vw, 9rem);
  line-height: 0.94;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.hero .eyebrow,
.hero-tag {
  color: #e5c676;
}

.hero-tag {
  margin-top: 18px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.hero-lead {
  max-width: 520px;
  color: #e8eef5;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}

.hero .btn-secondary {
  border-color: rgba(246, 241, 231, 0.68);
  background: rgba(5, 10, 19, 0.28);
  color: #f6f1e7;
}

.hero-signature {
  position: absolute;
  z-index: 2;
  right: max(40px, calc((100vw - 1200px) / 2));
  bottom: 36px;
  margin: 0;
  color: #f6f1e7;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px #050a13;
}

.hero-signature em {
  color: #e5c676;
}

.story-grid {
  gap: clamp(40px, 7vw, 110px);
}

.story .section-title {
  font-size: clamp(2.8rem, 4.6vw, 4.6rem);
}

.story-hills-fallback {
  opacity: 0.16;
}

.story .glsl-hills {
  opacity: 0.12;
}

.story-visual {
  min-height: 0;
  max-height: none;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.story-visual > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: 62% center;
  opacity: 1;
}

.story-visual::after {
  position: absolute;
  inset: 40% 0 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 10, 19, 0.72), transparent);
  content: "";
}

.story-origin-note {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 27px;
  left: 28px;
  color: #f6f1e7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.45;
  text-transform: uppercase;
}

.story-origin-note span {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

html:has(.hero) section.section.products {
  padding-block: clamp(88px, 9vw, 136px);
}

.product-grid {
  max-width: 980px;
  gap: 30px;
}

.product-card,
.testimonial-card {
  border-radius: 10px;
}

.product-card img {
  max-height: 360px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  padding: 28px;
}

.product-card h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.12;
}

.product-foot {
  min-height: 50px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.product-foot .btn {
  min-width: 130px;
}

.product-price {
  color: var(--text-strong);
  font-size: 0.94rem;
  font-weight: 600;
}

.shop-grid {
  gap: clamp(24px, 3vw, 40px);
}

.shop-card {
  gap: 0;
  padding: 13px 13px 24px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.shop-card::before {
  display: none;
}

.shop-card:hover,
.shop-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.shop-card__img {
  max-height: none;
  border: 0;
  border-radius: 6px;
}

.shop-card__subtitle,
.shop-card__wrapper,
.shop-card__details {
  margin-inline: 13px;
}

.shop-card__subtitle {
  margin-top: 20px;
  color: var(--accent);
}

.shop-card__title {
  font-size: clamp(1.65rem, 2.3vw, 2rem);
}

.shop-card__cta {
  color: var(--accent);
}

.shop-card__details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 0.88rem;
}

.shop-card__size {
  color: var(--text-muted);
}

.shop-card__price {
  color: var(--text-strong);
  font-weight: 600;
  white-space: nowrap;
}

.shop-empty {
  margin: 40px auto 0;
  max-width: 600px;
  padding: 56px 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  text-align: center;
}

.stats-strip,
.site-footer {
  min-height: 0;
  scroll-snap-align: none;
}

.stats-strip {
  padding-block: 72px;
}

.stats-grid strong {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.stats-grid span {
  display: block;
  margin-top: 12px;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.18;
}

.site-footer {
  padding-block: 80px 32px;
}

@media (max-width: 980px) {
  .hero {
    align-items: center;
  }

  .hero-copy {
    max-width: 640px;
  }

  .story-visual {
    width: min(100%, 700px);
    aspect-ratio: 4 / 3;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html:has(.hero) .section {
    padding-block: 88px;
  }

  html:has(.hero) .section-title {
    font-size: clamp(2.75rem, 10.5vw, 4.2rem);
  }

  .hero {
    min-height: 100svh;
    padding-block: 122px 94px;
    background-position: 58% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(5, 10, 19, 0.86), rgba(5, 10, 19, 0.45)),
      linear-gradient(0deg, rgba(5, 10, 19, 0.65), transparent 58%);
  }

  .hero-copy {
    padding: 0;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-copy h1 {
    font-size: clamp(3.65rem, 18vw, 5.2rem);
  }

  .hero .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .hero-lead {
    max-width: 32rem;
    font-size: 1rem;
  }

  .hero-signature {
    right: 22px;
    bottom: 24px;
    left: 22px;
    font-size: 1.25rem;
  }

  .story-visual {
    aspect-ratio: 5 / 4;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .product-foot {
    grid-template-columns: 1fr;
  }
}

/* Section motion layers (see section_fx() in site-content.php). Transform-only
   animations so they stay on the compositor; all motion stops for
   prefers-reduced-motion. Sits behind content via isolation + z-index -1. */
.has-fx {
  position: relative;
  isolation: isolate;
}

.section-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.section-fx > span {
  position: absolute;
  display: block;
  will-change: transform;
}

.fx-mist {
  inset: -10% -30%;
  background:
    radial-gradient(ellipse 30% 18% at 20% 30%, rgba(122, 152, 181, 0.15), transparent 70%),
    radial-gradient(ellipse 26% 14% at 72% 58%, rgba(122, 152, 181, 0.12), transparent 70%),
    radial-gradient(ellipse 34% 16% at 45% 88%, rgba(170, 191, 208, 0.09), transparent 70%);
  animation: fx-mist-drift 46s ease-in-out infinite alternate;
}

.section-fx--drift .fx-mist {
  opacity: 0.7;
  animation-duration: 60s;
}

.fx-ridge {
  left: 0;
  bottom: 0;
  width: calc(100% + 1200px);
  height: 420px;
  background: var(--ridge) left bottom / 1200px 420px repeat-x;
  animation: fx-ridge-pan 150s linear infinite;
}

.fx-glow {
  top: -22vmax;
  right: -16vmax;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 161, 74, 0.16), transparent 62%);
  animation: fx-glow-breathe 16s ease-in-out infinite alternate;
}

/* Tile heights (300/200/600) all divide the 600px travel, so the loop is
   seamless; mixed tile sizes keep the motes from reading as a grid. */
.fx-motes {
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 600px);
  background-image:
    radial-gradient(circle, rgba(217, 185, 107, 0.55) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(217, 185, 107, 0.32) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(232, 238, 245, 0.22) 0 1px, transparent 1.6px);
  background-size: 300px 300px, 230px 200px, 410px 600px;
  background-position: 40px 60px, 150px 120px, 260px 20px;
  animation: fx-motes-rise 70s linear infinite;
}

.fx-motes--far {
  opacity: 0.5;
  background-size: 180px 150px, 260px 300px, 340px 600px;
  background-position: 90px 10px, 20px 160px, 200px 380px;
  animation-duration: 110s;
}

[data-theme="light"] .fx-mist {
  background:
    radial-gradient(ellipse 30% 18% at 20% 30%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(ellipse 26% 14% at 72% 58%, rgba(170, 191, 208, 0.3), transparent 70%),
    radial-gradient(ellipse 34% 16% at 45% 88%, rgba(255, 255, 255, 0.45), transparent 70%);
}

[data-theme="light"] .fx-glow {
  background: radial-gradient(circle, rgba(139, 111, 46, 0.14), transparent 62%);
}

[data-theme="light"] .fx-motes {
  background-image:
    radial-gradient(circle, rgba(139, 111, 46, 0.4) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(139, 111, 46, 0.24) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(58, 90, 122, 0.18) 0 1px, transparent 1.6px);
}

@keyframes fx-mist-drift {
  from { transform: translate3d(-8%, 0, 0); }
  to { transform: translate3d(8%, -3%, 0); }
}

@keyframes fx-ridge-pan {
  to { transform: translate3d(-1200px, 0, 0); }
}

@keyframes fx-glow-breathe {
  from { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.7; }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); opacity: 1; }
}

@keyframes fx-motes-rise {
  to { transform: translate3d(0, -600px, 0); }
}

@media (max-width: 860px) {
  .fx-motes--far { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .section-fx > span { animation: none; }
}
