.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 72%, transparent);
  color: var(--text-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-solid {
  background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
  box-shadow: var(--shadow-soft);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  min-height: 76px;
}

.dedicated-page {
  padding-top: 76px;
}

.dedicated-section {
  /* Floor, not a fixed height: desktop content fits one viewport (looks the
     same), but taller mobile/tablet content grows the section instead of
     being clipped or colliding with the footer. */
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: var(--display);
  font-size: 1.42rem;
  line-height: 0.9;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.brand-logo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.brand-logo__img--dark { display: inline-block; }
[data-theme="light"] .brand-logo__img--dark { display: none; }
[data-theme="light"] .brand-logo__img--light { display: inline-block; }

.brand small {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a,
.nav-actions a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-strong);
}

.nav-actions {
  justify-content: flex-end;
  gap: 12px;
}

.nav-shop {
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  color: var(--text-strong);
  font-weight: 700;
}

.icon-link,
.mobile-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  color: inherit;
  padding: 0;
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #050a13;
  font-size: 0.7rem;
  font-weight: 700;
  pointer-events: none;
  border: 2px solid var(--bg);
}

[data-theme="light"] .cart-badge {
  color: var(--bg-elev);
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 88px;
  height: 40px;
  color: var(--text-strong);
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.theme-switch__track {
  position: relative;
  display: block;
  width: 62px;
  height: 32px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--mtn-near), var(--mtn-front));
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45), 0 8px 18px rgba(0, 0, 0, 0.22);
  transition: background 260ms ease, border-color 260ms ease;
}

.theme-switch__track i {
  position: absolute;
  top: 50%;
  left: -7px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--text-strong), color-mix(in srgb, var(--text-strong) 72%, var(--accent)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 10px rgba(0, 0, 0, 0.34);
  transform: translateY(-50%);
  transition: left 260ms ease, background 260ms ease;
}

.theme-switch__track i::after {
  position: absolute;
  top: 10px;
  left: 8px;
  z-index: -1;
  width: 28px;
  height: 74px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(255, 255, 255, 0));
  filter: blur(3px);
  content: "";
}

.theme-switch__coffee {
  color: color-mix(in srgb, var(--text-strong) 38%, transparent);
  filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--bg) 80%, transparent));
  transform: scale(1.25);
  transition: color 260ms ease, transform 260ms ease;
}

.theme-switch input:checked ~ .theme-switch__track {
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
}

.theme-switch input:checked ~ .theme-switch__track i {
  left: 27px;
}

.theme-switch input:checked ~ .theme-switch__coffee {
  color: color-mix(in srgb, var(--accent) 58%, var(--text-strong));
}

.theme-switch:focus-within .theme-switch__track {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mobile-menu.menuButton {
  position: relative;
  display: none;
  flex-direction: column;
  gap: 13%;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid color-mix(in srgb, var(--border-hover) 72%, var(--espresso));
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, color-mix(in srgb, var(--bg-elev) 72%, var(--espresso)), var(--espresso));
  color: var(--text-strong);
  box-shadow:
    inset 4px 4px 12px color-mix(in srgb, var(--text-strong) 12%, transparent),
    inset -4px -4px 12px rgba(0, 0, 0, 0.48),
    0 10px 22px rgba(0, 0, 0, 0.22);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.mobile-menu.menuButton:hover {
  border-color: var(--accent);
}

.mobile-menu.menuButton:active {
  transform: translateY(1px);
  box-shadow:
    5px 5px 12px color-mix(in srgb, var(--text-strong) 10%, transparent),
    -5px -5px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu.menuButton:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mobile-menu.menuButton span {
  width: 30px;
  height: 4px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--text-strong) 84%, var(--accent));
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
  transition: transform 260ms ease, opacity 200ms ease, width 260ms ease, box-shadow 260ms ease;
}

.mobile-menu.menuButton[aria-expanded="true"] span.top {
  width: 40px;
  transform: translateY(290%) rotate(45deg);
}

.mobile-menu.menuButton[aria-expanded="true"] span.mid {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu.menuButton[aria-expanded="true"] span.bot {
  width: 40px;
  transform: translateY(-270%) rotate(-45deg);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, var(--espresso));
}

.mobile-drawer {
  position: fixed;
  top: 86px;
  right: 18px;
  left: 18px;
  z-index: 30;
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
  padding: 12px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear;
}

.mobile-drawer a,
.theme-switch--drawer {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-strong);
  padding: 0 14px;
  text-decoration: none;
  font-weight: 700;
}

.mobile-drawer a:hover,
.theme-switch--drawer:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.theme-switch--drawer {
  width: 100%;
  justify-content: flex-start;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(0, 0, 0, 0.46);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease, visibility 0s linear;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 92px 0 56px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background: url("../img/hero/beans-sky.webp") center / cover no-repeat;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.18;
}

.glsl-hills {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  mix-blend-mode: normal;
}

[data-theme="light"] .glsl-hills {
  opacity: 0.9;
}

.glsl-hills canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sun {
  position: absolute;
  top: 12%;
  right: 18%;
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0 28%, transparent 68%);
  opacity: 0.42;
  filter: blur(4px);
}

.mtn,
.mist {
  position: absolute;
  right: -8vw;
  left: -8vw;
  bottom: 0;
  display: block;
  pointer-events: none;
}

.mtn {
  clip-path: polygon(0 100%, 0 58%, 10% 46%, 19% 59%, 30% 32%, 43% 56%, 55% 22%, 70% 53%, 82% 34%, 100% 62%, 100% 100%);
}

.mtn-far {
  height: 52%;
  background: var(--mtn-far);
  opacity: 0.42;
}

.mtn-mid {
  height: 45%;
  background: var(--mtn-mid);
  opacity: 0.56;
  transform: translateY(8%);
}

.mtn-near {
  height: 34%;
  background: var(--mtn-near);
  transform: translateY(18%);
}

.mtn-front {
  height: 24%;
  background: var(--mtn-front);
  transform: translateY(34%);
}

.mist {
  height: 34%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--text-strong) 10%, transparent), transparent);
  filter: blur(18px);
  opacity: 0.48;
}

.mist-1 { bottom: 19%; transform: translateX(-12%); }
.mist-2 { bottom: 9%; transform: translateX(18%); opacity: 0.34; }

.hero-grid {
  position: relative;
  z-index: 2;
  margin-block: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: var(--space-xl);
}

.story {
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 22%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 34%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg-elev) 78%, var(--bg)));
}

.story-hills-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    linear-gradient(180deg, transparent 0 42%, color-mix(in srgb, var(--bg) 55%, transparent) 100%),
    linear-gradient(150deg, transparent 0 53%, color-mix(in srgb, var(--mtn-mid) 72%, transparent) 53.2% 100%),
    linear-gradient(210deg, transparent 0 56%, color-mix(in srgb, var(--mtn-front) 76%, transparent) 56.2% 100%),
    linear-gradient(170deg, transparent 0 62%, color-mix(in srgb, var(--accent) 24%, transparent) 62.2% 100%);
  clip-path: polygon(0 100%, 0 58%, 9% 48%, 18% 58%, 28% 31%, 40% 56%, 52% 23%, 66% 54%, 79% 35%, 91% 56%, 100% 45%, 100% 100%);
}

[data-theme="light"] .story-hills-fallback {
  opacity: 0.42;
}

.story-grid {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(4.6rem, 11vw, 10.4rem);
  font-weight: 400;
  line-height: 0.82;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elev) 58%, transparent);
  padding: clamp(24px, 4vw, 54px);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.hero-copy::before {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  content: "";
}

.hero-copy::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  opacity: 0.72;
  content: "";
}

.hero-tag {
  margin: 10px 0 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  font-style: italic;
  line-height: 1;
}

.hero-company-tag {
  margin: var(--space-md) 0 0;
  color: var(--accent);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 620px;
  margin: var(--space-md) 0 0;
  color: var(--text);
  font-size: clamp(1.04rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-card strong,
.hero-card span {
  display: block;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 0.98;
}

.hero-card span {
  color: var(--accent);
}

.hero-card dl {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0 0;
}

.hero-card div {
  border-top: 1px solid var(--border);
  padding-top: var(--space-sm);
}

.hero-card dt {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card dd {
  margin: 4px 0 0;
  color: var(--text);
}

.story-grid,
.about-grid,
.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: var(--space-xl);
}

.story-visual {
  position: relative;
  min-height: 420px;
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  /* Transparent layout cell - only the glass card is visible. */
}

.story-visual img {
  width: 100%;
  min-height: 340px;
  max-height: 54vh;
  object-fit: cover;
  opacity: 0.82;
}

/* Liquid-glass card that holds the brand seal (no longer circular) */
.glass-filter-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: -1;
}

.story-logo {
  --glass-light: 1;
  --glass-dark: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(320px, 44vw, 500px);
  aspect-ratio: 1 / 1;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 40px;
  background-color: color-mix(in srgb, var(--bg-elev) 14%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
          backdrop-filter: blur(10px) url(#story-glass) saturate(160%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, calc(var(--glass-light) * 0.10)),
    inset 1.8px 3px 0 -2px rgba(255, 255, 255, calc(var(--glass-light) * 0.90)),
    inset -2px -2px 0 -2px rgba(255, 255, 255, calc(var(--glass-light) * 0.78)),
    inset -3px -8px 1px -6px rgba(255, 255, 255, calc(var(--glass-light) * 0.55)),
    inset -0.3px -1px 4px 0 rgba(0, 0, 0, calc(var(--glass-dark) * 0.14)),
    inset -1.5px 2.5px 0 -2px rgba(0, 0, 0, calc(var(--glass-dark) * 0.22)),
    inset 0 3px 4px -2px rgba(0, 0, 0, calc(var(--glass-dark) * 0.22)),
    inset 2px -6.5px 1px -4px rgba(0, 0, 0, calc(var(--glass-dark) * 0.12)),
    0 1px 5px 0 rgba(0, 0, 0, calc(var(--glass-dark) * 0.14)),
    0 8px 18px 0 rgba(0, 0, 0, calc(var(--glass-dark) * 0.10));
}

[data-theme="light"] .story-logo {
  --glass-light: 0.5;
  --glass-dark: 1.4;
  background-color: color-mix(in srgb, var(--bg-elev) 38%, transparent);
}

.story-visual .story-logo__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  opacity: 1;
  display: none;
}

.story-visual .story-logo__img--dark { display: block; }
[data-theme="light"] .story-visual .story-logo__img--dark { display: none; }
[data-theme="light"] .story-visual .story-logo__img--light { display: block; }

.story .btn {
  margin-top: var(--space-lg);
}

.about {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--bg-elev) 58%, var(--bg)), var(--bg));
  padding-top: 82px;
  padding-bottom: 56px;
}

.about::before {
  position: absolute;
  top: 12%;
  right: -8vw;
  width: 34vw;
  min-width: 280px;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  opacity: 0.55;
  content: "";
}

.about-copy {
  position: relative;
  z-index: 1;
}

.about .section-title {
  max-width: 760px;
  font-size: clamp(2.65rem, 5.6vw, 5.45rem);
}

.about .lead {
  max-width: 640px;
  margin-top: 1rem;
}

.about-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.about-panel article {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elev) 74%, transparent);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

.about-panel span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.about-panel h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 0.94;
}

.about-panel p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.products,
.testimonials {
  background: color-mix(in srgb, var(--bg-elev) 48%, var(--bg));
}

section.section.products {
  padding-top: clamp(72px, 10vh, 110px);
  padding-bottom: clamp(36px, 6vh, 80px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  max-width: 880px;
  margin: 0 auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.product-card,
.testimonial-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.product-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  max-height: clamp(200px, 34vh, 320px);
  object-fit: cover;
  background: var(--bg-elev-2);
}

.product-body,
.testimonial-card {
  padding: 20px;
}

.chip {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h2,
.product-card h3 {
  margin: var(--space-sm) 0 0;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

.product-card p,
.testimonial-card blockquote {
  margin: var(--space-sm) 0 0;
  color: var(--text-muted);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.price {
  color: var(--text-strong);
  font-weight: 700;
}

.stats-strip {
  border-block: 1px solid var(--border);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.stats-grid div {
  border-left: 1px solid var(--border);
  padding-left: var(--space-md);
}

.stats-grid strong {
  display: block;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.9;
}

.stats-grid span {
  color: var(--text-muted);
  font-weight: 600;
}

.testimonial-card {
  margin: 0;
}

.testimonial-card div {
  color: var(--accent-2);
  letter-spacing: 0.12em;
}

.testimonial-card blockquote {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.22;
}

.testimonial-card figcaption {
  margin-top: var(--space-md);
  color: var(--text-strong);
  font-weight: 700;
}

.testimonial-card figcaption span {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
}

.newsletter {
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%),
    var(--bg);
}

.newsletter.has-globe {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.newsletter.has-globe > .container {
  position: relative;
  z-index: 2;
}

.globe-bg {
  position: absolute;
  inset: auto -8% -28% auto;
  width: clamp(420px, 62vw, 820px);
  aspect-ratio: 1;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--accent) 22%, transparent));
  transition: opacity 900ms ease;
}

.globe-bg.is-ready {
  opacity: 0.55;
}

[data-theme="light"] .globe-bg.is-ready {
  opacity: 0.45;
}

@media (max-width: 760px) {
  .globe-bg {
    inset: auto -25% -42% auto;
    width: clamp(360px, 110vw, 640px);
  }
  .globe-bg.is-ready {
    opacity: 0.42;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
  --scroll-progress: 0%;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: width 120ms linear;
}

.testimonials-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  padding: clamp(72px, 10vh, 120px) 0 clamp(36px, 6vh, 72px);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.testimonials-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testimonials-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.testimonials-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 55%, transparent) 0%,
      color-mix(in srgb, var(--bg) 35%, transparent) 45%,
      var(--bg) 100%);
}

[data-theme="light"] .testimonials-hero__veil {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 30%, transparent) 0%,
      color-mix(in srgb, var(--bg) 55%, transparent) 55%,
      var(--bg) 100%);
}

.testimonials-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.testimonials-hero__title {
  margin: var(--space-sm) 0 var(--space-md);
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.testimonials-hero .eyebrow {
  color: var(--accent);
}

.testimonials-hero .lead {
  color: var(--text);
  max-width: 580px;
}

@media (max-width: 700px) {
  .testimonials-hero {
    min-height: 52vh;
    min-height: 52svh;
    padding: 96px 0 48px;
  }
}

.testimonial-marquee {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: clamp(12px, 2vh, 20px);
  max-height: min(560px, calc(100svh - 270px));
  overflow: hidden;
  justify-items: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

@media (min-width: 700px) {
  .testimonial-marquee { grid-template-columns: repeat(2, minmax(0, 320px)); }
}

@media (min-width: 1000px) {
  .testimonial-marquee { grid-template-columns: repeat(3, minmax(0, 320px)); }
}

.testimonial-marquee__col {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  animation: testimonial-scroll var(--scroll-duration, 28s) linear infinite;
  will-change: transform;
}

.testimonial-marquee__col .testimonial-mini {
  margin-bottom: var(--space-md);
}

.testimonial-marquee__col--2 { display: none; }
.testimonial-marquee__col--3 { display: none; }

@media (min-width: 700px) {
  .testimonial-marquee__col--2 { display: flex; }
}

@media (min-width: 1000px) {
  .testimonial-marquee__col--3 { display: flex; }
}

@keyframes testimonial-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.testimonial-marquee:hover .testimonial-marquee__col,
.testimonial-marquee:focus-within .testimonial-marquee__col {
  animation-play-state: paused;
}

.testimonial-mini {
  margin: 0;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.testimonial-mini:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.testimonial-mini blockquote {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  font-style: italic;
  line-height: 1.4;
}

.testimonial-mini figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-mini__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border: 1px solid var(--border-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.testimonial-mini__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.testimonial-mini__meta strong {
  color: var(--text-strong);
  font-weight: 700;
}

.testimonial-mini__meta span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-marquee {
    max-height: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .testimonial-marquee__col {
    animation: none;
  }
}

.testimonials.dedicated-section {
  box-sizing: border-box;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  padding: clamp(28px, 4vh, 48px) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.testimonials.dedicated-section .section-head {
  margin-bottom: clamp(12px, 2vh, 20px);
}

.testimonials.dedicated-section .section-title {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
}

@media (max-width: 700px) {
  .testimonials.dedicated-section {
    min-height: auto;
    overflow: visible;
    padding: 56px 0 72px;
  }
  .testimonial-marquee {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .testimonial-marquee__col {
    animation: none;
  }
}


.signup-form {
  display: grid;
  gap: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-elev);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.signup-form label {
  color: var(--text-strong);
  font-weight: 700;
}

.signup-form .form-status {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.signup-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-form input,
.signup-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px; /* prevents iOS auto-zoom on focus */
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.signup-form input:focus,
.signup-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  outline: 0;
}

.signup-form input {
  min-height: 52px;
  border-radius: 999px;
  padding: 0 1.1rem;
}

.signup-form textarea {
  min-height: 140px;
  resize: vertical;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  line-height: 1.5;
}

/* Contact pattern: when the form has a textarea (name + email + message),
   inputs become rectangular and consistent with the textarea instead of pills. */
.signup-form:has(textarea) input {
  min-height: 48px;
  border-radius: var(--radius-md);
  padding: 0 1rem;
}

.signup-form:has(textarea) label {
  display: block;
  margin-bottom: -8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.signup-form:has(textarea) label.honeypot {
  display: none;
}

.signup-form:has(textarea) .btn {
  margin-top: 6px;
  justify-self: start;
}

@media (max-width: 600px) {
  .signup-form:has(textarea) .btn {
    width: 100%;
    justify-self: stretch;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 32px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 var(--space-sm);
  color: var(--text-strong);
  font-family: var(--display);
  font-weight: 400;
}

.footer-grid h2 {
  font-size: 2rem;
}

.footer-grid div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid p,
.footer-grid a {
  margin: 0;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(0);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 8px;
    justify-content: flex-end;
  }

  .nav-actions .nav-shop,
  .nav-actions .theme-switch {
    display: none;
  }

  .mobile-menu.menuButton {
    display: inline-flex;
  }

  .hero-grid,
  .story-grid,
  .about-grid,
  .newsletter-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: var(--space-lg);
    align-items: center;
  }

  .hero-card {
    max-width: 460px;
  }

  .product-grid,
  .testimonial-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip,
  .site-footer {
    height: auto;
    min-height: auto;
    display: block;
    padding: 100px 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .product-card,
  .testimonial-card,
  .signup-form {
    border-radius: 18px;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .about {
    padding-top: 72px;
    padding-bottom: 36px;
  }

  .about-grid {
    gap: var(--space-lg);
  }

  .about .section-title {
    font-size: clamp(2.25rem, 4.6vw, 4.45rem);
  }

  .about .lead {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.48;
  }

  .about-panel article {
    padding: 14px 18px;
  }

  .about-panel span {
    margin-bottom: 8px;
  }

  .about-panel h3 {
    font-size: clamp(1.28rem, 2vw, 1.85rem);
  }

  .about-panel p {
    margin-top: 6px;
    font-size: 0.94rem;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 68px;
  }

  .hero {
    align-items: center;
    min-height: 100svh;
    padding: 88px 0 34px;
    background-position: center top;
  }

  .hero-copy h1 {
    font-size: clamp(3.25rem, 19vw, 5rem);
    line-height: 0.86;
  }

  .hero-copy {
    border-radius: 22px;
    padding: 22px;
    background: color-mix(in srgb, var(--bg-elev) 68%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
  }

  .hero-copy::before {
    right: 14px;
    left: 14px;
  }

  .hero-copy::after {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .hero-company-tag {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero-tag {
    font-size: clamp(1.3rem, 8vw, 2rem);
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .hero-actions {
    margin-top: var(--space-md);
  }

  .hero-actions,
  .product-foot {
    display: grid;
  }

  .hero-card {
    display: none;
  }

  .story-visual img {
    min-height: 280px;
  }

  .product-grid,
  .testimonial-grid {
    gap: var(--space-sm);
  }

  .product-body,
  .testimonial-card,
  .signup-form {
    padding: 18px;
  }

  .product-card h3 {
    font-size: 1.6rem;
  }

  .testimonial-card blockquote {
    font-size: 1.25rem;
  }

  .stats-grid div {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: var(--space-md) 0 0;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .hero-copy {
    padding: 18px;
  }

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

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }
}

/* About - editorial */
.about-editorial {
  position: relative;
  background: var(--bg);
  box-sizing: border-box;
  padding: clamp(24px, 4vh, 42px) 0 clamp(24px, 4vh, 42px);
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  overflow: hidden;
}

.about-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 32%),
    radial-gradient(circle at 90% 88%, color-mix(in srgb, var(--mtn-mid) 22%, transparent), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.about-editorial__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(14px, 2vh, 24px);
}

.about-editorial__strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.about-editorial__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.about-star {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
  animation: about-spin 9s linear infinite;
}

@keyframes about-spin {
  to { transform: rotate(360deg); }
}

.about-editorial__social {
  display: inline-flex;
  gap: 10px;
}

.about-editorial__social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.about-editorial__social a:hover,
.about-editorial__social a:focus-visible {
  color: var(--accent);
  border-color: var(--border-hover);
  background: color-mix(in srgb, var(--bg-elev-2) 80%, transparent);
  transform: translateY(-2px);
}

.about-editorial__media {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}

.about-editorial__media img {
  display: block;
  width: 100%;
  height: clamp(150px, 23vh, 245px);
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.about-editorial__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 55%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 25%, transparent) 0%, transparent 35%);
  pointer-events: none;
}

.about-editorial__badge {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-editorial__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.about-editorial__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(10px, 1.6vh, 18px) 0 0;
  border-top: 1px solid var(--border);
}

.about-editorial__stats > div {
  padding-left: var(--space-md);
  border-left: 1px solid var(--border);
}

.about-editorial__stats > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.about-editorial__stats strong {
  display: block;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
}

.about-editorial__stats span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-editorial__grid {
  display: grid;
  grid-template-columns: 1.75fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-top: clamp(8px, 1.5vh, 16px);
}

.about-editorial__title {
  margin: 0 0 clamp(14px, 2vh, 24px);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-strong);
}

/* Word-by-word vertical reveal */
.cut-headline {
  display: flex;
  flex-wrap: wrap;
}

.cut-word {
  display: inline-flex;
  overflow: hidden;
  line-height: 1.05;
  padding-bottom: 0.06em;
}

.cut-word__inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--cut-delay, 0ms);
}

.cut-headline.is-visible .cut-word__inner,
.is-visible .cut-headline .cut-word__inner {
  transform: translateY(0);
}

.about-editorial__paragraphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.6vw, 34px);
}

.about-editorial__paragraphs p {
  margin: 0;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.55;
}

.about-editorial__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.4vh, 14px);
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  box-shadow: var(--shadow-soft);
}

.about-editorial__brand {
  margin: 4px 0 0;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.about-editorial__role {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.about-editorial__pitch {
  margin: clamp(10px, 1.8vh, 18px) 0;
  color: var(--text-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.35;
}

.about-editorial__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 240ms ease;
}

.about-editorial__cta:hover {
  gap: 16px;
}

@media (max-width: 980px) {
  .about-editorial {
    min-height: auto;
    overflow: visible;
    padding: clamp(56px, 8vh, 84px) 0 clamp(48px, 7vh, 72px);
  }
  .about-editorial__media img {
    height: auto;
  }
  .about-editorial__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .about-editorial__paragraphs {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .about-editorial__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-md);
  }
  .about-editorial__stats > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .about-editorial__media img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .about-editorial {
    padding: clamp(48px, 8vh, 72px) 0 clamp(42px, 7vh, 64px);
  }
  .about-editorial__eyebrow {
    font-size: 0.66rem;
  }
  .about-editorial__social a {
    width: 30px;
    height: 30px;
  }
  .about-editorial__title {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }
  .about-editorial__badge {
    left: var(--space-sm);
    bottom: var(--space-sm);
    font-size: 0.62rem;
    padding: 0.45rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-star {
    animation: none;
  }
  .cut-word__inner {
    transform: translateY(0);
    transition: none;
  }
}

/* Shop - tilted card with arrow CTA */
.shop {
  background: var(--bg);
}

.shop.dedicated-section {
  padding-top: clamp(88px, 11vh, 110px);
  padding-bottom: clamp(20px, 4vh, 40px);
  align-items: flex-start;
}

.shop .section-head {
  margin-bottom: var(--space-md);
}

.shop .section-title {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  white-space: nowrap;
  max-width: none;
}

@media (max-width: 820px) {
  .shop .section-title {
    white-space: normal;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: var(--space-lg);
  justify-content: center;
  padding-top: var(--space-md);
}

@media (max-width: 820px) {
  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: var(--space-lg);
  }
}

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 420px;
  padding: 18px;
  border-radius: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 5px -1.5px rgba(0, 0, 0, 0.45);
  transition: transform 220ms ease, box-shadow 240ms ease, border-color 240ms ease;
  cursor: pointer;
}

.shop-card::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 99%;
  height: 99%;
  z-index: -1;
  border-radius: 24px;
  background: var(--bg-elev-2);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.shop-card:hover,
.shop-card:focus-visible {
  border-color: var(--border-hover);
  box-shadow: 0 0 22px -5px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}

.shop-card:hover::before,
.shop-card:focus-visible::before {
  transform: rotate(8deg);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 18%, transparent);
}

.shop-card__img {
  width: 100%;
  aspect-ratio: 1;
  max-height: clamp(220px, 44vh, 360px);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
}

.shop-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}

.shop-card:hover .shop-card__img img {
  transform: scale(1.04);
}

.shop-card__subtitle {
  margin-top: 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shop-card__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 4px;
}

.shop-card__title {
  color: var(--text-strong);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.1;
  flex: 1;
}

.shop-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--text-strong);
  transition: color 280ms ease;
}

.shop-card__buy {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-card__icon {
  width: 32px;
  height: 32px;
  display: block;
  transform: rotate(-45deg);
  transition: transform 320ms ease;
}

.shop-card:hover .shop-card__icon,
.shop-card:focus-visible .shop-card__icon {
  transform: rotate(0);
}

.shop-card:hover .shop-card__cta,
.shop-card:focus-visible .shop-card__cta {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .shop-card,
  .shop-card::before,
  .shop-card__icon,
  .shop-card__img img {
    transition: none;
  }
  .shop-card:hover::before,
  .shop-card:focus-visible::before {
    transform: none;
  }
  .shop-card:hover .shop-card__icon,
  .shop-card:focus-visible .shop-card__icon {
    transform: rotate(-45deg);
  }
}

/* Product detail - top-right "next product" toggle */
.product-page__next {
  position: absolute;
  top: clamp(20px, 2.6vw, 36px);
  right: clamp(24px, 3vw, 48px);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-strong);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
  transition: gap 220ms ease, border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.product-page__next:hover,
.product-page__next:focus-visible {
  gap: 18px;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  transform: translateY(-1px);
}

.product-page__next-eyebrow {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-page__next-name {
  color: var(--text-strong);
}

.product-page__next-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #050a13;
  transition: transform 220ms ease;
}

.product-page__next:hover .product-page__next-icon {
  transform: translateX(2px);
}

[data-theme="light"] .product-page__next-icon {
  color: var(--bg-elev);
}

@media (max-width: 640px) {
  .product-page__next {
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    gap: 8px;
    font-size: 0.72rem;
  }
  .product-page__next-eyebrow {
    display: none;
  }
  .product-page__next-icon {
    width: 22px;
    height: 22px;
  }
}

/* All dedicated pages (single-section detail views) opt out of scroll-snap.
   Only the landing page keeps mandatory-style snap rhythm. */
html:has(.dedicated-page) {
  scroll-snap-type: none;
}

html:has(.dedicated-page) .site-footer {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  /* On dedicated pages the footer is normal flow, not a full-viewport snap
     panel (that left a huge empty gap above it). */
  min-height: 0;
  justify-content: flex-start;
}

html:has(.product-page) .site-footer,
html:has(.gallery-page) .site-footer,
html:has(.testimonials-hero) .site-footer {
  display: none;
}

@media (min-width: 881px) {
  html:has(.product-page),
  html:has(.product-page) body {
    overflow: hidden;
  }
}

/* Product detail - split layout (40 dark / 60 light) */
.product-page {
  position: relative;
  display: grid;
  grid-template-columns: 32% 68%;
  align-items: stretch;
  height: calc(100vh - 76px);
  height: calc(100svh - 76px);
  min-height: 0;
  background: var(--bg);
  overflow: hidden;
}

@media (max-width: 880px) {
  .product-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: auto;
  }
}

/* LEFT - accent-colored gallery panel (gold in dark, blue in light, mirroring theme toggle) */
.product-left {
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
  position: relative;
  z-index: 2;
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  padding: clamp(24px, 5vh, 54px) 0 clamp(24px, 5vh, 54px) clamp(24px, 4vw, 56px);
}

[data-theme="light"] .product-left {
  background: linear-gradient(180deg, var(--mtn-near), var(--mtn-front));
}

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.4vh, 28px);
  width: min(clamp(320px, 42vw, 600px), calc(100svh - 220px));
  height: 100%;
  margin-block: auto;
  justify-content: center;
  position: relative;
}

.gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(28%);
  perspective: 900px;
  margin-block: auto;
}

.gallery__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 200ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.35));
  will-change: transform;
  transform-origin: center;
}

.gallery__controls {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 2vh, 24px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 28px);
  transform: translateX(calc(-50% + 14%));
}

.gallery__nav {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  flex-shrink: 0;
}

.gallery__nav:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.75);
}

.gallery__nav--prev:hover { transform: translateX(-3px); }
.gallery__nav--next:hover { transform: translateX(3px); }

.gallery__dots {
  display: flex;
  gap: 14px;
  align-items: center;
}

.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: width 280ms ease, background 280ms ease, border-color 280ms ease;
}

.gallery__dot.is-active {
  width: 22px;
  background: #fff;
  border-color: #fff;
}

/* RIGHT - Light info */
.product-right {
  background: var(--bg-elev);
  box-sizing: border-box;
  padding: clamp(24px, 5vh, 54px) clamp(32px, 4vw, 58px) clamp(24px, 5vh, 54px) clamp(110px, 13vw, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.product-right__inner {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  margin-block: auto;
}

.product-info__head {
  margin-bottom: clamp(18px, 3vh, 30px);
}

.product-info__title {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.05;
}

.product-info__sku {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(18px, 3vh, 30px);
}

.price-final {
  color: var(--text-strong);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 1.9rem);
  font-family: var(--sans);
  display: inline-block;
  transition: transform 240ms ease;
}

.price-final.is-animating {
  animation: price-pop 0.4s ease;
}

@keyframes price-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.price-unit {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-info__specs {
  display: flex;
  gap: clamp(32px, 4vw, 56px);
  margin-bottom: clamp(18px, 3vh, 30px);
}

@media (max-width: 520px) {
  .product-info__specs {
    gap: 32px;
  }
}

.spec {
  display: flex;
  flex-direction: column;
  position: relative;
}

.spec__label {
  margin: 0 0 14px;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Size dropdown */
.dropdown {
  position: relative;
  z-index: 3;
}

.dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--bg-elev-2) 45%, var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-strong);
  font-weight: 600;
  min-width: 92px;
  transition: border-color 200ms ease;
}

.dropdown__btn:hover {
  border-color: var(--border-hover);
}

.dropdown__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
}

.dropdown__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--text-muted);
  transition: background 200ms ease, color 200ms ease;
}

.dropdown__btn:hover .dropdown__arrow {
  background: color-mix(in srgb, var(--bg-elev-2) 70%, var(--bg-elev));
  color: var(--accent);
}

.dropdown__arrow svg {
  transition: transform 280ms ease;
}

.dropdown.is-open .dropdown__btn {
  border-radius: 6px 6px 0 0;
}

.dropdown.is-open .dropdown__arrow svg {
  transform: rotate(180deg);
}

.dropdown__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: color-mix(in srgb, var(--bg-elev-2) 45%, var(--bg-elev));
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 24px color-mix(in srgb, var(--text-strong) 12%, transparent);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  z-index: 5;
}

.dropdown.is-open .dropdown__list {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear;
}

.dropdown__item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  transition: background 200ms ease, color 200ms ease;
}

.dropdown__item-sub {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.dropdown__item:hover {
  background: var(--bg-elev);
  color: var(--accent);
}

.dropdown__item.is-active {
  color: var(--accent);
}

.dropdown__item.is-active .dropdown__item-sub {
  color: color-mix(in srgb, var(--accent) 70%, var(--text-muted));
}

/* Quantity counter */
.counter {
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-elev-2) 45%, var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  height: 44px;
  width: fit-content;
}

.counter__input {
  width: 36px;
  height: 32px;
  background: transparent;
  border: 0;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  font-family: var(--sans);
  cursor: default;
  pointer-events: none;
}

.counter__btn {
  width: 28px;
  height: 28px;
  background: var(--bg-elev);
  border: 0;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  transition: background 200ms ease, color 200ms ease;
}

.counter__btn:hover {
  background: color-mix(in srgb, var(--bg-elev-2) 70%, var(--bg-elev));
  color: var(--accent);
}

.counter__error {
  position: absolute;
  bottom: -22px;
  left: 0;
  margin: 0;
  color: #d85d61;
  font-size: 0.72rem;
  white-space: nowrap;
}

/* Thumbnail strip */
.product-info__thumbs {
  display: flex;
  gap: 16px;
  margin-bottom: clamp(18px, 3vh, 32px);
  flex-wrap: wrap;
}

.thumb {
  width: 64px;
  height: 64px;
  padding: 5px;
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.45;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumb:hover {
  opacity: 1;
  border-color: var(--border-hover);
}

.thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
  border-width: 3px;
  padding: 4px;
}

/* Add to Cart */
.product-info__cta {
  margin-top: auto;
}

.btn-add {
  position: relative;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 18px 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #050a13;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 38%, transparent);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  font-family: var(--sans);
  overflow: visible;
}

.btn-add:hover {
  transform: translateY(3px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--accent-soft);
}

[data-theme="light"] .btn-add {
  color: var(--bg-elev);
}

/* Mobile */
@media (max-width: 880px) {
  .product-left {
    padding: clamp(28px, 5vw, 40px) 24px;
    justify-content: center;
  }
  .product-right {
    padding: 56px 24px 80px;
  }
  .product-right__inner {
    margin: 0 auto;
  }
  .gallery {
    width: 100%;
    height: auto;
    max-width: 320px;
    gap: 18px;
  }
  .gallery__controls {
    position: static;
    transform: none;
  }
  /* The bag image source is a 1200px square, so the stage's `aspect-ratio: 1`
     gets overridden by the image's min-content height and the panel balloons.
     Give the stage an explicit square size + min-height:0 so it stays small. */
  .gallery__stage {
    transform: none;
    width: min(58vw, 230px);
    height: min(58vw, 230px);
    aspect-ratio: auto;
    min-height: 0;
    margin-inline: auto;
  }
}

/* Cart page */
.cart-page {
  background: var(--bg);
  padding: clamp(64px, 8vh, 110px) 0 clamp(48px, 6vh, 96px);
  min-height: auto;
}

.cart-page__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.cart-page__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-page__region {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cart-region__picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-region__label {
  /* matches the parent's uppercase chip style */
}

.cart-region__picker select {
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.cart-region__picker select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cart-region__note {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
  font-style: italic;
}

.cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 900px) {
  .cart-page__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.cart-page__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  align-items: center;
}

.cart-line__img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.cart-line__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-line__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-line__name {
  color: var(--text-strong);
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.15;
  text-decoration: none;
}

.cart-line__variant {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-line__unit {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.cart-line__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-line__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  border-radius: 8px;
  padding: 2px;
}

.cart-line__qty button {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--bg-elev);
  border: 0;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.cart-line__qty button:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-elev));
  color: var(--accent);
}

.cart-line__qty span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  color: var(--text-strong);
  font-weight: 700;
}

.cart-line__total {
  margin: 0;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1rem;
}

.cart-line__remove {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
  transition: color 200ms ease;
}

.cart-line__remove:hover {
  color: var(--accent);
}

@media (max-width: 560px) {
  .cart-line {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .cart-line__img {
    width: 76px;
    height: 76px;
  }
  .cart-line__controls {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
  }
}

.cart-page__summary {
  position: sticky;
  top: 92px;
  padding: var(--space-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-page__summary-title {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
}

.cart-page__summary-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.cart-page__summary-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.cart-page__summary-list dt {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cart-page__summary-list dd {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
}

.cart-page__summary-total {
  border-top: 1px solid var(--border);
  padding-top: var(--space-sm);
  margin-top: 6px;
}

.cart-page__summary-total dt {
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1rem;
}

.cart-page__summary-total dd {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
}

.cart-page__shipping-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color 220ms ease;
}

.cart-page__shipping-note.is-unlocked {
  color: var(--accent-2);
  font-weight: 600;
}

.cart-page__summary-list dd.is-free {
  color: var(--accent-2);
  font-weight: 700;
}

.cart-page__checkout {
  width: 100%;
}

.cart-page__checkout[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-page__clear {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 4px 0;
  text-align: center;
  transition: color 200ms ease;
}

.cart-page__clear:hover {
  color: #d85d61;
}

.cart-page__continue {
  text-align: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 200ms ease;
}

.cart-page__continue:hover {
  color: var(--accent);
}

.cart-page__empty {
  padding: var(--space-xl);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg-elev) 60%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.cart-page__empty-headline {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: 1.8rem;
}

.cart-page__empty-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 380px;
}

/* Add-to-cart confirmation state */
.btn-add.is-added {
  background: var(--accent-2);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent-2) 38%, transparent);
}

.btn-add.is-added .btn-add__label {
  letter-spacing: 0.08em;
}

/* Fly-to-cart click animation
   Outer span animates X with an ease-in (slow start, fast finish).
   Inner dot animates Y with an ease-out - together they trace a parabolic arc. */
.btn-add__fly {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  pointer-events: none;
  opacity: 0;
  z-index: 50;
}

.btn-add__fly-dot {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--text-strong);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--text-strong) 35%, transparent);
}

.btn-add__fly-dot::before {
  content: "+1";
}

[data-theme="light"] .btn-add__fly-dot {
  background: var(--text-strong);
  color: var(--bg-elev);
}

.btn-add.is-flying .btn-add__fly {
  opacity: 1;
  animation: cart-fly-x 0.9s forwards cubic-bezier(1, 0.44, 0.84, 0.165);
}

.btn-add.is-flying .btn-add__fly-dot {
  animation: cart-fly-y 0.9s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes cart-fly-x {
  to {
    transform: translateX(var(--fly-x, 0));
    opacity: 0;
  }
}

@keyframes cart-fly-y {
  to {
    transform: translateY(var(--fly-y, 0)) scale(0.55);
  }
}

/* Cart shake when the dot lands */
.cart-link.is-jiggling {
  animation: cart-shake 0.4s ease-in-out forwards;
}

@keyframes cart-shake {
  20%  { transform: translateX(5px)  rotate(2deg); }
  40%  { transform: translateX(-4px) rotate(-2deg); }
  60%  { transform: translateX(3px)  rotate(1deg); }
  80%  { transform: translateX(-2px) rotate(-1deg); }
  100% { transform: translateX(0)    rotate(0); }
}

/* Error page */
html:has(.error-page) .site-footer {
  display: none;
}

.error-page {
  background: var(--bg);
  padding: clamp(48px, 6vh, 96px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
}

.error-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.error-stack {
  position: relative;
  height: 250px;
  padding-top: 40px;
  margin-bottom: var(--space-md);
}

.error-clip {
  display: inline-block;
  transform: skew(-45deg);
}

.error-shadow {
  overflow: hidden;
  height: 180px;
  position: relative;
}

.error-clip:nth-of-type(2) .error-shadow {
  width: 130px;
  box-shadow:
    inset 20px 0 20px -15px color-mix(in srgb, var(--text-strong) 22%, transparent),
    20px 0 20px -15px color-mix(in srgb, var(--text-strong) 22%, transparent);
}

.error-clip:nth-of-type(1) .error-shadow,
.error-clip:nth-of-type(3) .error-shadow {
  width: 250px;
}

.error-clip:nth-of-type(3) .error-shadow::after,
.error-clip:nth-of-type(1) .error-shadow::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 0;
  z-index: 9;
  height: 100%;
  width: 10px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text-muted) 55%, transparent), transparent);
  border-radius: 50%;
}

.error-clip:nth-of-type(3) .error-shadow::after {
  left: -8px;
  right: auto;
}

.error-digit {
  position: relative;
  top: 8%;
  display: inline-block;
  width: 150px;
  height: 150px;
  line-height: 150px;
  font-size: 120px;
  font-weight: 700;
  color: #050a13;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
  border-radius: 50%;
  transform: skew(45deg);
  font-family: var(--display);
  text-align: center;
}

[data-theme="light"] .error-digit {
  color: var(--bg-elev);
}

.error-clip:nth-of-type(2) .error-digit { left: -10%; }
.error-clip:nth-of-type(1) .error-digit { right: -20%; }
.error-clip:nth-of-type(3) .error-digit { left: -20%; }

.error-bubble {
  position: absolute;
  z-index: 10;
  top: -150px;
  left: 26%;
  width: 80px;
  height: 80px;
  line-height: 80px;
  font-size: 28px;
  font-weight: 700;
  background: var(--bg-elev-2);
  color: var(--text-strong);
  border-radius: 50%;
  font-family: var(--display);
  font-style: italic;
}

.error-bubble__tail {
  position: absolute;
  z-index: 9;
  top: 70%;
  right: 0;
  width: 0;
  height: 0;
  transform: rotate(45deg);
  border-left: 20px solid var(--bg-elev-2);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.error-page__code {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.error-title {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.05;
}

.error-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 520px;
}

.error-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-sm);
}

@media (max-width: 767px) {
  .error-stack {
    height: 150px;
    padding-top: 32px;
  }
  .error-shadow { height: 100px; }
  .error-clip:nth-of-type(2) .error-shadow { width: 80px; }
  .error-clip:nth-of-type(1) .error-shadow,
  .error-clip:nth-of-type(3) .error-shadow { width: 100px; }
  .error-digit {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 52px;
  }
  .error-bubble {
    top: -110px;
    left: 15%;
    width: 52px;
    height: 52px;
    line-height: 52px;
    font-size: 20px;
  }
  .error-bubble__tail {
    border-left: 12px solid var(--bg-elev-2);
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }
}

/* Checkout button - exact Uiverse "Place Order" rig, recolored to brand.
   Locked to the original 200×60 footprint and centered in its slot. */
.checkout-btn {
  position: relative;
  width: 200px;
  height: 60px;
  margin: 0 auto;
  display: block;
}

.checkout-btn.is-disabled {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(0.3);
}

.checkout-btn__trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.checkout-btn__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--accent) 80%, #000) 10%,
    var(--accent) 50%,
    var(--accent-soft) 100%
  );
  border: 2px solid color-mix(in srgb, var(--accent) 80%, #000);
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  transition: transform 0.5s, box-shadow 0.5s;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Light mode → navy/mountain-blue gradient, mirroring the theme toggle's
   light-mode track and the product-page left panel. */
[data-theme="light"] .checkout-btn__face {
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--mtn-front) 60%, #000) 10%,
    var(--mtn-near) 50%,
    var(--mtn-mid) 100%
  );
  border-color: color-mix(in srgb, var(--mtn-front) 70%, #000);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--mtn-mid) 35%, transparent);
}

.checkout-btn:not(.is-disabled) .checkout-btn__face:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 38%, transparent);
}

[data-theme="light"] .checkout-btn:not(.is-disabled) .checkout-btn__face:hover {
  box-shadow: 0 14px 32px color-mix(in srgb, var(--mtn-mid) 42%, transparent);
}

/* Star field */
.checkout-btn__stars {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: #fff;
  z-index: 3;
  border-radius: 50%;
  transform: translate(-20px, -20px);
  box-shadow:
    5px 10px #fff, 10px -2px #fff, 20px 0 #fff, 30px -5px #fff,
    -10px -5px #fff, -15px 2px #fff, -35px 0 #fff,
    50px 15px #fff, 60px -10px #fff, 70px 20px #fff, 90px -15px #fff,
    100px 5px #fff, 110px -25px #fff, 90px 30px #fff, 80px -40px #fff,
    -50px 20px #fff, -70px -10px #fff, -90px 25px #fff, -100px -15px #fff,
    -110px 10px #fff, -90px -35px #fff, -80px 40px #fff,
    40px 40px #fff, 30px -40px #fff, -30px 30px #fff, -40px -25px #fff,
    60px 60px #fff, -60px -60px #fff, 70px -70px #fff, -70px 70px #fff,
    0 80px #fff, 0 -90px #fff, 90px 0 #fff, -100px 0 #fff,
    45px 5px #fff, 65px 0 #fff, 75px 10px #fff,
    -60px 10px #fff, -40px 10px #fff, -45px -8px #fff, -55px -2px #fff, -30px 17px #fff;
}

/* White scaling burst */
.checkout-btn__bg {
  position: absolute;
  width: 50%;
  height: 160%;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-100%, 50%) scale(1);
  box-shadow: -30px -40px 0 -7px #ffffffd8, 40px 14px rgba(255, 255, 255, 0.5);
  animation: ck-bg-scale 1s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.checkout-btn__bg::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(110%, 20%);
  box-shadow: 50px -5px #ffffffb2;
}

.checkout-btn__bg::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(120%, 10%);
  box-shadow: 50px -20px #ffffffd8;
}

/* Text states (match original .order / .done) */
.checkout-btn__order,
.checkout-btn__done {
  position: absolute;
  font-weight: 600;
  font-size: 1.04rem;
  font-family: var(--sans);
}

.checkout-btn__order {
  color: #fff;
  transform: translate(0, 0);
  animation: ck-text-out 6s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.checkout-btn__done {
  color: color-mix(in srgb, var(--accent) 38%, #000);
  transform: translate(-310%);
  animation: ck-text-in 6s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

[data-theme="light"] .checkout-btn__done {
  color: color-mix(in srgb, var(--mtn-front) 50%, #fff);
}

/* Delivery van */
.checkout-btn__car {
  position: absolute;
  height: 70%;
  width: 24%;
  max-width: 88px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-310%, 8%);
  animation: ck-car 6s ease;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.checkout-btn__car-body {
  position: absolute;
  width: 60%;
  height: 22%;
  background-color: #f6f1e7;
  bottom: 30%;
  left: 10%;
}

.checkout-btn__car-body::before {
  position: absolute;
  content: "";
  width: 75%;
  height: 220%;
  background-color: color-mix(in srgb, var(--mtn-mid) 65%, #fff);
  left: 20%;
  bottom: 100%;
  clip-path: polygon(0% 100%, 10% 0%, 80% 0%, 100% 100%);
}

.checkout-btn__car-body::after {
  position: absolute;
  content: "";
  width: 50%;
  height: 100%;
  background-color: #f6f1e7;
  left: 0%;
  bottom: 100%;
  clip-path: polygon(0% 100%, 0% 0%, 50% 0%, 100% 100%);
}

.checkout-btn__wheels {
  position: absolute;
  width: 28%;
  height: 35%;
  background-color: #050a13;
  border-radius: 50%;
  left: 5%;
  bottom: 12%;
}

.checkout-btn__wheels::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 70%;
  background-color: #050a13;
  border-radius: 50%;
  left: 180%;
  bottom: 0%;
}

.checkout-btn__car-cab {
  position: absolute;
  width: 7%;
  height: 70%;
  background-color: #050a13;
  left: 68%;
  bottom: 25%;
}

.checkout-btn__car-cab::before {
  content: "";
  position: absolute;
  width: 155%;
  height: 50%;
  background-color: #050a13;
  left: 0%;
  bottom: 0%;
}

.checkout-btn__car-cab::after {
  content: "";
  position: absolute;
  width: 555%;
  height: 6%;
  background-color: #050a13;
  left: 0%;
  bottom: 0%;
}

.checkout-btn__details {
  position: absolute;
  width: 30%;
  height: 3%;
  background-color: var(--accent-soft);
  top: 5%;
  left: 25%;
}

.checkout-btn__details::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 650%;
  border-radius: 50%;
  background-color: var(--accent-soft);
  top: 1750%;
  left: -45%;
}

.checkout-btn__details::after {
  content: "";
  position: absolute;
  width: 30%;
  height: 400%;
  border-radius: 50%;
  background-color: var(--accent-soft);
  top: 2060%;
  left: 125%;
}

/* Package box (carried by the van) */
.checkout-btn__package {
  position: absolute;
  width: 28%;
  max-width: 84px;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(0%, 100%);
  animation: ck-package 6s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.checkout-btn__box {
  position: absolute;
  width: 50%;
  height: 44%;
  background-color: #c9a87a; /* warm cardboard tan */
}

.checkout-btn__box::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 6%;
  background-color: #8b6f2e; /* tape - matches dark gold */
  right: 0%;
  top: -2%;
  transform: rotate(210deg);
  transform-origin: right;
  animation: ck-close 0.5s ease-in-out 0.3s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.checkout-btn__box::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 6%;
  background-color: #8b6f2e;
  left: 0%;
  top: -2%;
  transform: rotate(-210deg);
  transform-origin: left;
  animation: ck-close-2 0.5s ease-in-out 0.3s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.checkout-btn__box-meta {
  position: absolute;
  background-color: #5a3a25;
  width: 10%;
  height: 10%;
  top: 30%;
}

.checkout-btn__box-meta::before {
  content: "";
  position: absolute;
  background-color: #f6f1e7;
  width: 100%;
  height: 100%;
  bottom: -280%;
  left: -150%;
}

.checkout-btn__box-meta::after {
  content: "";
  position: absolute;
  background-color: #aab1b8;
  width: 40%;
  height: 40%;
  bottom: -230%;
  left: -105%;
}

.checkout-btn__box-text {
  position: absolute;
  z-index: 2;
  bottom: 28%;
  right: 32%;
  font-size: 0.32rem;
}

/* Trigger states */
.checkout-btn__trigger:checked + .checkout-btn__face .checkout-btn__package,
.checkout-btn__trigger:checked + .checkout-btn__face .checkout-btn__order,
.checkout-btn__trigger:checked + .checkout-btn__face .checkout-btn__done,
.checkout-btn__trigger:checked + .checkout-btn__face .checkout-btn__car,
.checkout-btn__trigger:checked + .checkout-btn__face .checkout-btn__box::after,
.checkout-btn__trigger:checked + .checkout-btn__face .checkout-btn__box::before,
.checkout-btn__trigger:checked + .checkout-btn__face .checkout-btn__bg {
  animation-play-state: running;
}

.checkout-btn__trigger:checked + .checkout-btn__face .checkout-btn__stars {
  display: none;
}

/* Keyframes - same choreography as the original */
@keyframes ck-bg-scale {
  0%   { transform: translate(-100%, 50%) scale(1); }
  100% { transform: translate(-100%, 50%) scale(5); }
}

@keyframes ck-package {
  0%        { transform: translate(0%, 100%); }
  10%, 50%  { transform: translate(0%, 0%); }
  100%      { transform: translate(325%, 0%); }
}

@keyframes ck-text-out {
  0%        { transform: translate(0%, 0%); }
  10%, 100% { transform: translate(0%, -200%); }
}

@keyframes ck-text-in {
  0%, 50%   { transform: translate(-310%); }
  100%      { transform: translate(0%); }
}

@keyframes ck-car {
  0%, 10%   { transform: translate(-310%, 8%); }
  45%, 50%  { transform: translate(-60%, 8%); }
  100%      { transform: translate(350%, 8%); }
}

@keyframes ck-close {
  0%   { transform: rotate(210deg); }
  100% { transform: rotate(0deg); }
}

@keyframes ck-close-2 {
  0%   { transform: rotate(-210deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-btn__face * {
    animation: none !important;
  }
  .checkout-btn__order {
    transform: none;
  }
  .checkout-btn__done,
  .checkout-btn__car,
  .checkout-btn__package,
  .checkout-btn__stars,
  .checkout-btn__bg {
    display: none;
  }
}


/* Landing gallery - expanding accordion strip ("Our Latest Creations") */
.creations {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 22%, rgba(201, 161, 74, .12), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}

[data-theme="light"] .creations {
  background:
    radial-gradient(circle at 18% 22%, rgba(139, 111, 46, .13), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev-2) 100%);
}

.creations__head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.creations__head .eyebrow::before {
  display: none;
}

.creations__head .section-title {
  margin: 0 auto;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
}

.creations__head .lead {
  margin-inline: auto;
}

.creations__strip {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 1080px;
  height: 440px;
  margin: var(--space-lg) auto 0;
}

.creations__tile {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev-2);
  color: var(--text-strong);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: flex-grow .55s cubic-bezier(.22, .61, .36, 1), border-color .4s ease;
}

/* Expanded states: hover, keyboard focus, or the JS/PHP-selected tile */
.creations__tile.is-active,
.creations__tile:hover,
.creations__tile:focus-visible {
  flex-grow: 6;
  border-color: var(--border-hover);
  outline: none;
}

/* While the cursor is anywhere on the strip, collapse the selected tile
   unless it is the one being hovered - so only one panel is ever open. */
.creations__strip:hover .creations__tile.is-active:not(:hover) {
  flex-grow: 1;
}

.creations__tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.creations__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

.creations__tile.is-active img,
.creations__tile:hover img,
.creations__tile:focus-visible img {
  transform: scale(1.04);
}

.creations__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: linear-gradient(to top, rgba(5, 10, 19, .9), rgba(5, 10, 19, .35) 60%, transparent);
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}

.creations__tile.is-active .creations__caption,
.creations__tile:hover .creations__caption,
.creations__tile:focus-visible .creations__caption {
  opacity: 1;
  transform: none;
}

.creations__strip:hover .creations__tile.is-active:not(:hover) .creations__caption {
  opacity: 0;
  transform: translateY(10px);
}

.creations__eyebrow {
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.creations__caption strong {
  color: #f6f1e7;
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  line-height: .98;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .creations__strip {
    flex-direction: column;
    height: auto;
    max-width: 520px;
    gap: 12px;
  }

  .creations__tile,
  .creations__tile.is-active,
  .creations__tile:hover {
    flex: none;
    height: 220px;
  }

  .creations__tile .creations__caption {
    opacity: 1;
    transform: none;
  }

  .creations__caption strong {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creations__tile,
  .creations__tile img,
  .creations__caption {
    transition: none;
  }
}


/* Dedicated gallery page */
.gallery-page {
  min-height: auto;
  /* Override .dedicated-section's `height: calc(100vh - 76px)` clamp. The
     320-420vh spin runway below must live in normal flow; relying on it to
     overflow a clamped section scrolls unreliably on mobile. */
  height: auto;
  padding-top: clamp(36px, 6vh, 72px);
  background:
    radial-gradient(circle at 80% 12%, rgba(201, 161, 74, .13), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 48%, var(--bg) 100%);
}

[data-theme="light"] .gallery-page {
  background:
    radial-gradient(circle at 80% 12%, rgba(139, 111, 46, .14), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev-2) 48%, var(--bg) 100%);
}

.gallery-page__hero {
  max-width: 780px;
  margin-bottom: 30px;
}

.gallery-page__hero .section-title {
  max-width: 760px;
}

.gallery-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
}

.gallery-page__toolbar span:first-child {
  color: var(--accent);
  font-weight: 700;
}

/* On the gallery page, clip horizontal overflow without making <body> a
   scroll container (which `overflow-x: hidden` does) - otherwise the sticky
   3D stage below would never pin. Scoped via :has() to this page only. */
html:has(.gallery-page) body {
  overflow-x: clip;
}

/* Circular 3D gallery on the dedicated page */
.circular-gallery {
  /* sizing knobs read by the ring + every card; overridden per breakpoint */
  --cg-w: 300px;
  --cg-h: 400px;
  --cg-radius: 600px;
  position: relative;
  height: 420vh;            /* scroll distance that drives a full rotation */
  margin-top: 0;
}

.circular-gallery__sticky {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.circular-gallery__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
}

.circular-gallery__ring {
  position: relative;
  width: var(--cg-w);
  height: var(--cg-h);
  transform-style: preserve-3d;
  will-change: transform;
}

.cg-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cg-w);
  height: var(--cg-h);
  margin-left: calc(var(--cg-w) / -2);
  margin-top: calc(var(--cg-h) / -2);
  transform: rotateY(calc(var(--i) * var(--cg-angle))) translateZ(var(--cg-radius));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-elev) 55%, transparent);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.cg-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cg-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cg-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: rgba(5, 10, 19, .68);
  color: var(--accent);
  transition: transform .25s ease, background .25s ease;
}

.cg-card:hover .cg-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(5, 10, 19, .82);
}

/* Lightbox shared by image (enlarge) and video (play) cards */
.cg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(3, 8, 15, .85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.cg-lightbox.is-open {
  display: flex;
}

.cg-lightbox__inner {
  width: min(1040px, 100%);
  display: grid;
  gap: 12px;
}

.cg-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-strong);
}

.cg-lightbox__title {
  font-family: var(--display);
  font-size: 1.25rem;
}

.cg-lightbox__close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elev) 85%, transparent);
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cg-lightbox__close:hover {
  border-color: var(--accent);
}

.cg-lightbox__stage {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-hover);
  background: #02050a;
}

.cg-lightbox__stage img,
.cg-lightbox__stage video {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
}

.cg-card__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 20px;
  background: linear-gradient(to top, rgba(3, 7, 14, .92), rgba(3, 7, 14, .35) 55%, transparent);
  color: #fff;
}

.cg-card__caption h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.cg-card__caption em {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-soft);
}

.cg-card__caption p {
  margin: 10px 0 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}

.circular-gallery__hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.circular-gallery__hint svg {
  animation: cg-hint-bob 1.8s ease-in-out infinite;
}

@keyframes cg-hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 1100px) {
  .circular-gallery {
    --cg-w: 260px;
    --cg-h: 350px;
    --cg-radius: 460px;
    height: 380vh;
  }

  .circular-gallery__stage {
    perspective: 1600px;
  }
}

@media (max-width: 760px) {
  .circular-gallery {
    --cg-w: 200px;
    --cg-h: 272px;
    --cg-radius: 300px;
    height: 320vh;
  }

  .circular-gallery__stage {
    perspective: 1100px;
  }

  .cg-card__caption {
    padding: 14px;
  }

  .cg-card__caption h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 620px) {
  .gallery-page {
    padding-top: 48px;
  }
  .circular-gallery__sticky {
    top: 76px;
    height: calc(100svh - 76px);
  }

  .gallery-page__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .circular-gallery__hint svg {
    animation: none;
  }
}

.checkout-open {
  overflow: hidden;
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.checkout-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.checkout-panel__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elev-2);
  color: var(--text-strong);
  cursor: pointer;
}

.checkout-panel__title {
  margin: 0 0 18px;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
}

.checkout-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.checkout-form__wide {
  grid-column: 1 / -1;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-strong);
  padding: 0.82rem 0.9rem;
  font: inherit;
}

.payment-options {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.payment-options legend {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-weight: 800;
}

.payment-option {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px !important;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev-2);
  padding: 13px;
  cursor: pointer;
}

.payment-option input {
  width: 18px;
  height: 18px;
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option strong {
  color: var(--text-strong);
}

.payment-option small {
  margin-top: 3px;
  color: var(--text-muted);
  font-weight: 500;
}

.payment-method-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev-2);
  padding: 13px;
}

.payment-method-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-method-card strong {
  color: var(--text-strong);
}

.payment-method-card small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-weight: 500;
}

.payment-cards {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.payment-card {
  display: block;
  border-radius: 4px;
}

.checkout-form__error {
  margin: 14px 0 0;
  border: 1px solid rgba(255, 107, 107, 0.45);
  border-radius: 8px;
  background: rgba(255, 107, 107, 0.12);
  color: #ffb4b4;
  padding: 12px;
}

.checkout-form__submit {
  width: 100%;
  margin-top: 18px;
}

.payment-result {
  display: grid;
  align-items: center;
}

.payment-result__inner {
  max-width: 760px;
}

.payment-result__copy {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .checkout-form__grid {
    grid-template-columns: 1fr;
  }
}


.creations__play {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(7,17,31,.72);
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  pointer-events: none;
}
