@font-face {
  font-family: "Museo Sans 100";
  src: local("Museo Sans 100"), local("MuseoSans-100"), local("MuseoSans100");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #5a5a5a;
  --line: #141414;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Museo Sans 100", "Space Grotesk", sans-serif;
}

body * {
  font-family: "Museo Sans 100", "Space Grotesk", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500 !important;
}

body {
  overflow-x: hidden;
}

body[data-page="shop"] {
  --bg: #060606;
  --text: #f0f0f0;
  --muted: #b2b2b2;
  --line: #d8d8d8;
  background:
    radial-gradient(80rem 30rem at 10% 0%, rgba(255, 255, 255, 0.11), transparent 62%),
    radial-gradient(70rem 34rem at 90% 15%, rgba(255, 255, 255, 0.08), transparent 64%),
    #060606;
}

body[data-page="home"] {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #5a5a5a;
  --line: #141414;
  background:
    radial-gradient(80rem 45rem at 12% 8%, #1a1a1a 0%, #0d0d0d 52%, #050505 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 90;
}

body.is-leaving::after {
  opacity: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
}

body[data-page="shop"] .site-header {
  background: rgba(7, 7, 7, 0.92);
}

body[data-page="home"] .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #141414;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  text-decoration: none;
}

.logo-image {
  display: block;
  height: clamp(40px, 5.2vw, 60px);
  width: auto;
  max-width: min(62vw, 440px);
}

body[data-page="shop"] .logo-image {
  filter: invert(1) grayscale(1);
}

body[data-page="home"] .logo-image {
  filter: none;
}

.logo-fallback {
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  gap: 0.45rem;
}

.nav-link,
.menu-toggle {
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.44rem 0.72rem;
  font: inherit;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-link:hover,
.menu-toggle:hover,
.nav-link.is-active {
  border-color: var(--line);
}

.menu-toggle {
  display: none;
}

body[data-page="home"] .nav-link,
body[data-page="home"] .menu-toggle {
  color: #111;
}

body[data-page="home"] .nav-link:hover,
body[data-page="home"] .menu-toggle:hover,
body[data-page="home"] .nav-link.is-active {
  border-color: #111;
}

.page-main,
.site-footer {
  width: min(1400px, 100% - 8vw);
  margin: 0 auto;
}

.page-main {
  padding: 6.3rem 0 2.2rem;
  display: grid;
  gap: 1.2rem;
}

.hero-block,
.video-section,
.shop-head,
.about-grid,
.page-main > section {
  border: 1px solid var(--line);
  padding: clamp(1rem, 3.2vw, 2rem);
}

.home-video-main {
  width: 100%;
  min-height: 100vh;
  padding-top: 4.5rem;
}

.home-video-hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  overflow: hidden;
  cursor: pointer;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 0.8rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.18) 72%,
    rgba(0, 0, 0, 0) 100%
  );
}

body[data-page="home"] .hero-overlay h1 {
  color: #fff;
  max-width: 16ch;
}

.new-available-btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  padding: 0.62rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.new-available-btn:hover {
  background: #000;
  color: #fff;
}

.tap-hint {
  color: #f0f0f0;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.eyebrow {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 6vw, 5rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2.7rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 64ch;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.text-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-bottom: 1px solid var(--line);
}

.campaign-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.6rem;
}

.campaign-tile {
  position: relative;
  border: 1px solid var(--line);
  min-height: 250px;
  overflow: hidden;
  text-decoration: none;
}

.campaign-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: transform 280ms ease;
}

.campaign-tile:hover img {
  transform: scale(1.03);
}

.campaign-tile span {
  position: absolute;
  left: 0.6rem;
  bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.88);
  color: #000;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.28rem 0.38rem;
}

.tile-large {
  grid-row: span 2;
  min-height: 510px;
}

.video-shell {
  border: 1px solid var(--line);
}

.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-shell.wide video {
  aspect-ratio: 21 / 9;
}

.muted {
  font-size: 0.72rem;
}

.sweater-stage {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sweater-media-wrap {
  border: 1px solid var(--line);
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

.sweater-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.media-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.35rem 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sweater-info {
  border: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.muted-copy {
  max-width: 45ch;
}

.price {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.size-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.size-pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  min-width: 2.4rem;
  padding: 0.38rem 0.5rem;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.size-pill.is-active,
.size-pill:hover {
  background: #f2f2f2;
  color: #0b0b0b;
}

.cta-main {
  border: 1px solid var(--line);
  background: #efefef;
  color: #050505;
  padding: 0.68rem 0.95rem;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.button-selector {
  display: grid;
  gap: 0.8rem;
}

.button-style-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.button-style-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  min-height: 78px;
  padding: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.button-style-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.button-style-card span {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.button-style-card strong {
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.button-style-card.is-active {
  background: #f1f1f1;
  color: #080808;
}

.button-style-card.is-active span {
  color: #2f2f2f;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.8rem;
  align-items: start;
}

.quote-box {
  border: 1px solid var(--line);
  padding: 1rem;
}

.quote-box p {
  color: #111;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}

.info-grid {
  display: grid;
  gap: 0.3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0 2rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.site-footer p {
  color: #161616;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-page="shop"] .site-footer p {
  color: #f0f0f0;
}

@media (max-width: 980px) {
  .campaign-grid,
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tile-large {
    grid-row: span 1;
    min-height: 350px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 4vw;
    width: min(84vw, 280px);
    background: #fff;
    border: 1px solid var(--line);
    padding: 0.5rem;
    display: grid;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body[data-page="shop"] .site-nav {
    background: #090909;
  }

  body[data-page="home"] .site-nav {
    background: #090909;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    text-align: left;
  }

  .campaign-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .tile-large,
  .campaign-tile {
    min-height: 280px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation: none !important;
  }
}

/* Natural white redesign overrides */
body,
body[data-page="home"],
body[data-page="shop"],
body[data-page="about"] {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f5f5f;
  --line: #d7d7d7;
  background: #ffffff;
  color: #111111;
}

.site-header,
body[data-page="shop"] .site-header,
body[data-page="home"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e2e2;
}

.logo-image,
body[data-page="shop"] .logo-image,
body[data-page="home"] .logo-image {
  filter: none;
}

.nav-link,
.menu-toggle,
body[data-page="home"] .nav-link,
body[data-page="home"] .menu-toggle {
  color: #111;
  border: none;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.nav-link.is-active,
.nav-link:hover,
.menu-toggle:hover,
body[data-page="home"] .nav-link.is-active,
body[data-page="home"] .nav-link:hover,
body[data-page="home"] .menu-toggle:hover {
  border: none;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.page-main {
  width: min(980px, 100% - 12vw);
  padding-top: 7rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.hero-block,
.video-section,
.shop-head,
.about-grid,
.page-main > section,
.sweater-media-wrap,
.sweater-info,
.button-style-card,
.quote-box,
.site-footer,
.video-shell {
  border: none;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.home-video-main {
  width: 100%;
  margin: 0;
  padding-top: 0;
}

.home-video-hero {
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
}

.hero-video {
  filter: none;
}

.hero-overlay {
  min-height: 100vh;
  align-content: end;
  padding: clamp(1rem, 4vw, 2.2rem);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}

body[data-page="home"] .hero-overlay h1,
.tap-hint {
  color: #111;
}

.new-available-btn {
  border: 1px solid #111;
  background: #111;
  color: #fff;
}

.new-available-btn:hover {
  background: #fff;
  color: #111;
}

.sweater-stage,
.button-style-stack,
.about-grid,
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.button-style-card {
  min-height: 0;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.button-style-card:hover,
.button-style-card.is-active {
  transform: none;
  background: transparent;
  color: #111;
}

.price {
  color: #111;
}

.media-tag {
  border: none;
  background: rgba(255, 255, 255, 0.7);
  color: #111;
}

.size-pill {
  border: 1px solid #cfcfcf;
}

.size-pill.is-active,
.size-pill:hover {
  background: #111;
  color: #fff;
}

.cta-main {
  border: 1px solid #111;
  background: #111;
  color: #fff;
}

.site-footer {
  width: min(980px, 100% - 12vw);
  margin-top: 0;
  padding-top: 0;
}

.site-footer p,
body[data-page="shop"] .site-footer p {
  color: #666;
}

.shop-items {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.shop-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  flex: 1 1 auto;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.shop-item:last-child {
  border-bottom: 1px solid #ececec;
}

.shop-item-image {
  width: min(42vw, 180px);
  max-width: 180px;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.shop-item-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: none;
}

.shop-item-copy h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.shop-item-price {
  color: #111;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.product-main {
  width: min(1080px, 100% - 12vw);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-main-media {
  position: relative;
}

.product-main-media img {
  width: 100%;
  max-height: 68vh;
  object-fit: cover;
  border-radius: 18px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: #111;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#prevImage {
  left: 0.6rem;
}

#nextImage {
  right: 0.6rem;
}

.thumb-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.thumb-btn {
  border: 1px solid #ddd;
  background: transparent;
  padding: 0;
  min-width: 84px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}

.thumb-btn img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.thumb-btn.is-active {
  border-color: #111;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 70ch;
}

.product-price {
  color: #111;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  text-decoration: none;
  color: #111;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 1.35rem;
  line-height: 1;
  transform: translateX(0) scale(1);
  transition:
    transform 180ms cubic-bezier(0.22, 0.72, 0.1, 1),
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.back-arrow:hover {
  border-color: #111;
  transform: translateX(-2px) scale(1.03);
}

.back-arrow:active {
  transform: translateX(-1px) scale(0.9) rotate(-10deg);
}

.back-arrow:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

body[data-page="gate"] {
  --bg: #ffffff;
  --text: #121212;
  --muted: #666666;
  --line: #dddddd;
  --gate-vh: 100vh;
  --gate-min-side: min(100vw, var(--gate-vh));
  --gate-scene-size: clamp(228px, calc(var(--gate-min-side) * 0.62), 480px);
  --gate-hold-size: clamp(132px, calc(var(--gate-scene-size) * 0.44), 212px);
  background: #ffffff;
  color: #121212;
}

@supports (height: 100svh) {
  body[data-page="gate"] {
    --gate-vh: 100svh;
  }
}

@supports (height: 100dvh) {
  body[data-page="gate"] {
    --gate-vh: 100dvh;
  }
}

body[data-page="gate"]::after {
  display: none;
}

.gate-main {
  position: relative;
  min-height: var(--gate-vh);
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  padding-top: calc(clamp(1rem, 4vw, 2rem) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(clamp(1rem, 4vw, 2rem) + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

.gate-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 72% at 50% 8%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.34) 48%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
}

.gate-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  border: none;
  background: transparent;
  backdrop-filter: none;
  padding: clamp(0.4rem, 2vw, 1rem);
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
  will-change: opacity, transform, filter;
}

.gate-kicker {
  color: #6b6b6b;
  font-size: 0.64rem;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.gate-title {
  margin: 0;
}

.gate-logo {
  display: block;
  height: clamp(82px, 15vw, 150px);
  width: auto;
  max-width: min(98%, 760px);
  margin: 0 auto;
}

.gate-instruction {
  color: #1e1e1e;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.9rem;
  margin-bottom: -0.3rem;
}

.gate-instruction-sub {
  color: #747474;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gate-scene {
  width: var(--gate-scene-size);
  height: var(--gate-scene-size);
  border-radius: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.gate-scene.is-dragging {
  cursor: grabbing;
}

.gate-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.gate-hold-wrap {
  --gate-progress: 0;
  position: relative;
  width: var(--gate-hold-size);
  height: var(--gate-hold-size);
  margin: 0.2rem 0 0.45rem;
}

.gate-progress-circle {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(
    #101010 calc(var(--gate-progress, 0) * 1turn),
    #ececec 0turn
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 9px),
    #000 calc(100% - 8px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 9px),
    #000 calc(100% - 8px)
  );
}

.gate-orbit-ring {
  position: absolute;
  inset: 12px;
  border: 1px dashed #cfcfcf;
  border-radius: 999px;
  animation: gateRingSpin 4.8s linear infinite;
}

.gate-hold-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 156px;
  height: 156px;
  border-radius: 999px;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.gate-hold-button:hover,
.gate-hold-button.is-holding {
  background: #111;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.gate-hold-button:disabled {
  opacity: 0.65;
  cursor: default;
}

.gate-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.gate-sound-toggle {
  border: 1px solid #c8c8c8;
  background: transparent;
  color: #555;
  font: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.38rem 0.54rem;
  cursor: pointer;
}

.gate-status {
  color: #777;
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gate-owner-hint {
  margin-top: 0.7rem;
  color: rgba(0, 0, 0, 0.18);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  user-select: none;
}

@keyframes gateRingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.gate-cinematic {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.gate-veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.gate-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.78) 24%,
    rgba(255, 255, 255, 0) 62%
  );
  mix-blend-mode: screen;
  opacity: 0;
}

.gate-grain {
  position: absolute;
  inset: -20%;
  opacity: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px, 5px 5px;
  mix-blend-mode: soft-light;
  transform: translate3d(0, 0, 0);
}

.gate-cinematic-type {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 15vw, 10rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(6px);
}

body.gate-is-winning .gate-cinematic {
  animation: gateCinematicOn 200ms linear forwards;
}

body.gate-is-winning .gate-panel {
  animation: gatePanelOut 620ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

body.gate-is-winning .gate-veil {
  animation: gateVeilOpen 1200ms cubic-bezier(0.22, 0.72, 0.2, 1) forwards;
}

body.gate-is-winning .gate-flash {
  animation: gateFlashBurst 320ms ease 70ms forwards;
}

body.gate-is-winning .gate-grain {
  animation: gateGrainIn 820ms steps(2, end) 100ms forwards;
}

body.gate-is-winning .gate-cinematic-type {
  animation: gateTypeReveal 860ms cubic-bezier(0.22, 0.72, 0.2, 1) 90ms forwards;
}

@keyframes gateCinematicOn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gatePanelOut {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(7px);
  }
}

@keyframes gateVeilOpen {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  36% {
    opacity: 1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

@keyframes gateFlashBurst {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  45% {
    opacity: 0.96;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes gateGrainIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  35% {
    opacity: 0.28;
    transform: translate3d(-1%, 1%, 0);
  }
  100% {
    opacity: 0.08;
    transform: translate3d(1%, -1%, 0);
  }
}

@keyframes gateTypeReveal {
  0% {
    opacity: 0;
    transform: scale(1.08);
    filter: blur(8px);
  }
  32% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
  72% {
    opacity: 0.96;
    transform: scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0.38;
    transform: scale(0.995);
    filter: blur(1px);
  }
}

@media (max-width: 760px) {
  body[data-page="gate"] {
    --gate-scene-size: clamp(220px, calc(var(--gate-min-side) * 0.72), 460px);
  }

  .gate-main {
    padding: 0.35rem;
    padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
    padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
    min-height: var(--gate-vh);
  }

  .gate-panel {
    width: 100%;
    max-width: none;
    min-height: calc(var(--gate-vh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.7rem);
    gap: 0.48rem;
    align-content: center;
  }

  .gate-controls-row {
    align-items: flex-start;
  }
}

/* iPhone Pro / compact high-end phones: keep 3D + animation proportionate */
@media (max-width: 430px) {
  body[data-page="gate"] {
    --gate-scene-size: clamp(208px, 72vw, 360px);
  }

  .gate-main {
    padding: 0.85rem;
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .gate-panel {
    gap: 0.5rem;
    padding: 0.2rem;
  }

  .gate-logo {
    height: clamp(70px, 12vw, 112px);
  }

  .gate-instruction {
    margin-top: 0.45rem;
    margin-bottom: -0.1rem;
  }

  .gate-hold-button {
    width: clamp(108px, calc(var(--gate-hold-size) * 0.72), 132px);
    height: clamp(108px, calc(var(--gate-hold-size) * 0.72), 132px);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
  }

  .gate-cinematic-type {
    font-size: clamp(1.9rem, 12vw, 4.8rem);
    letter-spacing: 0.1em;
  }
}

/* Mobile portrait fine-tune (landscape already tuned) */
@media (max-width: 480px) and (orientation: portrait) {
  body[data-page="gate"] {
    --gate-scene-size: clamp(214px, 76vw, 380px);
  }

  .gate-main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip;
    padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
    padding-right: max(0.45rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(0.45rem, env(safe-area-inset-left, 0px));
  }

  .gate-panel {
    width: 100%;
    max-width: none;
    min-height: calc(var(--gate-vh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.7rem);
    gap: 0.22rem;
    padding: 0;
    align-content: center;
  }

  .gate-logo {
    height: clamp(52px, 9.2vw, 82px);
  }

  .gate-instruction {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    margin-top: 0.18rem;
    margin-bottom: 0;
  }

  .gate-instruction-sub,
  .gate-status {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .gate-hold-wrap {
    width: clamp(106px, calc(var(--gate-hold-size) * 0.8), 148px);
    height: clamp(106px, calc(var(--gate-hold-size) * 0.8), 148px);
    margin-top: 0;
    margin-bottom: 0.1rem;
  }

  .gate-hold-button {
    width: clamp(82px, calc(var(--gate-hold-size) * 0.6), 102px);
    height: clamp(82px, calc(var(--gate-hold-size) * 0.6), 102px);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .gate-owner-hint {
    font-size: 0.44rem;
    letter-spacing: 0.14em;
  }
}

/* Fallback for mobile browsers that report orientation inconsistently */
@media (max-width: 480px) {
  body[data-page="gate"] {
    --gate-scene-size: clamp(208px, 72vw, 360px);
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  body[data-page="gate"] {
    --gate-scene-size: clamp(176px, calc(var(--gate-vh) * 0.5), 320px);
  }

  .gate-main {
    padding-top: calc(0.25rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
  }

  .gate-panel {
    min-height: calc(var(--gate-vh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.5rem);
    gap: 0.18rem;
    padding: 0;
  }

  .gate-logo {
    height: clamp(56px, 11vh, 94px);
  }

  .gate-instruction {
    margin-top: 0.2rem;
    margin-bottom: 0;
  }

  .gate-hold-wrap {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate-orbit-ring {
    animation: none !important;
  }

  body.gate-is-winning .gate-veil,
  body.gate-is-winning .gate-flash,
  body.gate-is-winning .gate-grain,
  body.gate-is-winning .gate-cinematic-type,
  body.gate-is-winning .gate-panel {
    animation-duration: 1ms !important;
  }
}

@media (max-width: 760px) {
  .site-nav,
  body[data-page="shop"] .site-nav,
  body[data-page="home"] .site-nav {
    background: #ffffff;
    border: 1px solid #e5e5e5;
  }

  .home-video-main {
    width: 100%;
  }

  .home-video-hero,
  .hero-overlay {
    min-height: 100vh;
    border-radius: 0;
  }

  .shop-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-item-image {
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 4.5;
  }
}

/* Shop catalog layout (reference-inspired) */
.shop-catalog-main {
  width: 100%;
  padding-top: 6.4rem;
}

.shop-catalog {
  width: min(1680px, 100% - 0.4rem);
  margin: 0 auto;
  padding: 0 0 2rem;
}

.catalog-title {
  text-align: center;
  margin: 1.2rem 0 4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.catalog-count {
  color: #171717;
  font-size: 0.78rem;
}

.catalog-actions {
  display: flex;
  gap: 0.45rem;
}

.catalog-action {
  border: none;
  background: transparent;
  color: #141414;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.catalog-card {
  text-decoration: none;
  color: #111;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  background: #efefef;
}

.catalog-card-copy {
  text-align: center;
  padding: 0.6rem 0.1rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.catalog-card-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.catalog-card-copy p {
  color: #245be9;
  font-size: 0.79rem;
}

.catalog-card-copy span {
  font-size: 0.88rem;
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shop-catalog-main {
    padding-top: 5.8rem;
  }

  .catalog-title {
    margin: 0.5rem 0 2.2rem;
    font-size: 1.12rem;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

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

/* Home 3D redesign */
.home-3d-main {
  width: min(1500px, 100% - 6vw);
  margin: 0 auto;
  padding-top: 6.3rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: homeMainIn 680ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.stl-hero {
  position: relative;
  min-height: 78vh;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(60rem 28rem at 18% 16%, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0) 58%),
    radial-gradient(48rem 24rem at 82% 84%, rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0) 60%),
    linear-gradient(145deg, #fafafa 0%, #f2f2f2 60%, #ededed 100%);
}

.stl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.stl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 56%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.stl-aura {
  position: absolute;
  inset: -20% -15%;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 90deg at 50% 50%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0));
  filter: blur(50px);
  animation: auraSpin 16s linear infinite;
}

.stl-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stl-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: contrast(1.08) saturate(0.88);
}

.stl-hero-copy {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 3;
  display: grid;
  gap: 0.3rem;
  color: #111;
  text-shadow: 0 5px 16px rgba(255, 255, 255, 0.65);
}

.stl-hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(1.4rem, 5vw, 3.7rem);
  margin: 0;
}

.hero-subline {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.72);
}

.hero-scroll-cue {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 3;
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
  animation: cuePulse 2.2s ease-in-out infinite;
}

.home-cta-wrap {
  display: flex;
  justify-content: center;
  padding: 0.4rem 0 0.6rem;
  animation: homeItemIn 720ms 120ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.behind-scene-section {
  padding-top: 1rem;
  display: grid;
  gap: 0.7rem;
  animation: homeItemIn 760ms 220ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.behind-video {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f0f0f;
}

@keyframes auraSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes cuePulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes homeMainIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes homeItemIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body[data-page="home"] .site-header {
  border-bottom: none;
  box-shadow: none;
}

body[data-page="home"] .new-available-btn {
  border: none;
  box-shadow: none;
}

body[data-page="home"] .new-available-btn:hover {
  border: none;
}

/* Global page-enter animation */
.site-header,
.page-main,
.home-3d-main,
.site-footer {
  transition: transform 600ms cubic-bezier(0.2, 0.72, 0.2, 1), opacity 600ms ease;
}

body.is-entering .site-header {
  opacity: 0;
  transform: translateY(-12px);
}

body.is-entering .page-main,
body.is-entering .home-3d-main {
  opacity: 0;
  transform: translateY(18px);
}

body.is-entering .site-footer {
  opacity: 0;
  transform: translateY(14px);
}

/* About page: remove all frame borders */
body[data-page="about"] .site-header {
  border-bottom: none !important;
  box-shadow: none !important;
}

body[data-page="about"] .page-main > section,
body[data-page="about"] .about-grid,
body[data-page="about"] .video-shell,
body[data-page="about"] .quote-box,
body[data-page="about"] .site-footer {
  border: none !important;
  box-shadow: none !important;
}

/* Frameless mode for all pages */
body .site-header {
  border-bottom: none !important;
  box-shadow: none !important;
}

body .page-main > section,
body .home-3d-main > section,
body .shop-catalog,
body .product-detail,
body .video-shell,
body .about-grid,
body .quote-box,
body .sweater-media-wrap,
body .sweater-info,
body .site-footer,
body .shop-item,
body .thumb-btn,
body .back-arrow,
body .catalog-card,
body .catalog-card img {
  border: none !important;
  box-shadow: none !important;
}

body .new-available-btn,
body .cta-main,
body .gallery-arrow,
body .size-pill {
  border: none !important;
}

/* Stronger enter motion for every page */
body.is-entering .shop-catalog-main,
body.is-entering .product-main,
body.is-entering .page-main,
body.is-entering .home-3d-main {
  opacity: 0;
  transform: translateY(22px);
}

.shop-catalog-main,
.product-main,
.page-main,
.home-3d-main {
  transition: transform 700ms cubic-bezier(0.2, 0.72, 0.2, 1), opacity 700ms ease;
}

.shop-catalog .catalog-card {
  opacity: 0;
  transform: translateY(10px);
  animation: cardIn 560ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.shop-catalog .catalog-card:nth-child(1) { animation-delay: 40ms; }
.shop-catalog .catalog-card:nth-child(2) { animation-delay: 80ms; }
.shop-catalog .catalog-card:nth-child(3) { animation-delay: 120ms; }
.shop-catalog .catalog-card:nth-child(4) { animation-delay: 160ms; }
.shop-catalog .catalog-card:nth-child(5) { animation-delay: 200ms; }
.shop-catalog .catalog-card:nth-child(6) { animation-delay: 240ms; }

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .home-3d-main {
    width: min(1500px, 100% - 8vw);
    padding-top: 5.8rem;
  }

  .stl-hero {
    min-height: 62vh;
    border-radius: 0;
  }

  .stl-hero-copy {
    left: 0.9rem;
    bottom: 0.9rem;
  }

  .hero-scroll-cue {
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .behind-video {
    border-radius: 14px;
  }
}

/* Single product home layout */
body[data-page="home"] {
  --home-progress: 0;
  --home-stage-shift: 0px;
  --home-video-offset: 72px;
  background: #ffffff !important;
}

body[data-page="home"] .site-header {
  background: transparent !important;
}

.single-product-main {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-top: 4.7rem;
}

.single-product-main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(86rem 42rem at 15% 8%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0));
  transition: none;
}

.single-stage {
  position: relative;
  min-height: calc(100vh - 4.7rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 2;
  opacity: calc(1 - (var(--home-progress) * 0.42));
  transition: opacity 220ms linear;
}

.lineup-track {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-54% - (var(--home-stage-shift) * 0.16)));
  width: min(1900px, 98vw);
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  gap: clamp(0.7rem, 2.5vw, 2.8rem);
  pointer-events: none;
  z-index: 1;
}

.lineup-ghost {
  width: clamp(24px, 1.8vw, 36px);
  height: clamp(130px, 13vw, 220px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 14%, rgba(60, 60, 60, 0.34) 0 18%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(to bottom, rgba(40, 40, 40, 0.46) 28%, rgba(40, 40, 40, 0.18) 100%);
  opacity: 0.34;
  transform-origin: bottom center;
}

.lineup-ghost:nth-child(2n) { height: clamp(120px, 11.5vw, 200px); opacity: 0.3; }
.lineup-ghost:nth-child(3n) { transform: rotate(-3deg); }
.lineup-ghost:nth-child(4n) { transform: rotate(4deg); }
.lineup-ghost:nth-child(5n) { opacity: 0.25; }

.single-model-wrap {
  position: relative;
  z-index: 3;
  width: min(720px, 68vw);
  height: min(82vh, 900px);
  margin-top: -2vh;
  transform: translateY(calc(var(--home-stage-shift) * -0.2));
  transition: transform 220ms linear;
}

.single-model-scene {
  position: absolute;
  inset: 0;
}

.single-model-scene canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.single-info {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 2vw, 1.7rem);
  transform: translate(-50%, calc(var(--home-stage-shift) * -0.08));
  z-index: 4;
  text-align: center;
  display: grid;
  gap: 0.5rem;
  transition: transform 220ms linear;
}

.single-info h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 2.2rem);
}

body[data-page="home"] .single-info .new-available-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.64rem 1.05rem;
}

body[data-page="home"] .model-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  justify-content: flex-end;
}

body[data-page="home"] .model-switch-btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.36rem 0.5rem;
  cursor: pointer;
}

body[data-page="home"] .model-switch-btn.is-active,
body[data-page="home"] .model-switch-btn:hover {
  background: #111;
  color: #fff;
}

body[data-page="home"] .single-info {
  left: auto;
  right: clamp(1rem, 2.8vw, 2rem);
  bottom: clamp(1rem, 2.2vw, 1.8rem);
  transform: none;
  text-align: right;
}

body[data-page="home"] .single-info .eyebrow,
body[data-page="home"] .single-info h1 {
  display: none;
}

body[data-page="home"] .single-info .new-available-btn:hover {
  background: #fff;
  color: #111;
}

.home-video-scroll {
  width: min(1600px, 96vw);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.2rem 0 2.2rem;
  display: grid;
  align-content: center;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
  opacity: 0.72;
  transform: translateY(var(--home-video-offset));
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.home-video-scroll.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

.home-video-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
}

.home-scroll-video {
  width: 100%;
  display: block;
  border-radius: 16px;
  max-height: 76vh;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f0f0f;
  cursor: pointer;
}

.home-video-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.video-slider-wrap {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #222;
}

.video-volume-slider {
  width: min(340px, 60vw);
  accent-color: #111;
  cursor: pointer;
}

.video-vol-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #222;
  margin-left: 0.2rem;
}

.home-video-scroll .home-video-head,
.home-video-scroll .home-scroll-video,
.home-video-scroll .home-video-controls {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.home-video-scroll.is-visible .home-video-head {
  opacity: 1;
  transform: translateY(0);
}

.home-video-scroll.is-visible .home-scroll-video {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

.home-video-scroll.is-visible .home-video-controls {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 180ms;
}

@media (max-width: 860px) {
  .single-product-main {
    padding-top: 4.3rem;
  }

  .single-stage {
    min-height: calc(100vh - 4.3rem);
  }

  .lineup-track {
    width: 110vw;
    gap: 0.75rem;
  }

  .lineup-ghost {
    width: 22px;
    height: 120px;
  }

  .single-model-wrap {
    width: min(760px, 96vw);
    height: min(78vh, 680px);
  }

  .home-video-scroll {
    width: min(1200px, 94vw);
    min-height: 100vh;
    padding: 1rem 0 1.6rem;
  }

  .home-video-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-scroll-video {
    border-radius: 12px;
    max-height: 70vh;
  }

  .video-volume-slider {
    width: min(260px, 58vw);
  }
}

/* High-end interaction overrides */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(90deg, #0b0b0b 0%, #0f0f0f 100%);
  transform: translateX(-102%);
  transition: transform 760ms cubic-bezier(0.22, 0.72, 0.1, 1);
}

body::after {
  z-index: 119;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 760ms cubic-bezier(0.22, 0.72, 0.1, 1);
}

body.is-leaving::before {
  transform: translateX(0%);
}

body.is-leaving::after {
  opacity: 1;
}

.fx-link,
.catalog-card,
.campaign-tile,
.shop-item,
.thumb-btn,
.new-available-btn,
.cta-main {
  cursor: pointer;
}

.fx-link {
  position: relative;
  transition: opacity 280ms ease, letter-spacing 280ms ease;
}

.fx-link:hover {
  opacity: 0.8;
}

.fx-link:focus-visible,
.menu-toggle:focus-visible,
.nav-link:focus-visible,
.catalog-card:focus-visible,
.catalog-action:focus-visible,
.thumb-btn:focus-visible,
.gallery-arrow:focus-visible,
.cta-main:focus-visible,
.new-available-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.985);
  filter: blur(7px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition:
    opacity 860ms cubic-bezier(0.22, 0.72, 0.1, 1) var(--reveal-delay, 0ms),
    transform 860ms cubic-bezier(0.22, 0.72, 0.1, 1) var(--reveal-delay, 0ms),
    filter 900ms ease var(--reveal-delay, 0ms);
}

.catalog-card,
.campaign-tile {
  position: relative;
  overflow: hidden;
}

.catalog-card::after,
.campaign-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.045) 0px,
      rgba(0, 0, 0, 0.045) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 3px
    );
  transition: opacity 340ms ease;
  mix-blend-mode: soft-light;
}

.catalog-card img,
.campaign-tile img,
.shop-item-image,
.product-main-media img,
.thumb-btn img {
  transition:
    transform 700ms cubic-bezier(0.22, 0.72, 0.1, 1),
    filter 480ms ease;
  transform-origin: center;
}

.catalog-card:hover img,
.catalog-card:focus-visible img,
.campaign-tile:hover img,
.campaign-tile:focus-visible img,
.shop-item:hover .shop-item-image,
.shop-item:focus-visible .shop-item-image,
.product-main-media:hover img,
.thumb-btn:hover img,
.thumb-btn:focus-visible img {
  transform: scale(1.03);
  filter: contrast(1.04) saturate(1.02);
}

.catalog-card:hover::after,
.catalog-card:focus-visible::after,
.campaign-tile:hover::after,
.campaign-tile:focus-visible::after {
  opacity: 1;
}

.single-model-wrap {
  --stl-tilt-x: 0deg;
  --stl-tilt-y: 0deg;
  transform:
    translateY(calc(var(--home-stage-shift) * -0.2))
    perspective(1200px)
    rotateX(var(--stl-tilt-x))
    rotateY(var(--stl-tilt-y));
  transition: transform 220ms linear;
  will-change: transform;
}

.shop-catalog-main {
  width: min(1600px, 100% - 8vw);
  margin: 0 auto;
  padding-top: 6.8rem;
}

.shop-catalog {
  width: 100%;
  padding: 0 0 3.8rem;
}

.catalog-title {
  margin: 0.8rem 0 3.2rem;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

body[data-page="shop"] .catalog-title {
  font-family: "Museo Sans 100", "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
  text-transform: none;
}

.catalog-toolbar {
  margin-bottom: 1.4rem;
}

.catalog-grid {
  gap: clamp(1rem, 2.6vw, 2.2rem);
}

.shop-catalog .catalog-card {
  animation: none;
}

.catalog-card-copy {
  text-align: center;
  padding: 0.9rem 0 0;
  gap: 0.18rem;
}

.catalog-card-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.02rem, 1.6vw, 1.26rem);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.catalog-card-copy p {
  color: #5f5f5f;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog-card-copy span {
  font-size: 1.08rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .site-nav,
  body[data-page="shop"] .site-nav,
  body[data-page="home"] .site-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 42%),
      #090909;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 1.1rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 0.72, 0.1, 1);
    z-index: 75;
    border: none;
    padding: 4.8rem 8vw 3rem;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .site-nav .nav-link,
  body[data-page="home"] .site-nav .nav-link {
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 10vw, 3.6rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    border: none;
    padding: 0.2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 340ms ease, transform 480ms cubic-bezier(0.22, 0.72, 0.1, 1);
  }

  .site-nav.is-open .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav.is-open .nav-link:nth-child(1) { transition-delay: 80ms; }
  .site-nav.is-open .nav-link:nth-child(2) { transition-delay: 140ms; }
  .site-nav.is-open .nav-link:nth-child(3) { transition-delay: 200ms; }

  .site-nav .nav-link.is-active,
  .site-nav .nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 85;
  }

  body.is-nav-open {
    overflow: hidden;
  }

  .shop-catalog-main {
    width: min(1600px, 100% - 7vw);
    padding-top: 5.7rem;
  }

  .catalog-title {
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    transition: none !important;
  }

  .reveal,
  .reveal.is-visible,
  .site-nav,
  .site-nav .nav-link,
  .catalog-card img,
  .campaign-tile img,
  .single-model-wrap {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

body.is-leaving::after {
  opacity: 1;
  backdrop-filter: blur(6px);
}

body::after {
  backdrop-filter: blur(0px);
  transition: opacity 220ms ease, backdrop-filter 280ms ease;
}

body[data-page="story"],
body[data-page="story-photo"],
body[data-page="story-video"],
body[data-page="story-video-library"],
body[data-page="story-video-player"] {
  --bg: #ffffff;
  --text: #101010;
  --muted: #666;
  --line: #dcdcdc;
  background: #ffffff;
  color: #101010;
}

.story-main {
  width: min(1200px, 100% - 10vw);
  padding-top: 7rem;
  padding-bottom: 3rem;
  display: grid;
  gap: 1.4rem;
}

.story-head {
  display: grid;
  gap: 0.55rem;
}

.story-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.story-hub-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid #e6e6e6;
  overflow: hidden;
  display: grid;
  background: #fff;
}

.story-hub-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 260ms ease;
}

.story-hub-card:hover img {
  transform: scale(1.03);
}

.story-card-copy {
  padding: 0.9rem 1rem 1.05rem;
  display: grid;
  gap: 0.35rem;
}

.story-card-copy h2 {
  font-size: clamp(1.4rem, 3.8vw, 2.2rem);
}

.story-card-copy p {
  color: #5f5f5f;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.story-photo-tile {
  border: 1px solid #e7e7e7;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.story-photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 260ms ease;
}

.story-photo-tile:hover img {
  transform: scale(1.03);
}

.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.82);
  display: grid;
  place-items: center;
  padding: min(3vw, 1.5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.story-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.story-lightbox img {
  max-width: min(92vw, 1180px);
  max-height: 84vh;
  object-fit: contain;
}

.story-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(20, 20, 20, 0.55);
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.42rem 0.58rem;
  cursor: pointer;
}

.is-lightbox-open {
  overflow: hidden;
}

.story-feature-video {
  border: 1px solid #e3e3e3;
  padding: 0.55rem;
}

.story-feature-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.story-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #151515;
  background: #151515;
  color: #fff;
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.66rem 0.86rem;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.story-more-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  color: #151515;
}

.story-more-btn.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.story-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.story-video-tile {
  text-decoration: none;
  border: 1px solid #e6e6e6;
  color: inherit;
  background: #fff;
  overflow: hidden;
  display: grid;
}

.story-video-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 260ms ease;
}

.story-video-tile:hover img {
  transform: scale(1.03);
}

.story-video-tile span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #333;
  padding: 0.62rem 0.7rem;
}

.story-player-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.story-back-arrow {
  position: fixed;
  top: 5.6rem;
  left: 4vw;
  z-index: 45;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px) {
  .story-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .back-arrow {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.15rem;
  }

  .story-back-arrow {
    top: 5.3rem;
    left: 4vw;
  }

  .story-main {
    width: min(1200px, 100% - 8vw);
  }

  .story-hub-grid,
  .story-photo-grid,
  .story-video-grid {
    grid-template-columns: 1fr;
  }

  .story-player-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-more-btn {
    width: 100%;
  }
}

/* Global pure-white background enforcement */
html,
body {
  background: #ffffff !important;
}

body,
body[data-page="home"],
body[data-page="shop"],
body[data-page="about"],
body[data-page="product"],
body[data-page="story"],
body[data-page="story-photo"],
body[data-page="story-video"],
body[data-page="story-video-library"],
body[data-page="story-video-player"],
body[data-page="gate"] {
  background: #ffffff !important;
}

/* Remove page background overlays/textures */
body::before,
body::after,
.single-product-main::before {
  display: none !important;
  background: transparent !important;
}

/* Ensure clean white area behind home 3D scene */
.single-product-main,
.single-stage,
.single-model-wrap,
.single-model-scene,
#stlScene {
  background: transparent !important;
}

.lineup-track {
  display: none !important;
}

/* Home dark-fantasy forest background override */
body[data-page="home"] {
  background:
    radial-gradient(120rem 60rem at 20% 0%, rgba(22, 46, 38, 0.52), rgba(5, 9, 8, 0) 62%),
    radial-gradient(96rem 52rem at 85% 10%, rgba(34, 62, 44, 0.4), rgba(5, 8, 8, 0) 65%),
    linear-gradient(180deg, #0a0f10 0%, #0a1211 52%, #070909 100%) !important;
  background-attachment: fixed;
}

body[data-page="home"]::before,
body[data-page="home"]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: block !important;
}

/* Deep forest silhouettes */
body[data-page="home"]::before {
  background:
    radial-gradient(60rem 20rem at 15% 100%, rgba(6, 14, 11, 0.9), rgba(6, 14, 11, 0) 70%),
    radial-gradient(54rem 18rem at 50% 100%, rgba(5, 13, 10, 0.86), rgba(5, 13, 10, 0) 70%),
    radial-gradient(58rem 20rem at 85% 100%, rgba(6, 14, 11, 0.9), rgba(6, 14, 11, 0) 70%);
  mix-blend-mode: normal;
  opacity: 0.82;
}

/* Slow drifting mist */
body[data-page="home"]::after {
  background:
    radial-gradient(90rem 36rem at 20% 75%, rgba(190, 220, 200, 0.08), rgba(0, 0, 0, 0) 66%),
    radial-gradient(86rem 34rem at 78% 82%, rgba(170, 205, 190, 0.07), rgba(0, 0, 0, 0) 68%);
  opacity: 0.55;
  animation: homeForestMist 13s ease-in-out infinite alternate;
}

body[data-page="home"] .single-product-main::before {
  display: block !important;
  opacity: 0.38;
  background:
    radial-gradient(90rem 40rem at 18% 8%, rgba(162, 198, 176, 0.12), rgba(162, 198, 176, 0) 70%),
    linear-gradient(180deg, rgba(8, 12, 11, 0.12), rgba(8, 12, 11, 0.02) 46%, rgba(8, 12, 11, 0));
  transition: opacity 260ms linear;
}

@keyframes homeForestMist {
  from {
    transform: translate3d(-2%, 0, 0) scale(1.02);
    opacity: 0.48;
  }
  to {
    transform: translate3d(2%, -1%, 0) scale(1.04);
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"]::after {
    animation: none !important;
  }
}

/* Final home override: empty/plain background */
body[data-page="home"] {
  background: #ffffff !important;
}

body[data-page="home"]::before,
body[data-page="home"]::after,
body[data-page="home"] .single-product-main::before {
  display: none !important;
  background: transparent !important;
  animation: none !important;
}

/* Story page: featured video fullscreen */
body[data-page="story"] .story-main {
  width: 100%;
  max-width: none;
  min-height: auto;
  padding: 6.2rem 0 2rem;
  gap: 0.9rem;
}

body[data-page="story"] .story-head {
  position: static;
  z-index: auto;
  padding: 0 clamp(1rem, 3vw, 2.2rem);
}

body[data-page="story"] .story-head .eyebrow,
body[data-page="story"] .story-head h1 {
  color: #111;
  text-shadow: none;
}

body[data-page="story"] .story-feature-video {
  border: none;
  padding: 0;
  height: auto;
  position: relative;
}

body[data-page="story"] .story-media-swap {
  position: relative;
  min-height: min(82vh, 760px);
  display: grid;
  gap: 0.55rem;
}

body[data-page="story"] .story-primary-photo {
  margin: 0;
  display: none;
  width: 100%;
  min-height: min(82vh, 760px);
  border: 1px solid #dfdfdf;
  background: #fff;
  overflow: hidden;
}

body[data-page="story"] .story-primary-photo img {
  display: block;
  width: 100%;
  height: min(82vh, 760px);
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
}

body[data-page="story"] .story-primary-video {
  position: relative;
  width: 100%;
  order: 2;
}

body[data-page="story"] .story-primary-video video {
  width: 100%;
  height: auto;
  max-height: 82vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

body[data-page="story"] .story-mini-photo-swap {
  position: relative;
  order: 1;
  justify-self: end;
  z-index: 3;
  width: clamp(126px, 18vw, 226px);
  border: 1px solid rgba(17, 17, 17, 0.34);
  background: #fff;
  padding: 3px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  animation: storyMiniFloat 2.6s ease-in-out infinite;
}

body[data-page="story"] .story-mini-photo-swap::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(17, 17, 17, 0.24);
  pointer-events: none;
}

body[data-page="story"] .story-mini-photo-swap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

body[data-page="story"] .story-mini-video-swap {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 9;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  font: inherit;
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0;
  align-items: center;
  justify-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: color 180ms ease, transform 210ms ease, opacity 170ms ease;
  transform: scale(1);
}

body[data-page="story"] .story-media-swap.is-photo-primary .story-primary-photo {
  display: block;
  animation: storyPrimaryReveal 320ms cubic-bezier(0.2, 0.74, 0.18, 1);
}

body[data-page="story"] .story-media-swap.is-photo-primary .story-primary-video {
  position: absolute;
  top: 0.15rem;
  right: 0.85rem;
  transform: translateY(-108%);
  width: clamp(112px, 16vw, 192px);
  border: 1px solid rgba(17, 17, 17, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  z-index: 8;
  animation: storyMiniPop 300ms cubic-bezier(0.2, 0.74, 0.18, 1);
  transition: transform 260ms cubic-bezier(0.2, 0.74, 0.18, 1), top 220ms ease, right 220ms ease, width 220ms ease;
}

body[data-page="story"] .story-media-swap.is-photo-primary .story-primary-video video {
  aspect-ratio: 16 / 10;
  max-height: none;
  object-fit: cover;
}

body[data-page="story"] .story-media-swap.is-photo-primary .story-mini-photo-swap {
  display: none;
}

body[data-page="story"] .story-media-swap.is-video-primary .story-mini-photo-swap {
  display: block;
  animation: storyMiniPop 300ms cubic-bezier(0.2, 0.74, 0.18, 1), storyMiniFloat 2.6s ease-in-out infinite 320ms;
}

body[data-page="story"] .story-media-swap.is-photo-primary .story-mini-video-swap {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

body[data-page="story"] .story-media-swap.is-video-primary .story-mini-video-swap {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

body[data-page="story"] .story-media-swap.is-photo-primary .story-mini-video-swap:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.22);
}

body[data-page="story"] .story-media-swap.is-photo-primary .story-center-control {
  display: none !important;
}

body[data-page="story"] .story-extra-photos {
  display: none;
}

body[data-page="story"] .story-extra-photos.is-open {
  display: block;
}

body[data-page="story"] .story-extra-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

body[data-page="story"] .story-extra-photo-tile {
  border: 1px solid #e4e4e4;
  background: #fff;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

body[data-page="story"] .story-extra-photo-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  cursor: zoom-in;
}

body[data-page="story"] .story-extra-photo-tile:hover img {
  transform: scale(1.03);
  transition: transform 220ms ease;
}

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

@keyframes storyMiniPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes storyPrimaryReveal {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.story-center-control {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.62rem 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.story-center-control:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

@media (max-width: 860px) {
  body[data-page="story"] .story-primary-photo,
  body[data-page="story"] .story-primary-photo img {
    min-height: auto;
    height: auto;
  }

  body[data-page="story"] .story-media-swap.is-photo-primary .story-primary-video {
    width: 112px;
    top: 0.55rem;
    right: 0.55rem;
  }

  body[data-page="story"] .story-mini-photo-swap {
    width: 126px;
  }

  body[data-page="story"] .story-extra-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Story spacing + horizontal cover thumb alignment */
body[data-page="story"] .story-main {
  gap: 0.35rem;
}

body[data-page="story"] .story-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
}

body[data-page="story"] .story-feature-video {
  margin-top: 0;
}

body[data-page="story"] .story-media-swap {
  min-height: auto;
}

body[data-page="story"] .story-mini-photo-swap {
  position: absolute;
  top: calc(-1 * clamp(4.4rem, 7vw, 5.9rem));
  right: clamp(1rem, 3vw, 2.2rem);
  width: clamp(170px, 22vw, 300px);
  order: initial;
  animation: storyMiniFloat 2.6s ease-in-out infinite;
}

body[data-page="story"] .story-mini-photo-swap img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 860px) {
  body[data-page="story"] .story-main {
    gap: 0.2rem;
  }

  body[data-page="story"] .story-head {
    align-items: center;
  }

  body[data-page="story"] .story-mini-photo-swap {
    top: calc(-1 * clamp(3.3rem, 8vw, 4.2rem));
    right: 0.35rem;
    width: clamp(132px, 37vw, 196px);
  }
}

/* Home refresh: editorial style inspired by becaneparis.com */
body[data-page="home"] {
  --home-vh: 100vh;
  background: #fff !important;
  color: #0a0a0a;
}

@supports (height: 100svh) {
  body[data-page="home"] {
    --home-vh: 100svh;
  }
}

@supports (height: 100dvh) {
  body[data-page="home"] {
    --home-vh: 100dvh;
  }
}

body[data-page="home"] .site-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  mix-blend-mode: normal;
}

body[data-page="home"] .single-product-main {
  padding-top: 5rem;
}

body[data-page="home"] .single-stage {
  min-height: calc(var(--home-vh) - 5rem - env(safe-area-inset-top, 0px));
  opacity: 1;
}

body[data-page="home"] .lineup-track {
  top: 57%;
  opacity: 0.12;
  transform: translate(-50%, -50%);
}

body[data-page="home"] .lineup-ghost {
  background:
    radial-gradient(circle at 50% 14%, rgba(20, 20, 20, 0.2) 0 18%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(to bottom, rgba(20, 20, 20, 0.22) 28%, rgba(20, 20, 20, 0.08) 100%);
}

body[data-page="home"] .single-model-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin-top: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  opacity: 0;
  transform: scale(1.04);
  animation: homeStageReveal 1100ms cubic-bezier(0.2, 0.72, 0.08, 1) 90ms forwards;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(230, 230, 230, 0.56), rgba(214, 214, 214, 0.76));
}

body[data-page="home"] #stlScene {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  filter: blur(3px);
  animation: homeModelReveal 1180ms cubic-bezier(0.2, 0.72, 0.08, 1) 170ms forwards;
}

@keyframes homeStageReveal {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes homeModelReveal {
  0% {
    opacity: 0;
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .single-model-wrap,
  body[data-page="home"] #stlScene {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

body[data-page="home"] .home-editorial {
  position: absolute;
  left: 50%;
  top: clamp(5.6rem, 11vh, 8.3rem);
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  width: min(92vw, 980px);
  pointer-events: none;
}

body[data-page="home"] .home-editorial-tag {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #4a4a4a;
}

body[data-page="home"] .home-editorial-title {
  margin: 0.3rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(3.5rem, 13vw, 11rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.85;
}

body[data-page="home"] .home-editorial-note {
  margin: 0.55rem auto 0;
  max-width: 40ch;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #616161;
}

body[data-page="home"] .single-info {
  right: clamp(0.8rem, 2.4vw, 2.2rem);
  bottom: clamp(0.9rem, 2.4vw, 1.8rem);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 5;
}

body[data-page="home"] .model-switch {
  gap: 0.32rem;
}

body[data-page="home"] .model-switch-btn {
  border: 1px solid #101010;
  background: rgba(255, 255, 255, 0.84);
  color: #111;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  padding: 0.42rem 0.6rem;
  backdrop-filter: blur(3px);
}

body[data-page="home"] .single-info .new-available-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 1.48rem 2.31rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transform: translateZ(0);
  animation: homeShopPulse 2.4s ease-in-out infinite;
}

body[data-page="home"] .single-info .new-available-btn:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

body[data-page="home"] .single-info .new-available-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-24deg);
  animation: homeShopShine 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes homeShopPulse {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  }
}

@keyframes homeShopShine {
  0%, 58% {
    left: -130%;
  }
  100% {
    left: 140%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .single-info .new-available-btn {
    animation: none;
  }

  body[data-page="home"] .single-info .new-available-btn::before {
    animation: none;
  }
}

/* Shop/Product overrides: 2 products in shop + p01 option switcher + portrait gallery */
.catalog-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(1100px, 100%);
}

.catalog-grid.is-two .catalog-card {
  width: min(100%, 360px);
  margin: 0 auto;
}

.catalog-grid.is-two .catalog-card-wrap {
  width: min(100%, 360px);
  margin: 0 auto;
}

body[data-page="product"] .product-main-media img {
  width: min(100%, 560px);
  margin: 0 auto;
  display: block;
}

@media (max-width: 900px) {
  body[data-page="product"] .product-main-media img {
    width: min(100%, 460px);
  }
}

.product-main-media img {
  aspect-ratio: 3 / 4;
  max-height: none;
  object-fit: contain;
  background: #f2f2f2;
}

.thumb-btn {
  min-width: 96px;
}

.thumb-btn img {
  height: 116px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.product-variant-wrap {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.product-variant-label {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4f4f4f;
}

.product-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-variant-btn {
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #121212;
  font: inherit;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.42rem 0.58rem;
  cursor: pointer;
}

.product-variant-btn:hover,
.product-variant-btn.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.size-guide-btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.56rem 0.82rem;
  width: fit-content;
  cursor: pointer;
}

.size-guide-btn:hover {
  background: #111;
  color: #fff;
}

.size-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  padding: 0.8rem;
}

.size-guide-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.is-size-guide-open {
  overflow: hidden;
}

.size-guide-panel {
  width: min(860px, 100%);
  border: 1px solid #151515;
  background: #fff;
  color: #111;
  font-family: "Space Grotesk", sans-serif;
  padding: clamp(0.58rem, 1.5vw, 0.78rem);
  display: grid;
  gap: 0.42rem;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  max-height: 88vh;
  overflow-y: auto;
}

.size-guide-panel h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.8vw, 1.7rem);
}

.size-guide-note {
  margin: 0;
  color: #4d4d4d;
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.size-guide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.size-guide-unit-switch {
  display: inline-flex;
  border: 1px solid #111;
  background: #fff;
}

.size-unit-btn {
  border: none;
  border-right: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.34rem 0.5rem;
  cursor: pointer;
}

.size-unit-btn:last-child {
  border-right: none;
}

.size-unit-btn.is-active {
  background: #111;
  color: #fff;
}

.size-guide-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.34rem 0.5rem;
  cursor: pointer;
}

.size-guide-close:hover {
  background: #111;
  color: #fff;
}

.size-guide-stage {
  position: relative;
  width: min(100%, 240px);
  max-width: 240px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border: none;
  overflow: hidden;
  background: transparent;
}

.size-guide-scene {
  position: absolute;
  inset: 0;
}

.size-guide-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.size-guide-scene-status {
  margin: 0;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #353535;
}

.size-guide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.size-guide-overlay marker path {
  fill: #1a1a1a;
}

.size-guide-overlay #sgArrowStartWhite path,
.size-guide-overlay #sgArrowEndWhite path {
  fill: #ffffff;
}

.size-guide-mark .sg-line {
  stroke: #1a1a1a;
  stroke-width: 1.55;
  vector-effect: non-scaling-stroke;
  marker-start: url(#sgArrowStart);
  marker-end: url(#sgArrowEnd);
  stroke-dasharray: 4.8 2.8;
  animation: sizeGuideDash 1.15s linear infinite;
}

.size-guide-mark .sg-label {
  fill: #111;
  font-size: 3.6px;
  letter-spacing: 0.04em;
  font-family: "Space Grotesk", sans-serif;
  text-anchor: middle;
  stroke: none;
}

.size-guide-mark .sg-label-vertical {
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.size-guide-mark {
  opacity: 0.42;
  transition: opacity 180ms ease;
}

.size-guide-mark.is-active {
  opacity: 0.98;
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d7d7d7;
  background: #fff;
  margin-top: 0.4rem;
}

.size-guide-table th,
.size-guide-table td {
  border-bottom: 1px solid #ececec;
  padding: 0.28rem 0.36rem;
  text-align: left;
  font-size: 0.62rem;
}

.size-guide-table th {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  background: #fafafa;
}

.size-guide-table tr:last-child td {
  border-bottom: none;
}

.size-guide-table tr.is-active {
  background: #f5f5f5;
}

.size-value {
  font-variant-numeric: tabular-nums;
}

.size-unit-mini {
  font-size: 0.58rem;
  color: #6d6d6d;
  text-transform: lowercase;
}

.size-focus-btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.24rem 0.4rem;
  cursor: pointer;
}

.size-focus-btn.is-active,
.size-focus-btn:hover {
  background: #111;
  color: #fff;
}

@keyframes sizeGuideDash {
  to {
    stroke-dashoffset: -13;
  }
}

@media (max-width: 900px) {
  .catalog-grid.is-two {
    grid-template-columns: 1fr;
  }

  .product-main-media img {
    aspect-ratio: 3 / 4.1;
  }

  .size-guide-panel {
    max-height: 94vh;
    overflow: auto;
    width: min(94vw, 680px);
  }

  .size-guide-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .size-guide-close {
    position: sticky;
    top: 0;
    justify-self: end;
  }

  .size-guide-table th,
  .size-guide-table td {
    font-size: 0.58rem;
  }

  .size-guide-stage {
    width: 240px;
    max-width: 240px;
  }
}

@media (max-width: 860px) {
  body[data-page="home"] .single-product-main {
    padding-top: 4.5rem;
  }

  body[data-page="home"] .single-stage {
    min-height: calc(var(--home-vh) - 4.5rem - env(safe-area-inset-top, 0px));
  }

  body[data-page="home"] .home-editorial {
    top: 5.1rem;
  }

  body[data-page="home"] .home-editorial-title {
    font-size: clamp(2.45rem, 17.6vw, 5.6rem);
  }

  body[data-page="home"] .home-editorial-note {
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  body[data-page="home"] .single-model-wrap {
    width: 100%;
    height: 100%;
  }

  body[data-page="home"] .single-info {
    right: 0.65rem;
    bottom: 0.75rem;
    gap: 0.4rem;
  }
}

/* Index contact bar */
.contactbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  min-height: 50vh;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.82) 52%,
      rgba(255, 255, 255, 0.7) 100%
    );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(10, 10, 10, 0.32);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 380ms cubic-bezier(0.22, 0.72, 0.1, 1), opacity 260ms ease;
}

.contactbar.contactbar--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.contactbar__inner {
  width: min(1400px, 100% - 6vw);
  min-height: 50vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  padding: 1.2rem 0 1.2rem;
  padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.contactbar__loc,
.contactbar__link {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #080808;
}

.contactbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: none;
}

.contactbar__link:hover {
  color: #000;
}

.contactbar__link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.contactbar__inner > :first-child {
  margin-top: 0;
  transform: translateY(1.2rem);
}

@media (max-width: 680px) {
  .contactbar {
    min-height: 45vh;
  }

  .contactbar__inner {
    min-height: 45vh;
    justify-content: space-evenly;
    gap: 0;
  }

  .contactbar__loc,
  .contactbar__link {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

  .contactbar__inner > :first-child {
    margin-top: 0;
    transform: translateY(0.9rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contactbar {
    transition: opacity 140ms ease;
    transform: translateY(0);
    opacity: 0;
  }

  .contactbar.contactbar--visible {
    opacity: 1;
  }
}

/* iPhone optimization */
@media (max-width: 480px) {
  .site-header,
  body[data-page="shop"] .site-header,
  body[data-page="home"] .site-header {
    padding-top: calc(0.62rem + env(safe-area-inset-top, 0px));
    padding-right: max(4vw, env(safe-area-inset-right, 0px));
    padding-bottom: 0.62rem;
    padding-left: max(4vw, env(safe-area-inset-left, 0px));
  }

  .logo-image {
    height: clamp(30px, 8vw, 42px);
    max-width: min(66vw, 280px);
  }

  body[data-page="home"] .single-product-main {
    padding-top: calc(4.2rem + env(safe-area-inset-top, 0px));
  }

  body[data-page="home"] .single-stage {
    min-height: calc(var(--home-vh) - 4.2rem - env(safe-area-inset-top, 0px));
  }

  body[data-page="home"] .single-model-wrap {
    width: 100%;
    height: 100%;
  }

  body[data-page="home"] .single-info {
    right: max(0.5rem, env(safe-area-inset-right, 0px));
    bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }

  body[data-page="home"] .single-info .new-available-btn {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    padding: 0.86rem 1.16rem;
  }

  .catalog-grid.is-two .catalog-card {
    width: min(100%, 320px);
  }

  .catalog-grid.is-two .catalog-card-wrap {
    width: min(100%, 320px);
  }

  body[data-page="product"] .product-main-media img {
    width: min(100%, 360px);
  }

  .contactbar {
    min-height: 42svh;
  }

  .contactbar__inner {
    width: min(100%, 100% - 8vw);
    min-height: 42svh;
    padding-top: 0.95rem;
    padding-bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px));
  }

  .contactbar__loc,
  .contactbar__link {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .contactbar__inner > :first-child {
    transform: translateY(0.65rem);
  }

  .page-main,
  .site-footer,
  .shop-catalog-main,
  .story-main {
    width: min(100%, 100% - 8vw);
  }

  .page-main {
    padding-top: calc(5.4rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.8rem + env(safe-area-inset-bottom, 0px));
    gap: 0.95rem;
  }

  .site-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  h1 {
    font-size: clamp(1.65rem, 9.5vw, 2.45rem);
    line-height: 0.95;
  }

  h2 {
    font-size: clamp(1.2rem, 6.8vw, 1.8rem);
  }

  h3 {
    font-size: clamp(1rem, 5.2vw, 1.3rem);
  }

  .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.17em;
  }

  .site-nav .nav-link,
  body[data-page="home"] .site-nav .nav-link {
    font-size: clamp(1.45rem, 9vw, 2.45rem);
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .catalog-card-copy {
    padding-top: 0.62rem;
  }

  .product-main {
    width: min(100%, 100% - 8vw);
    gap: 0.7rem;
  }

  .product-detail {
    gap: 0.85rem;
  }

  .product-content {
    gap: 0.45rem;
  }

  .thumb-row {
    gap: 0.36rem;
  }

  .thumb-btn {
    min-width: 82px;
  }

  .thumb-btn img {
    height: 100px;
  }

  .story-hub-grid,
  .story-photo-grid,
  .story-video-grid,
  .story-player-nav {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .story-main {
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.8rem + env(safe-area-inset-bottom, 0px));
    gap: 0.9rem;
  }

  .story-feature-video video,
  #storyPlayerVideo {
    border-radius: 10px;
    max-height: 56svh;
  }

  body[data-page="story"] .story-feature-video video {
    max-height: 62svh;
  }

  .gate-main {
    padding-top: calc(4.6rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  body[data-page="home"] .single-model-wrap {
    left: 8%;
    width: 92%;
  }

  body[data-page="home"] #stlScene {
    transform: translateX(8%) scale(0.7);
    transform-origin: center center;
  }

  body[data-page="home"] .single-info {
    transform: translateX(10%);
  }
}

/* Unified tablet/mobile menu fix */
@media (max-width: 1024px) {
  .menu-toggle,
  body[data-page="home"] .menu-toggle,
  body[data-page="shop"] .menu-toggle,
  body[data-page="about"] .menu-toggle,
  body[data-page="story"] .menu-toggle,
  body[data-page="product"] .menu-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 95;
  }

  .site-nav,
  body[data-page="home"] .site-nav,
  body[data-page="shop"] .site-nav,
  body[data-page="about"] .site-nav,
  body[data-page="story"] .site-nav,
  body[data-page="product"] .site-nav {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none !important;
    display: grid !important;
    align-content: center;
    justify-items: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 260ms ease, transform 320ms cubic-bezier(0.22, 0.72, 0.1, 1);
    z-index: 90;
    padding: calc(5rem + env(safe-area-inset-top, 0px)) 8vw calc(3rem + env(safe-area-inset-bottom, 0px));
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
  }

  .site-nav .nav-link,
  body[data-page="home"] .site-nav .nav-link,
  body[data-page="shop"] .site-nav .nav-link,
  body[data-page="about"] .site-nav .nav-link,
  body[data-page="story"] .site-nav .nav-link,
  body[data-page="product"] .site-nav .nav-link {
    color: #fff !important;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.6rem, 6vw, 2.6rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none !important;
    padding: 0.15rem 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 260ms ease, transform 360ms cubic-bezier(0.22, 0.72, 0.1, 1);
  }

  .site-nav.is-open .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav.is-open .nav-link:nth-child(1) { transition-delay: 60ms; }
  .site-nav.is-open .nav-link:nth-child(2) { transition-delay: 110ms; }
  .site-nav.is-open .nav-link:nth-child(3) { transition-delay: 160ms; }
  .site-nav.is-open .nav-link:nth-child(4) { transition-delay: 210ms; }

  body.is-nav-open {
    overflow: hidden;
  }
}

/* Mobile quick nav (Shop / Story / About) */
.mobile-quick-nav {
  display: none;
}

@media (max-width: 1024px) {
  .menu-toggle,
  body[data-page="home"] .menu-toggle,
  body[data-page="shop"] .menu-toggle,
  body[data-page="about"] .menu-toggle,
  body[data-page="story"] .menu-toggle,
  body[data-page="product"] .menu-toggle,
  body[data-page="gate"] .menu-toggle {
    display: none !important;
  }

  body.has-mobile-quick-nav {
    padding-bottom: 0;
  }

  .mobile-quick-nav {
    position: fixed;
    top: calc(0.7rem + env(safe-area-inset-top, 0px));
    right: max(0.7rem, env(safe-area-inset-right, 0px));
    left: auto;
    bottom: auto;
    z-index: 92;
    display: inline-flex;
    gap: 0.28rem;
    padding: 0.26rem;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  }

  .mobile-quick-nav__link {
    min-height: 1.75rem;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    text-decoration: none;
    color: #111;
    font-size: 0.54rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
  }

  .mobile-quick-nav__link.is-active {
    background: #111;
    color: #fff;
  }

  .mobile-quick-nav__link:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
  }
}

/* Product page layout update: large media left + controls right */
body[data-page="product"] .product-main {
  width: min(1680px, 100% - 3vw);
  max-width: none;
  padding-top: 5rem;
}

body[data-page="product"] .product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 28vw);
  gap: 1.4rem;
  align-items: start;
}

body[data-page="product"] .product-gallery {
  gap: 0.75rem;
}

body[data-page="product"] .product-main-media {
  width: 100%;
  background: transparent;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  touch-action: pan-y;
  cursor: zoom-in;
}

body[data-page="product"] .product-main-media img {
  width: 58%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
  margin: 0 auto;
}

body[data-page="product"] .thumb-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  overflow: visible;
  padding: 0;
  margin: 0;
  touch-action: pan-y;
}

body[data-page="product"] .thumb-btn {
  border: 1px solid #cfcfcf !important;
  border-radius: 0;
  min-width: 92px;
  background: #f7f7f7;
}

body[data-page="product"] .thumb-btn.is-active {
  border-color: #111 !important;
}

body[data-page="product"] .thumb-btn img {
  height: 112px;
  object-fit: cover;
}

body[data-page="product"] .product-scroll-item {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  opacity: 0.74;
  transition: opacity 180ms ease;
}

body[data-page="product"] .product-scroll-item.is-active,
body[data-page="product"] .product-scroll-item:hover {
  opacity: 1;
}

body[data-page="product"] .product-scroll-image {
  display: block;
  width: 58%;
  margin: 0 auto;
  height: auto;
}

body[data-page="product"] .product-zoom-lens {
  position: fixed;
  width: 230px;
  height: 155px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 150;
}

body[data-page="product"] .product-zoom-lens.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 900px) {
  body[data-page="product"] .product-zoom-lens {
    display: none !important;
  }
}

@media (min-width: 901px) and (hover: hover) {
  body[data-page="product"] .product-zoom-target,
  body[data-page="product"] .product-main-media,
  body[data-page="product"] .product-main-media img,
  body[data-page="product"] .product-scroll-item,
  body[data-page="product"] .product-scroll-image {
    cursor: none !important;
  }
}

body.is-product-fullscreen-open {
  overflow: hidden;
}

.product-fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.product-fullscreen-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-fullscreen-close {
  position: fixed;
  top: calc(0.8rem + env(safe-area-inset-top, 0px));
  right: max(0.8rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.58rem;
  border-radius: 999px;
  cursor: pointer;
}

.product-fullscreen-track {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.product-fullscreen-slide {
  margin: 0;
  width: 100%;
  height: 100svh;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  padding: calc(3.4rem + env(safe-area-inset-top, 0px)) max(0.8rem, env(safe-area-inset-right, 0px))
    calc(1rem + env(safe-area-inset-bottom, 0px)) max(0.8rem, env(safe-area-inset-left, 0px));
}

.product-fullscreen-slide img {
  width: min(92vw, 980px);
  height: min(84svh, 980px);
  object-fit: contain;
  display: block;
}

/* Product: keep all images in the same visual size/frame */
body[data-page="product"] .product-main-media img,
body[data-page="product"] .product-scroll-image {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
}

body[data-page="product"] .product-content {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  max-width: none;
  padding: 0.25rem 0;
  min-height: min(84vh, 980px);
}

body[data-page="product"] .product-content h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: capitalize;
  text-align: left;
  margin-top: 0.08rem;
}

body[data-page="product"] #productDescription {
  font-size: 0.78rem;
  color: #555;
}

body[data-page="product"] .product-variant-wrap {
  margin-top: 0.25rem;
  gap: 0.45rem;
}

body[data-page="product"] .product-variant-options {
  gap: 0.4rem;
}

body[data-page="product"] .product-variant-btn {
  border: 1px solid rgba(17, 17, 17, 0.26);
  background: #fff;
  color: #111;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.24rem;
  width: 74px;
  padding: 0.28rem 0.22rem 0.32rem;
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  text-transform: none;
}

body[data-page="product"] .product-variant-thumb-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

body[data-page="product"] .product-variant-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body[data-page="product"] .product-variant-name {
  display: block;
  font-size: 0.52rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-align: center;
  color: #222;
}

body[data-page="product"] .product-variant-btn.is-active {
  border-color: #111;
  background: #fff;
  color: #111;
  transform: translateY(-1px);
}

body[data-page="product"] .product-variant-btn:hover {
  border-color: #111;
  background: #fff;
  color: #111;
}

body[data-page="product"] .product-price {
  margin-top: 0.2rem;
  color: #111;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

body[data-page="product"] .size-guide-btn {
  width: fit-content;
  min-width: 9.5rem;
  min-height: 2.2rem;
  border: 1px solid #111;
  background: #fff;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

body[data-page="product"] .cta-main {
  width: auto;
  min-width: 11rem;
  min-height: 2.2rem;
  border: 1px solid #111 !important;
  background: #111;
  color: #fff;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

body[data-page="product"] .product-order-btn {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  justify-self: stretch;
  align-self: end;
  margin-top: auto;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms ease, filter 180ms ease;
}

body[data-page="product"] .product-buy-now-btn {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  margin-top: 0.45rem;
  align-self: end;
  justify-self: stretch;
  border: 1px solid #111;
  background: #fff;
  color: #111;
}

body[data-page="product"] .product-buy-now-btn:hover {
  background: #111;
  color: #fff;
}

body[data-page="product"] .product-order-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -105%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06));
  transition: bottom 230ms cubic-bezier(0.22, 0.72, 0.1, 1);
  pointer-events: none;
  z-index: -1;
}

body[data-page="product"] .cta-main:hover {
  background: #000;
}

body[data-page="product"] .product-order-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

body[data-page="product"] .product-order-btn:hover::before {
  bottom: 0;
}

body[data-page="product"] .gallery-arrow {
  display: none;
  border: 1px solid rgba(16, 16, 16, 0.42) !important;
  border-radius: 999px;
  min-width: 2rem;
  min-height: 2rem;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  padding: 0.18rem 0.35rem;
}

@media (max-width: 1200px) {
  body[data-page="product"] .product-main {
    width: min(1300px, 100% - 6vw);
  }

  body[data-page="product"] .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 35vw);
  }

  body[data-page="product"] .product-main-media {
    min-height: 0;
  }

  body[data-page="product"] .product-main-media img {
    max-height: none;
  }

  body[data-page="product"] .product-content {
    min-height: min(72vh, 820px);
  }
}

@media (max-width: 860px) {
  body[data-page="product"] .product-main {
    width: min(100%, 100% - 7vw);
    padding-top: calc(5.2rem + env(safe-area-inset-top, 0px));
  }

  body[data-page="product"] .product-detail {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  body[data-page="product"] .product-main-media {
    min-height: auto;
    aspect-ratio: auto;
  }

  body[data-page="product"] .product-main-media img {
    width: 62%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  body[data-page="product"] .product-scroll-image {
    width: 62%;
  }

  body[data-page="product"] .product-content {
    position: static;
    top: auto;
    gap: 0.55rem;
    min-height: 0;
  }

  body[data-page="product"] .product-content h1 {
    font-size: clamp(1.6rem, 9vw, 2.1rem);
  }

  body[data-page="product"] .size-guide-btn,
  body[data-page="product"] .cta-main,
  body[data-page="product"] .product-order-btn {
    width: 100%;
    min-width: 0;
  }

  body[data-page="product"] .product-order-btn {
    justify-self: stretch;
    margin-top: 0;
    min-height: 2.95rem;
    font-size: 0.66rem;
  }

  body[data-page="product"] .product-buy-now-btn {
    margin-top: 0.35rem;
    min-height: 2.35rem;
  }
}

.nav-cart .cart-count {
  display: inline-flex;
  min-width: 1.15rem;
  margin-left: 0.2rem;
  padding: 0 0.2rem;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid rgba(17, 17, 17, 0.35);
  border-radius: 999px;
}

.cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.58rem;
  height: 1.58rem;
}

.cart-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mobile-image-indicator {
  display: none;
}

@media (min-width: 901px) {
  .site-nav {
    align-items: center;
  }

  .site-nav .nav-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    transform: translateY(-1px);
  }

  .site-nav .nav-cart .cart-icon {
    width: 1.72rem;
    height: 1.72rem;
  }

  .site-nav .nav-cart .cart-count {
    margin-left: 0;
  }
}

.mobile-quick-nav__link--cart {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.mobile-quick-nav__link--cart [data-cart-count] {
  display: inline-flex;
  min-width: 0.95rem;
  margin-left: 0.18rem;
  justify-content: center;
}

.cart-main,
.checkout-main {
  width: min(1080px, 100% - 8vw);
}

.cart-section,
.checkout-section {
  display: grid;
  gap: 0.8rem;
  border: 1px solid #dfdfdf;
  padding: clamp(1rem, 2.8vw, 1.5rem);
  background: #fff;
}

.cart-items {
  display: grid;
  gap: 0.65rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid #e2e2e2;
  padding: 0.6rem;
}

.cart-item-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f1f1f1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-content {
  display: grid;
  gap: 0.28rem;
}

.cart-item-content h3 {
  font-size: 1.1rem;
  text-transform: none;
}

.cart-item-meta,
.cart-item-price {
  color: #555;
  font-size: 0.72rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.cart-item-qty {
  min-width: 1.4rem;
  text-align: center;
  font-size: 0.78rem;
}

.cart-remove-btn {
  margin-left: 0.35rem;
  min-height: 1.7rem;
  padding: 0.22rem 0.5rem;
  font-size: 0.54rem;
}

.cart-item-line-total {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.cart-item--empty {
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 0.7rem;
}

.cart-summary {
  border-top: 1px solid #e2e2e2;
  padding-top: 0.7rem;
  display: grid;
  gap: 0.6rem;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #222;
}

.cart-total-row strong {
  color: #111;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.cart-checkout-btn {
  justify-self: end;
  min-width: 180px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-checkout-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.checkout-note {
  font-size: 0.76rem;
}

.checkout-total {
  color: #333;
}

.checkout-total strong {
  color: #111;
  letter-spacing: 0.08em;
}

.checkout-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-account {
  min-width: 1.8rem;
  text-align: center;
  color: #111 !important;
}

.account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.58rem;
  height: 1.58rem;
}

.account-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-main {
  width: min(760px, calc(100% - 7vw));
}

.auth-section {
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: #fff;
  padding: clamp(0.9rem, 2.5vw, 1.4rem);
}

.auth-form {
  display: grid;
  gap: 0.45rem;
}

.auth-mode-switch {
  display: flex;
  gap: 0.45rem;
  margin: 0.25rem 0 0.65rem;
}

.auth-mode-switch .size-guide-btn.is-active {
  background: #111;
  color: #fff;
}

.auth-form label {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-form input {
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #111;
  font: inherit;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
}

.auth-error {
  margin: 0;
  color: #a00000;
  font-size: 0.72rem;
}

.account-email {
  margin: 0.25rem 0 0;
}

.auth-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.6rem;
}

.wishlist-btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.wishlist-btn.is-active {
  border-color: #c8002f;
  color: #c8002f;
}

.wishlist-btn:hover {
  transform: translateY(-1px);
}

.catalog-card-wrap {
  position: relative;
  display: grid;
  gap: 0.45rem;
}

.catalog-wishlist-btn {
  justify-self: end;
  min-width: 2.4rem;
  min-height: 2rem;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.55rem;
}

body[data-page="home"] .home-new-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

body[data-page="home"] .home-new-card-heart {
  min-width: 2.25rem;
  min-height: 2.2rem;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
}

body[data-page="product"] .product-wishlist-btn {
  width: 2.6rem;
  min-height: 2.4rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  font-size: 1.12rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-wishlist-wrap {
  margin-top: 0.9rem;
}

.account-events-wrap {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  display: grid;
  gap: 0.5rem;
}

.account-events-status {
  margin: 0;
  font-size: 0.72rem;
  color: #4b4b4b;
}

.account-active-events {
  display: grid;
  gap: 0.45rem;
}

.account-active-event-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: #fff;
  color: #111;
  text-decoration: none;
  padding: 0.48rem 0.55rem;
}

.account-active-event-card span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.account-active-event-card strong {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-event-history {
  display: grid;
  gap: 0.45rem;
}

.account-event-row {
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #fff;
  padding: 0.5rem 0.58rem;
  display: grid;
  gap: 0.14rem;
}

.account-event-row__name {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.account-event-row__meta {
  margin: 0;
  font-size: 0.67rem;
  letter-spacing: 0.05em;
}

.account-events-empty {
  margin: 0;
  color: #5f5f5f;
  font-size: 0.74rem;
}

.account-wishlist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.account-wishlist-card {
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #fff;
  padding: 0.5rem;
  display: grid;
  gap: 0.42rem;
}

.account-wishlist-media {
  display: block;
  text-decoration: none;
  color: inherit;
}

.account-wishlist-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.account-wishlist-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.account-wishlist-copy p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #111;
}

.account-wishlist-copy span {
  font-size: 0.68rem;
}

.account-wishlist-buy {
  width: 100%;
  min-height: 2.05rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.account-wishlist-chip {
  border: 1px solid #111;
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.account-wishlist-empty {
  color: #585858;
  font-size: 0.76rem;
}

@media (max-width: 640px) {
  .account-wishlist-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cart-item-line-total {
    grid-column: 2;
    justify-self: end;
  }

  .cart-checkout-btn {
    width: 100%;
    justify-self: stretch;
  }
}

/* Story final alignment: title left, cover right, no overlap with video */
body[data-page="story"] {
  --story-mini-frame-w: clamp(176px, 23vw, 310px);
  --story-mini-frame-w-mobile: clamp(124px, 36vw, 188px);
}

body[data-page="story"] .story-main {
  gap: 0.25rem;
}

body[data-page="story"] .story-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.35rem;
}

body[data-page="story"] .story-head-copy {
  display: grid;
  gap: 0.28rem;
}

body[data-page="story"] .story-mini-photo-swap {
  position: relative;
  top: auto;
  right: auto;
  order: initial;
  margin: 0;
  align-self: flex-start;
  width: var(--story-mini-frame-w);
  animation: none;
}

body[data-page="story"] .story-media-swap.is-photo-primary .story-primary-video {
  width: var(--story-mini-frame-w);
}

body[data-page="story"] .story-mini-photo-swap img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body[data-page="story"] .story-mini-photo-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: color 180ms ease, transform 210ms ease;
}

body[data-page="story"] .story-mini-photo-swap:hover .story-mini-photo-label {
  color: rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.22);
}

body[data-page="story"] .story-mini-photo-swap.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body[data-page="story"] .story-mini-photo-swap {
  transition: opacity 180ms ease, transform 220ms ease;
}

body[data-page="story"] .story-feature-video {
  margin-top: 0;
}

body[data-page="story"] .story-media-swap {
  min-height: auto;
}

@media (max-width: 860px) {
  body[data-page="story"] .story-head {
    gap: 0.55rem;
    padding-bottom: 0.2rem;
  }

  body[data-page="story"] .story-mini-photo-swap {
    width: var(--story-mini-frame-w-mobile);
  }

  body[data-page="story"] .story-media-swap.is-photo-primary .story-primary-video {
    top: -0.15rem;
    right: 0.35rem;
    transform: translateY(-116%);
    width: var(--story-mini-frame-w-mobile);
    z-index: 10;
  }
}

/* Unified heading style for all pages */
body h1,
body h2,
body h3 {
  text-transform: capitalize !important;
  text-align: center;
}

/* About contact-only mini block */
body[data-page="about"] .about-contact-main {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

body[data-page="about"] .about-contact-mini {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: grid;
  gap: 0.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #111;
  max-width: min(78vw, 760px);
  line-height: 1.55;
}

body[data-page="about"] .about-contact-title {
  font-size: 1.22em;
  font-weight: 700;
  letter-spacing: 0.1em;
}

body[data-page="about"] .about-contact-mini p {
  margin: 0;
  color: #111;
}

body[data-page="about"] .about-contact-mini a {
  color: #111;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body[data-page="about"] .about-contact-mini a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  body[data-page="about"] .about-contact-mini {
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    max-width: min(92vw, 620px);
  }
}

/* About page: falling contact title + right-side info */
body[data-page="about"] .about-contact-main {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: min(1400px, 100% - 8vw);
  min-height: calc(100vh - 5.8rem);
  padding-top: clamp(5.8rem, 9vw, 7.2rem);
  padding-bottom: max(1.2rem, env(safe-area-inset-bottom, 0px));
}

body[data-page="about"] .page-main,
body[data-page="event"] .page-main,
body[data-page="shop"] .page-main {
  position: relative;
  z-index: 1;
}

body[data-page="about"] .page-blob-fx-layer,
body[data-page="event"] .page-blob-fx-layer,
body[data-page="shop"] .page-blob-fx-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body[data-page="about"] .page-blob-fx,
body[data-page="event"] .page-blob-fx,
body[data-page="shop"] .page-blob-fx {
  position: absolute;
  border-radius: 46% 54% 57% 43% / 43% 38% 62% 57%;
  pointer-events: none;
  transform-origin: center;
  background:
    radial-gradient(circle at 24% 22%, rgba(30, 31, 36, 0.78), rgba(30, 31, 36, 0.05) 42%),
    radial-gradient(circle at 70% 34%, rgba(14, 15, 19, 0.84), rgba(14, 15, 19, 0.05) 62%),
    radial-gradient(circle at 44% 78%, rgba(8, 8, 10, 0.88), rgba(8, 8, 10, 0.08) 66%);
  filter: blur(34px) saturate(0.9);
}

body[data-page="about"] .page-blob-fx--ambient,
body[data-page="event"] .page-blob-fx--ambient,
body[data-page="shop"] .page-blob-fx--ambient {
  opacity: 0.42;
  mix-blend-mode: multiply;
  will-change: transform;
}

body[data-page="about"] .page-blob-fx--ambient-a,
body[data-page="event"] .page-blob-fx--ambient-a,
body[data-page="shop"] .page-blob-fx--ambient-a {
  width: min(54vw, 620px);
  height: min(54vw, 620px);
  left: -10vw;
  top: 18vh;
  animation: pageBlobDriftA 18s ease-in-out infinite;
}

body[data-page="shop"] .page-blob-fx--ambient-a {
  display: none;
}

body[data-page="about"] .page-blob-fx--ambient-b,
body[data-page="event"] .page-blob-fx--ambient-b,
body[data-page="shop"] .page-blob-fx--ambient-b {
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  right: -12vw;
  top: 52vh;
  opacity: 0.46;
  animation: pageBlobDriftB 22s ease-in-out infinite;
}

body[data-page="about"] .page-blob-fx--burst,
body[data-page="event"] .page-blob-fx--burst,
body[data-page="shop"] .page-blob-fx--burst {
  width: var(--blob-size);
  height: var(--blob-size);
  left: calc(var(--blob-x) - (var(--blob-size) * 0.5));
  top: calc(var(--blob-y) - (var(--blob-size) * 0.5));
  opacity: 0;
  filter: blur(24px) saturate(0.86);
  mix-blend-mode: multiply;
  border-radius:
    calc(42% + var(--blob-warp, 8%))
    calc(58% - var(--blob-warp, 8%))
    calc(56% + var(--blob-warp, 8%))
    calc(44% - var(--blob-warp, 8%))
    /
    calc(46% + var(--blob-warp, 8%))
    calc(38% - var(--blob-warp, 8%))
    calc(62% + var(--blob-warp, 8%))
    calc(54% - var(--blob-warp, 8%));
  transform: translate3d(0, 0, 0) rotate(var(--blob-rot, -6deg)) scale(0.24);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: paint;
  background:
    radial-gradient(circle at 28% 20%, hsla(var(--blob-h), var(--blob-s), calc(var(--blob-l) + 10%), 0.62), hsla(var(--blob-h), var(--blob-s), calc(var(--blob-l) + 10%), 0.06) 44%),
    radial-gradient(circle at 72% 34%, hsla(calc(var(--blob-h) - 14), var(--blob-s), var(--blob-l), 0.72), hsla(calc(var(--blob-h) - 14), var(--blob-s), var(--blob-l), 0.06) 62%),
    radial-gradient(circle at 44% 78%, hsla(calc(var(--blob-h) + 8), calc(var(--blob-s) - 4%), calc(var(--blob-l) - 6%), 0.78), hsla(calc(var(--blob-h) + 8), calc(var(--blob-s) - 4%), calc(var(--blob-l) - 6%), 0.05) 67%);
  animation: pageBlobBurst 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes pageBlobDriftA {
  0% {
    transform: translate3d(calc(-1vw + var(--blob-a-x, 0px)), calc(1vh + var(--blob-a-y, 0px)), 0) scale(0.92) rotate(-6deg);
  }
  50% {
    transform: translate3d(calc(12vw + var(--blob-a-x, 0px)), calc(-8vh + var(--blob-a-y, 0px)), 0) scale(1.14) rotate(18deg);
  }
  100% {
    transform: translate3d(calc(-6vw + var(--blob-a-x, 0px)), calc(7vh + var(--blob-a-y, 0px)), 0) scale(0.98) rotate(-14deg);
  }
}

@keyframes pageBlobDriftB {
  0% {
    transform: translate3d(calc(2vw + var(--blob-b-x, 0px)), calc(-2vh + var(--blob-b-y, 0px)), 0) scale(0.9) rotate(8deg);
  }
  50% {
    transform: translate3d(calc(-14vw + var(--blob-b-x, 0px)), calc(-6vh + var(--blob-b-y, 0px)), 0) scale(1.12) rotate(-18deg);
  }
  100% {
    transform: translate3d(calc(8vw + var(--blob-b-x, 0px)), calc(8vh + var(--blob-b-y, 0px)), 0) scale(0.96) rotate(16deg);
  }
}

@keyframes pageBlobBurst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--blob-rot, -8deg)) scale(0.24);
  }
  16% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) rotate(var(--blob-rot, -8deg)) scale(
      calc(0.58 * var(--blob-stretch, 1)),
      calc(0.58 * var(--blob-squash, 1))
    );
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(calc(var(--blob-rot, -8deg) + 9deg)) scale(
      calc(1.06 * var(--blob-stretch, 1)),
      calc(1.06 * var(--blob-squash, 1))
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="about"] .page-blob-fx--ambient-a,
  body[data-page="about"] .page-blob-fx--ambient-b,
  body[data-page="event"] .page-blob-fx--ambient-a,
  body[data-page="event"] .page-blob-fx--ambient-b,
  body[data-page="shop"] .page-blob-fx--ambient-a,
  body[data-page="shop"] .page-blob-fx--ambient-b {
    animation: none;
  }

  body[data-page="about"] .page-blob-fx--burst,
  body[data-page="event"] .page-blob-fx--burst,
  body[data-page="shop"] .page-blob-fx--burst {
    animation-duration: 0.65s;
  }
}

body[data-page="about"] .about-contact-layout {
  min-height: calc(100vh - 8.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: clamp(1rem, 4vw, 3rem);
}

body[data-page="about"] .about-contact-fall-wrap {
  position: relative;
  overflow: hidden;
  min-height: clamp(190px, 30vh, 360px);
  display: grid;
  align-items: end;
  perspective: 1200px;
  padding-inline: clamp(0.2rem, 1vw, 0.55rem);
  pointer-events: none;
}

body[data-page="about"] .about-contact-fall {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.8rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase !important;
  text-align: left;
  line-height: 0.86;
  color: #111;
  display: block;
  position: relative;
  width: min(100%, 680px);
  height: clamp(210px, 32vh, 390px);
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  animation: aboutContactDropObject 1250ms cubic-bezier(0.14, 0.8, 0.22, 1) both;
  will-change: transform;
  pointer-events: none;
}

body[data-page="about"] .about-contact-fall span {
  position: absolute;
  left: var(--land-x, 0%);
  bottom: var(--land-y, 0%);
  display: block;
  transform-origin: 50% 100%;
  transform: rotateZ(var(--settle-rz, 0deg));
  opacity: 1;
  filter: none;
}

body[data-page="about"] .about-contact-info {
  justify-self: end;
  align-self: end;
  width: min(100%, 460px);
  display: grid;
  gap: 0.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.84rem, 1vw, 1rem);
  letter-spacing: 0.05em;
  text-transform: none;
  line-height: 1.55;
  pointer-events: auto;
}

body[data-page="about"] .about-contact-info-title {
  font-size: clamp(1.2rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  margin-bottom: 0.2rem;
}

body[data-page="about"] .about-contact-info p {
  margin: 0;
  color: #111;
  font-weight: 600;
}

body[data-page="about"] .about-contact-info a {
  color: #000;
  text-decoration: none;
  overflow-wrap: anywhere;
  font-weight: 500;
}

body[data-page="about"] .about-contact-base-line {
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-size: clamp(0.74rem, 1vw, 0.96rem);
}

body[data-page="about"] .about-contact-info a:hover {
  text-decoration: underline;
}

@keyframes aboutContactDropObject {
  0% {
    transform: translate3d(0, -140%, -260px) rotateX(-52deg) rotateZ(-7deg) scale(0.9);
  }
  58% {
    transform: translate3d(0, 18%, 44px) rotateX(12deg) rotateZ(3deg) scale(1.03);
  }
  73% {
    transform: translate3d(0, -11%, 20px) rotateX(-7deg) rotateZ(-2deg) scale(0.996);
  }
  87% {
    transform: translate3d(0, 5%, 8px) rotateX(4deg) rotateZ(1deg) scale(1.003);
  }
  100% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateZ(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="about"] .about-contact-fall {
    animation: none;
    transform: none;
  }
}

@media (max-width: 980px) {
  body[data-page="about"] .about-contact-main {
    min-height: auto;
    padding-top: calc(5.2rem + env(safe-area-inset-top, 0px));
  }

  body[data-page="about"] .about-contact-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.9rem;
  }

  body[data-page="about"] .about-contact-fall-wrap {
    min-height: clamp(120px, 22vh, 190px);
  }

  body[data-page="about"] .about-contact-fall {
    font-size: clamp(2rem, 13vw, 3.9rem);
    text-align: left;
    width: min(100%, 300px);
    height: clamp(120px, 19vh, 170px);
  }

  body[data-page="about"] .about-contact-info {
    justify-self: start;
    width: 100%;
    font-size: clamp(0.78rem, 3.5vw, 0.94rem);
    gap: 0.32rem;
  }
}

/* Home: new available slider */
body[data-page="home"] .home-new-available {
  width: min(1360px, 100% - 8vw);
  margin: clamp(1.1rem, 2.8vw, 2rem) auto 3.4rem;
  padding: 0;
  border: 0;
  background: #fff;
  font-family: "Space Grotesk", sans-serif;
}

body[data-page="home"] .home-new-available-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.05rem;
}

body[data-page="home"] .home-new-available-head h2 {
  margin: 0;
  font-size: clamp(1.16rem, 2.8vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none !important;
  text-align: left !important;
  font-family: "Space Grotesk", sans-serif;
}

body[data-page="home"] .home-new-available-nav {
  position: static;
  inset: auto;
  transform: none;
  display: flex;
  justify-content: center;
  gap: clamp(0.45rem, 1vw, 0.85rem);
  margin-top: clamp(0.75rem, 1.4vw, 1.15rem);
  padding-inline: 0;
  pointer-events: auto;
  z-index: 4;
}

body[data-page="home"] .home-new-available-arrow {
  width: clamp(2rem, 3vw, 2.55rem);
  height: clamp(2rem, 3vw, 2.55rem);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: none;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

body[data-page="home"] .home-new-available-arrow:hover {
  background: #f5f5f5;
  color: #000;
  transform: scale(1.04);
  box-shadow: none;
}

body[data-page="home"] .home-new-available-page {
  min-width: 3.2rem;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.7rem, 0.95vw, 0.82rem);
  letter-spacing: 0.08em;
  color: #222;
}

body[data-page="home"] .home-new-available-track-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

body[data-page="home"] .home-new-available-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
  transition: transform 440ms cubic-bezier(0.22, 0.82, 0.23, 1), opacity 280ms ease;
}

body[data-page="home"] .home-new-available-track.is-shifting-next {
  transform: translateX(-6%);
  opacity: 0.18;
}

body[data-page="home"] .home-new-available-track.is-shifting-prev {
  transform: translateX(6%);
  opacity: 0.18;
}

body[data-page="home"] .home-new-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  background: #fff;
  box-shadow: none;
  transform: translateY(0) scale(1);
  transition: transform 320ms ease;
  animation: homeNewCardIn 640ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

body[data-page="home"] .home-new-card:nth-child(1) { animation-delay: 40ms; }
body[data-page="home"] .home-new-card:nth-child(2) { animation-delay: 110ms; }
body[data-page="home"] .home-new-card:nth-child(3) { animation-delay: 180ms; }

body[data-page="home"] .home-new-card:hover {
  transform: translateY(-5px) scale(1.008);
}

body[data-page="home"] .home-new-card-media {
  display: block;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
}

body[data-page="home"] .home-new-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 320ms ease;
}

body[data-page="home"] .home-new-card:hover .home-new-card-media img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

body[data-page="home"] .home-new-card-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-inline: 0.18rem;
}

body[data-page="home"] .home-new-card-copy h3 {
  margin: 0;
  font-size: clamp(0.76rem, 1vw, 0.92rem);
  letter-spacing: 0.08em;
  text-transform: lowercase !important;
  text-align: left !important;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
}

body[data-page="home"] .home-new-card-copy span {
  font-size: clamp(0.72rem, 0.95vw, 0.84rem);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #2c2c2c;
  font-family: "Space Grotesk", sans-serif;
}

body[data-page="home"] .home-new-card-add {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #101010;
  color: #fff;
  padding: 0.56rem 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

body[data-page="home"] .home-new-card-add:hover {
  background: #222;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

@media (max-width: 900px) {
  body[data-page="home"] .home-new-available {
    width: min(100%, 100% - 7vw);
  }

  body[data-page="home"] .home-new-available-track {
    gap: 0.62rem;
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-new-card-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-page="home"] .home-new-available-nav {
    inset: auto;
    transform: none;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
    padding: 0;
  }

  body[data-page="home"] .home-new-available-page {
    min-width: 3.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
  }
}

@keyframes homeNewCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Home footer bar: static (no scroll trigger) */
body[data-page="home"] .contactbar {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  min-height: 0;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid #d7d7d7;
  box-shadow: none;
  margin-top: 1.2rem;
}

body[data-page="home"] .contactbar.contactbar--visible {
  transform: none;
  opacity: 1;
}

body[data-page="home"] .contactbar__top {
  width: min(1400px, 100% - 6vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.7rem, 1.8vw, 1.8rem);
  padding: 1rem 0;
  border-bottom: 1px solid #e4e4e4;
}

body[data-page="home"] .contactbar__top-link {
  color: #555;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.68rem, 0.86vw, 0.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="home"] .contactbar__top-link:hover {
  color: #111;
}

body[data-page="home"] .contactbar__inner {
  width: min(1400px, 100% - 6vw);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.8rem 1rem;
  padding: 1.2rem 0;
  padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  text-align: left;
}

body[data-page="home"] .contactbar__inner > :first-child {
  margin-top: 0;
  transform: none;
}

body[data-page="home"] .contactbar__links {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
}

body[data-page="home"] .contactbar__link,
body[data-page="home"] .contactbar__loc {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: clamp(0.74rem, 1vw, 0.9rem);
}

body[data-page="home"] .contactbar__loc {
  justify-self: end;
  align-self: end;
  text-align: right;
}

body[data-page="home"] .contactbar__country-wrap {
  display: grid;
  gap: 0.5rem;
}

body[data-page="home"] .contactbar__label {
  margin: 0;
  color: #555;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

body[data-page="home"] .contactbar__country-btn {
  border: 1px solid #bcbcbc;
  background: #fff;
  color: #1a1a1a;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 0.7rem 0.95rem;
  min-width: 220px;
  text-align: left;
}

body[data-page="home"] .contactbar__payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

body[data-page="home"] .contactbar__pay-chip {
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  color: #2a2a2a;
  background: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 860px) {
  body[data-page="home"] .contactbar {
    margin-top: 1rem;
  }

  body[data-page="home"] .contactbar__top {
    justify-content: flex-start;
    gap: 0.6rem 1rem;
    padding: 0.85rem 0;
  }

  body[data-page="home"] .contactbar__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 0.9rem 0;
  }

  body[data-page="home"] .contactbar__loc {
    justify-self: start;
    text-align: left;
  }

  body[data-page="home"] .contactbar__country-btn {
    min-width: 200px;
    font-size: 0.82rem;
    padding: 0.62rem 0.84rem;
  }

  body[data-page="home"] .contactbar__payments {
    justify-content: flex-start;
    gap: 0.38rem;
  }
}

/* Shared footer note for non-home pages */
.contactbar.contactbar--global {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  min-height: 0;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid #d7d7d7;
  box-shadow: none;
  margin-top: 1.2rem;
}

.contactbar.contactbar--global.contactbar--visible {
  transform: none;
  opacity: 1;
}

.contactbar.contactbar--global .contactbar__inner {
  width: min(1400px, 100% - 6vw);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.8rem 1rem;
  padding: 1.2rem 0;
  padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  text-align: left;
}

.contactbar.contactbar--global .contactbar__links {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
}

.contactbar.contactbar--global .contactbar__link,
.contactbar.contactbar--global .contactbar__loc {
  color: #080808;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.contactbar.contactbar--global .contactbar__link:hover {
  color: #000;
}

.contactbar.contactbar--global .contactbar__loc {
  justify-self: end;
  align-self: end;
  text-align: right;
}

@media (max-width: 860px) {
  .contactbar.contactbar--global {
    margin-top: 1rem;
  }

  .contactbar.contactbar--global .contactbar__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 0.9rem 0;
  }

  .contactbar.contactbar--global .contactbar__loc {
    justify-self: start;
    text-align: left;
  }
}

/* Header nav unified: no boxed nav items on all pages */
.site-nav .nav-link,
.site-header .menu-toggle {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.2rem 0.45rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.is-active,
.site-header .menu-toggle:hover {
  border: none !important;
  background: transparent !important;
}

/* Header scroll state: white card-like header on all pages */
.site-header {
  will-change: transform, top, box-shadow, background-color;
  transition:
    top 360ms cubic-bezier(0.22, 0.72, 0.2, 1),
    width 360ms cubic-bezier(0.22, 0.72, 0.2, 1),
    left 360ms cubic-bezier(0.22, 0.72, 0.2, 1),
    transform 360ms cubic-bezier(0.22, 0.72, 0.2, 1),
    border-radius 340ms cubic-bezier(0.22, 0.72, 0.2, 1),
    box-shadow 340ms cubic-bezier(0.22, 0.72, 0.2, 1),
    background-color 300ms ease,
    border-color 300ms ease,
    padding 360ms cubic-bezier(0.22, 0.72, 0.2, 1);
}

body.is-header-scrolled .site-header {
  top: 0.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, calc(100% - 1.8rem));
  border-radius: 12px;
  border: 1px solid rgba(16, 16, 16, 0.14);
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 0.62rem 1rem;
}

@media (max-width: 860px) {
  body.is-header-scrolled .site-header {
    top: calc(0.2rem + env(safe-area-inset-top, 0px));
    width: calc(100% - 0.9rem);
    border-radius: 10px;
    padding: 0.54rem 0.72rem;
  }
}

/* Story mobile final layout */
@media (max-width: 860px) {
  body[data-page="story"] .story-main {
    width: min(100%, 100% - 7vw);
    padding-top: calc(5.4rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
  }

  body[data-page="story"] .story-head {
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    padding-bottom: 0.1rem;
  }

  body[data-page="story"] .story-head-copy {
    gap: 0.15rem;
  }

  body[data-page="story"] .story-mini-photo-swap {
    width: clamp(110px, 33vw, 165px);
    margin: 0;
    border-width: 1px;
  }

  body[data-page="story"] .story-mini-photo-label {
    font-size: clamp(0.88rem, 3.9vw, 1.25rem);
    transform: translate(-50%, -50%) scale(1);
  }

  body[data-page="story"] .story-feature-video {
    margin-top: 0;
  }

  body[data-page="story"] .story-media-swap {
    gap: 0.4rem;
    min-height: auto;
  }

  body[data-page="story"] .story-primary-video video {
    width: 100%;
    max-height: 58svh;
    border-radius: 8px;
  }

  body[data-page="story"] .story-primary-photo {
    border-radius: 8px;
  }

  body[data-page="story"] .story-primary-photo img {
    max-height: 58svh;
    object-fit: cover;
  }

  body[data-page="story"] .story-media-swap.is-photo-primary .story-primary-video {
    top: -0.1rem;
    right: 0.2rem;
    transform: translateY(-112%);
    width: clamp(110px, 33vw, 165px);
  }

  body[data-page="story"] .story-media-swap.is-photo-primary .story-primary-video video {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
  }

  body[data-page="story"] .story-extra-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
}

@media (max-width: 520px) {
  body[data-page="story"] .story-head {
    gap: 0.35rem;
  }

  body[data-page="story"] .story-mini-photo-swap {
    width: 104px;
  }

  body[data-page="story"] .story-media-swap.is-photo-primary .story-primary-video {
    width: 104px;
    right: 0.15rem;
    transform: translateY(-110%);
  }

  body[data-page="story"] .story-extra-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile UX/UI pass for iOS + Android */
@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  }

  a,
  button {
    touch-action: manipulation;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .site-header {
    padding-top: calc(0.58rem + env(safe-area-inset-top, 0px));
    padding-left: max(0.72rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.72rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.58rem;
  }

  .site-nav .nav-link,
  .site-header .menu-toggle,
  .mobile-quick-nav__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }

  .page-main,
  .shop-catalog-main,
  .story-main,
  .cart-main,
  .checkout-main,
  body[data-page="product"] .product-main {
    width: min(100%, 100% - 6vw);
  }

  .cta-main,
  .size-guide-btn,
  .cart-checkout-btn,
  .product-buy-now-btn,
  .product-order-btn,
  .home-new-card-add {
    min-height: 48px;
  }

  body[data-page="product"] .product-content {
    gap: 0.7rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  }

  body[data-page="product"] .product-variant-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  body[data-page="product"] .product-variant-btn {
    width: 100%;
    min-height: 110px;
  }

  .catalog-card img,
  body[data-page="product"] .product-main-media img,
  body[data-page="story"] .story-primary-photo img,
  body[data-page="story"] .story-primary-video video {
    border-radius: 10px;
  }

  .contactbar .contactbar__inner {
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  body[data-page="product"] .product-variant-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop-like layout on iPhone/Android: keep desktop structure, only scale down */
@media (max-width: 900px) {
  .mobile-quick-nav {
    display: none !important;
  }

  body.has-mobile-quick-nav {
    padding-bottom: 0 !important;
  }

  .site-header {
    padding-top: calc(0.44rem + env(safe-area-inset-top, 0px));
    padding-right: max(0.68rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.44rem;
    padding-left: max(0.68rem, env(safe-area-inset-left, 0px));
  }

  .site-nav {
    display: flex !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .menu-toggle {
    display: none !important;
  }

  .site-nav .nav-link {
    min-height: auto;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    padding: 0.18rem 0.34rem;
  }

  .page-main,
  .shop-catalog-main,
  .story-main,
  .single-product-main,
  body[data-page="product"] .product-main {
    width: min(1400px, 100% - 5vw) !important;
  }

  body[data-page="product"] .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 35vw) !important;
    gap: 0.7rem !important;
  }

  body[data-page="product"] .product-content {
    position: sticky !important;
    top: calc(4.8rem + env(safe-area-inset-top, 0px)) !important;
    min-height: min(72vh, 760px) !important;
    gap: 0.42rem !important;
  }

  body[data-page="product"] .product-content h1 {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem) !important;
  }

  body[data-page="product"] .product-main-media img,
  body[data-page="product"] .product-scroll-image {
    width: 76% !important;
  }

  body[data-page="product"] .product-variant-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.3rem !important;
  }

  body[data-page="product"] .product-variant-btn {
    width: 62px !important;
    min-height: 0 !important;
  }

  body.is-mobile-header-collapsed .menu-toggle {
    display: grid !important;
    place-items: center;
    position: fixed;
    top: calc(0.7rem + env(safe-area-inset-top, 0px));
    right: calc(max(0.7rem, env(safe-area-inset-right, 0px)) + 104px);
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 999px !important;
    border: 1px solid rgba(220, 220, 220, 0.95) !important;
    background: #fff !important;
    color: #f7f7f7 !important;
    box-shadow: none;
    font-size: 1.05rem;
    letter-spacing: 0;
    padding: 0;
    flex: 0 0 auto;
    transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
    animation: none;
  }

  .mobile-cart-fab {
    position: fixed;
    top: calc(0.7rem + env(safe-area-inset-top, 0px));
    right: calc(max(0.7rem, env(safe-area-inset-right, 0px)) + 52px);
    z-index: 95;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(220, 220, 220, 0.95);
    background: #fff;
    box-shadow: none;
    color: #f7f7f7;
    font-size: 1rem;
    transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
  }

  .mobile-cart-fab__icon {
    width: 1.38rem;
    height: 1.38rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-cart-fab__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: grayscale(1) brightness(2.4) contrast(0.75);
  }

  .mobile-account-fab {
    right: max(0.7rem, env(safe-area-inset-right, 0px));
  }

  .mobile-account-fab .mobile-account-fab__icon img {
    filter: none;
  }

  .mobile-cart-fab:active {
    transform: scale(0.95);
    filter: brightness(0.98);
  }

  .mobile-cart-fab__count {
    position: absolute;
    top: -3px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
  }

  body.is-mobile-header-collapsed .site-nav .nav-cart {
    font-size: 0.78rem !important;
    letter-spacing: 0 !important;
    min-height: 40px;
    position: relative;
    gap: 0.38rem;
  }

  body.is-mobile-header-collapsed .site-nav .nav-cart .cart-icon {
    width: 1.34rem;
    height: 1.34rem;
  }

  body.is-mobile-header-collapsed .site-nav .nav-cart .cart-count {
    position: absolute;
    top: 6px;
    right: 10px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px !important;
    line-height: 15px;
    text-align: center;
  }

  body.is-mobile-header-collapsed .menu-toggle:active {
    transform: scale(0.95);
    filter: brightness(0.98);
  }

  body.is-mobile-header-collapsed .menu-toggle:hover {
    transform: none;
    box-shadow: none;
  }

  body.is-mobile-header-collapsed .site-nav {
    display: none !important;
  }

  body.is-mobile-header-collapsed .site-nav.is-open {
    display: grid !important;
    position: absolute !important;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(78vw, 280px) !important;
    padding: 0.48rem !important;
    border: 1px solid rgba(17, 17, 17, 0.18) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    gap: 0.2rem;
    z-index: 70;
  }

  body.is-mobile-header-collapsed .site-nav.is-open .nav-link {
    justify-content: flex-start;
    min-height: 40px;
    width: 100%;
    padding: 0.4rem 0.5rem;
  }

  body.is-mobile-header-collapsed .site-header {
    justify-content: space-between;
  }

  .mobile-header-pop {
    position: fixed;
    top: calc(3.9rem + env(safe-area-inset-top, 0px));
    right: max(0.7rem, env(safe-area-inset-right, 0px));
    width: min(72vw, 270px);
    padding: 0.36rem;
    border: 1px solid rgba(17, 17, 17, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    display: grid;
    gap: 0.16rem;
    z-index: 96;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  body.is-mini-menu-open .mobile-header-pop {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .mobile-header-pop__link {
    display: block;
    text-decoration: none;
    color: #101010;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.62rem 0.58rem;
    border-radius: 8px;
  }

  .mobile-header-pop__link:active,
  .mobile-header-pop__link:hover {
    background: #f2f2f2;
  }

  @keyframes mobileMenuPulse {
    0%, 100% {
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
    }
    50% {
      box-shadow: 0 9px 22px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 1);
    }
  }
}

/* Global UI consistency: one design language across all pages */
:root {
  --ui-radius-sm: 10px;
  --ui-radius-md: 14px;
  --ui-radius-lg: 18px;
  --ui-border: 1px solid rgba(17, 17, 17, 0.16);
}

.nav-link,
.menu-toggle,
.mobile-quick-nav__link,
.size-guide-btn,
.cta-main,
.product-variant-btn,
.size-focus-btn,
.cart-checkout-btn,
.cart-remove-btn,
.home-new-card-add,
.gallery-arrow,
.contactbar__country-btn {
  border-radius: var(--ui-radius-sm) !important;
}

.catalog-card,
.home-new-card,
.cart-item,
.cart-summary,
.size-guide-panel,
.size-guide-scene,
.product-main-media,
.story-primary-photo,
.story-mini-photo-swap,
.story-extra-photo-tile {
  border-radius: var(--ui-radius-md);
}

.product-main-media img,
.thumb-btn,
.thumb-btn img,
.catalog-card img,
.home-new-card-media,
.home-new-card-media img,
.story-primary-video video,
.story-primary-photo img,
.story-mini-video-swap video,
.story-extra-photo-tile img,
.cart-item-media img {
  border-radius: var(--ui-radius-sm);
}

.nav-link,
.menu-toggle,
.mobile-quick-nav__link,
.size-guide-btn,
.cta-main,
.product-variant-btn,
.size-focus-btn,
.cart-checkout-btn,
.cart-remove-btn,
.home-new-card-add,
.gallery-arrow {
  border: var(--ui-border);
}

.catalog-card,
.home-new-card,
.cart-item,
.cart-summary,
.size-guide-panel {
  border: var(--ui-border);
}

@media (max-width: 860px) {
  .catalog-card,
  .home-new-card,
  .cart-item,
  .cart-summary,
  .size-guide-panel {
    border-radius: var(--ui-radius-sm);
  }
}

/* Mobile: disable page-entry blur/fade for instant navigation feel */
@media (max-width: 900px) {
  .reveal,
  .reveal.is-visible,
  body.is-entering .site-header,
  body.is-entering .shop-catalog-main,
  body.is-entering .product-main,
  body.is-entering .page-main,
  body.is-entering .home-3d-main,
  body.is-entering .site-footer {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  body::before,
  body::after,
  body.is-leaving::before,
  body.is-leaving::after {
    opacity: 0 !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
  }
}

/* Product mobile: full-screen media + bottom controls + arrow navigation */
@media (max-width: 900px) {
  body[data-page="product"] .product-main {
    width: 100% !important;
    padding-top: calc(4.8rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body[data-page="product"] .product-detail {
    display: block !important;
  }

  body[data-page="product"] .back-arrow {
    position: fixed;
    top: calc(0.72rem + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 92;
    width: 3.35rem;
    height: 3.35rem;
    font-size: 1.62rem;
  }

  body[data-page="product"] .back-arrow:hover {
    transform: translateX(-50%);
  }

  body[data-page="product"] .back-arrow:active {
    transform: translateX(-50%) scale(0.95);
  }

  body[data-page="product"] .product-gallery {
    position: relative;
  }

  body[data-page="product"] .product-main-media {
    position: relative;
    min-height: calc(100svh - 5.2rem) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    overflow: hidden;
  }

  body[data-page="product"] .mobile-image-indicator {
    display: inline-flex;
    position: absolute;
    left: 50%;
    bottom: 0.65rem;
    transform: translateX(-50%);
    z-index: 7;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    pointer-events: none;
  }

  body[data-page="product"] .product-main-media img {
    width: min(96vw, 560px) !important;
    max-width: 96vw !important;
    max-height: 84svh !important;
    height: auto;
    object-fit: contain;
  }

  body[data-page="product"] .thumb-row {
    display: none !important;
  }

  body[data-page="product"] .gallery-arrow {
    display: grid !important;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    min-width: 3rem;
    min-height: 3rem;
    font-size: 1.45rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(17, 17, 17, 0.28) !important;
  }

  body[data-page="product"] #prevImage {
    left: 0.55rem;
  }

  body[data-page="product"] #nextImage {
    right: 0.55rem;
  }

  body[data-page="product"] .gallery-arrow {
    display: none !important;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    min-width: 2.45rem;
    min-height: 2.45rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 17, 17, 0.22) !important;
  }

  body[data-page="product"] #prevImage {
    left: max(0.4rem, env(safe-area-inset-left, 0px));
  }

  body[data-page="product"] #nextImage {
    right: max(0.4rem, env(safe-area-inset-right, 0px));
  }

  body[data-page="product"] .product-content {
    position: static !important;
    margin-top: 0.7rem;
    z-index: auto;
    background: transparent;
    border-top: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.72rem max(0.8rem, env(safe-area-inset-right, 0px)) calc(0.8rem + env(safe-area-inset-bottom, 0px))
      max(0.8rem, env(safe-area-inset-left, 0px));
    max-height: none;
    overflow: visible;
    gap: 0.48rem !important;
  }

  body[data-page="product"] .product-content h1 {
    font-size: clamp(0.94rem, 4.2vw, 1.08rem) !important;
    margin: 0;
    text-align: left !important;
  }

  body[data-page="product"] #productDescription {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  body[data-page="product"] .product-variant-options {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 0.4rem !important;
    padding-bottom: 0.12rem;
  }

  body[data-page="product"] .product-variant-btn {
    flex: 0 0 auto;
    width: 68px !important;
  }

  body[data-page="product"] .size-guide-btn,
  body[data-page="product"] .cta-main,
  body[data-page="product"] .product-buy-now-btn,
  body[data-page="product"] .product-order-btn {
    width: 100% !important;
    min-height: 46px;
  }
}

/* Hard mobile fallback: disable visual transition layers completely */
html.mobile-no-fx body::before,
html.mobile-no-fx body::after,
html.mobile-no-fx body.is-leaving::before,
html.mobile-no-fx body.is-leaving::after {
  opacity: 0 !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none !important;
}

html.mobile-no-fx body .reveal,
html.mobile-no-fx body .reveal.is-visible,
html.mobile-no-fx body.is-entering .site-header,
html.mobile-no-fx body.is-entering .page-main,
html.mobile-no-fx body.is-entering .product-main,
html.mobile-no-fx body.is-entering .shop-catalog-main,
html.mobile-no-fx body.is-entering .home-3d-main,
html.mobile-no-fx body.is-entering .site-footer {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

@media (max-width: 860px) {
  body[data-page="story"] .story-extra-photos {
    margin-top: 0.4rem;
  }
}

/* Final mobile override */
@media (max-width: 900px) {
  body.is-mobile-header-collapsed .menu-toggle {
    color: #111 !important;
  }

  .mobile-cart-fab,
  .mobile-cart-fab:hover,
  .mobile-cart-fab:active,
  .mobile-cart-fab:focus-visible {
    background: #fff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .mobile-cart-fab__icon img,
  .mobile-account-fab .mobile-account-fab__icon img,
  body.is-mobile-header-collapsed .site-nav .nav-cart .cart-icon img {
    filter: grayscale(1) contrast(1.1) brightness(0.78) !important;
    opacity: 1 !important;
  }

  .mobile-cart-fab__count,
  body.is-mobile-header-collapsed .site-nav .nav-cart .cart-count,
  .mobile-quick-nav__link--cart [data-cart-count] {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
  }
}

/* Cart page: remove box cards and use long divider lines between items */
body[data-page="cart"] .cart-section {
  border: 0 !important;
  padding-inline: 0;
}

body[data-page="cart"] .cart-items {
  gap: 0;
}

body[data-page="cart"] .cart-item {
  border: 0 !important;
  border-bottom: 1px solid #dddddd !important;
  border-radius: 0 !important;
  padding: 0.85rem 0 !important;
}

body[data-page="cart"] .cart-item:last-child {
  border-bottom: 0 !important;
}

body[data-page="cart"] .cart-summary {
  border: 0 !important;
  border-top: 1px solid #111 !important;
  border-radius: 0 !important;
  padding-top: 1rem;
}

body[data-page="cart"] .cart-empty-link {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111 !important;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  transition: transform 180ms ease, opacity 180ms ease, letter-spacing 180ms ease;
}

body[data-page="cart"] .cart-empty-link:hover,
body[data-page="cart"] .cart-empty-link:focus-visible {
  background: transparent !important;
  color: #111 !important;
  letter-spacing: 0.11em;
}

body[data-page="cart"] .cart-empty-link:active {
  background: transparent !important;
  color: #111 !important;
  transform: scale(0.97);
  opacity: 0.7;
}

/* Product desktop: use mobile-style layout (image on top, controls below) */
@media (min-width: 901px) {
  body[data-page="product"] .product-main {
    width: min(760px, 100% - 6vw) !important;
    padding-top: calc(5rem + env(safe-area-inset-top, 0px)) !important;
  }

  body[data-page="product"] .product-detail,
  body[data-page="product"] .product-gallery {
    display: block !important;
  }

  body[data-page="product"] .product-main-media {
    min-height: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  body[data-page="product"] .product-main-media img {
    width: min(90vw, 520px) !important;
    max-width: 100% !important;
    max-height: 78vh !important;
    object-fit: contain !important;
    background: #fff;
  }

  body[data-page="product"] .thumb-row {
    display: none !important;
  }

  body[data-page="product"] .product-content {
    position: static !important;
    top: auto !important;
    min-height: 0 !important;
    margin-top: 0.9rem !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    gap: 0.55rem !important;
  }

  body[data-page="product"] .product-variant-options {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 0.4rem !important;
    padding-bottom: 0.12rem;
  }

  body[data-page="product"] .product-variant-btn {
    flex: 0 0 auto;
    width: 72px !important;
  }

  body[data-page="product"] .size-guide-btn,
  body[data-page="product"] .cta-main,
  body[data-page="product"] .product-buy-now-btn,
  body[data-page="product"] .product-order-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  body[data-page="product"] .product-order-btn {
    margin-top: 0.2rem !important;
  }

  body[data-page="product"] .back-arrow {
    position: fixed;
    top: calc(0.72rem + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 92;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.55rem;
  }

  body[data-page="product"] .back-arrow:hover {
    transform: translateX(-50%);
  }

  body[data-page="product"] .back-arrow:active {
    transform: translateX(-50%) scale(0.95);
  }
}


/* Event page (full horizontal game area) */
body[data-page="event"],
body[data-page="event-game"],
body[data-page="event"] *,
body[data-page="event-game"] * {
  font-family: "Museo Sans 100", "Space Grotesk", sans-serif !important;
}

body[data-page^="event"] {
  position: relative;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 640px at 14% -8%, rgba(255, 72, 72, 0.32), rgba(255, 72, 72, 0) 62%),
    radial-gradient(1000px 620px at 108% 2%, rgba(255, 120, 46, 0.26), rgba(255, 120, 46, 0) 64%),
    radial-gradient(1200px 780px at 50% 118%, rgba(255, 214, 102, 0.12), rgba(255, 214, 102, 0) 62%),
    linear-gradient(164deg, #070707 0%, #190b0b 40%, #1a0d16 100%);
  overflow-x: hidden;
}

body[data-page^="event"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px);
  opacity: 0.22;
  z-index: -2;
}

body[data-page^="event"]::after {
  content: "";
  position: fixed;
  width: 48vmax;
  height: 48vmax;
  left: -12vmax;
  top: -16vmax;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 96, 70, 0.25) 0%, rgba(255, 96, 70, 0) 70%);
  mix-blend-mode: screen;
  filter: blur(2px);
  animation: eventBodyGlow 13s ease-in-out infinite;
  z-index: -1;
}

body[data-page^="event"] .site-header {
  background: rgba(9, 8, 27, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body[data-page^="event"] .site-nav .nav-link {
  color: #eef1ff !important;
}

body[data-page^="event"] .event-main {
  padding-top: calc(5.6rem + env(safe-area-inset-top, 0px));
  width: min(100%, 100vw);
}

body[data-page^="event"] .event-section {
  width: min(100% - 2.4rem, 1280px);
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
  position: relative;
  padding: 0.95rem 0.4rem 1.2rem;
  border: 0;
  background: transparent;
  overflow: hidden;
  animation: eventPanelIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-page^="event"] .event-section::before {
  content: none;
}

body[data-page^="event"] .event-section::after {
  content: none;
}

body[data-page^="event"] .event-badge {
  margin: 0;
  justify-self: start;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body[data-page^="event"] .catalog-count,
body[data-page^="event"] .catalog-title,
body[data-page^="event"] .checkout-subtitle,
body[data-page^="event"] #eventMsg {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

body[data-page^="event"] .catalog-title {
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

body[data-page^="event"] .checkout-subtitle {
  max-width: 72ch;
  line-height: 1.55;
  color: #f4f4f7 !important;
}

body[data-page^="event"] .size-guide-btn {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body[data-page^="event"] .event-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

body[data-page^="event"] #startGameBtn {
  animation: eventPulse 1.9s ease-in-out infinite;
  background: linear-gradient(135deg, #ff2d2d 0%, #ff7b2f 100%);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 73, 45, 0.42);
}

body[data-page^="event"] #startGameBtn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

body[data-page^="event"] .event-hud {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.94rem;
  color: #ffffff;
}

body[data-page^="event"] .event-hud > span {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.48);
  padding: 0.3rem 0.56rem;
  box-shadow: 0 8px 20px rgba(8, 5, 28, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body[data-page^="event"] #gameArea {
  width: 100%;
  height: calc(100dvh - 17.2rem);
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(160deg, rgba(26, 8, 8, 0.95), rgba(54, 16, 16, 0.92));
  touch-action: none;
  box-shadow: 0 14px 36px rgba(5, 3, 26, 0.45);
}

body[data-page^="event"] #gameArea canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-page^="event"] #gameArea.is-hit {
  animation: eventHit 0.22s linear 1;
}

body[data-page^="event"] .event-board {
  padding: 0.7rem 0.8rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body[data-page^="event"] .event-board-hint {
  margin: 0.12rem 0 0.45rem;
  font-size: 0.82rem;
  opacity: 0.95;
  color: #f2f2f5;
}

body[data-page^="event"] #leaderboardList {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.34rem;
}

body[data-page^="event"] #leaderboardList li {
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 0.28rem 0.44rem;
  color: #ffffff;
}

body[data-page="event"] .event-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

body[data-page="event"] .event-hub-card {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    linear-gradient(120deg, rgba(255, 73, 73, 0.28), rgba(255, 154, 69, 0.2));
  padding: 0.78rem;
  display: grid;
  gap: 0.5rem;
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 240ms ease, border-color 240ms ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

body[data-page="event"] .event-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 34px rgba(44, 12, 12, 0.48);
}

body[data-page="event"] .event-hub-card__eyebrow {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-page="event"] .event-hub-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

body[data-page="event"] .event-hub-card p {
  margin: 0;
}

body[data-page="event"] .event-hub-card .event-entry-btn[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

body[data-page="event"] .event-hub-card.is-ended {
  opacity: 0.78;
}

@media (max-width: 900px) {
  body[data-page^="event"] .event-main {
    padding-top: calc(4.8rem + env(safe-area-inset-top, 0px));
  }

  body[data-page^="event"] .event-section {
    width: min(100% - 1rem, 100%);
  }

  body[data-page^="event"] #gameArea {
    height: calc(100dvh - 15.8rem);
    min-height: 320px;
  }

  body[data-page="event"] .event-hub-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes eventPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes eventBlob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, -7%, 0) scale(1.14); }
}

@keyframes eventBodyGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate3d(20vmax, 18vmax, 0) scale(1.25); opacity: 0.88; }
}

@keyframes eventSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes eventPanelIn {
  from { opacity: 0; transform: translateY(8px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes eventHit {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 1px); }
  50% { transform: translate(4px, -1px); }
  75% { transform: translate(-2px, 1px); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page^="event"]::after,
  body[data-page^="event"] .event-section::before,
  body[data-page^="event"] .event-section::after,
  body[data-page^="event"] #startGameBtn,
  body[data-page^="event"] #gameArea.is-hit,
  body[data-page="event"] .event-hub-card {
    animation: none !important;
    transition: none !important;
  }
}


/* Event pages: align with core site monochrome system */
body[data-page^="event"] {
  background: #ffffff !important;
}

body[data-page^="event"]::before,
body[data-page^="event"]::after {
  content: none !important;
}

body[data-page^="event"] .site-header {
  background: #ffffff !important;
  border-color: rgba(17, 17, 17, 0.14) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-page^="event"] .site-nav .nav-link,
body[data-page^="event"] .catalog-count,
body[data-page^="event"] .catalog-title,
body[data-page^="event"] .checkout-subtitle,
body[data-page^="event"] #eventMsg,
body[data-page^="event"] .event-label,
body[data-page^="event"] .event-note {
  color: #111111 !important;
  text-shadow: none !important;
}

body[data-page^="event"] .event-main {
  width: min(1120px, calc(100% - 6vw)) !important;
}

body[data-page^="event"] .event-section {
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}

body[data-page^="event"] .event-badge {
  border: 1px solid rgba(17, 17, 17, 0.2) !important;
  color: #111 !important;
  background: #fff !important;
}

body[data-page^="event"] .event-hub-grid {
  grid-template-columns: 1fr !important;
  gap: 0.7rem;
}

body[data-page^="event"] .event-hub-card,
body[data-page^="event"] .event-panel,
body[data-page^="event"] .event-board,
body[data-page^="event"] .event-quote {
  border: 1px solid rgba(17, 17, 17, 0.15) !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-page^="event"] .event-hud > span,
body[data-page^="event"] #leaderboardList li {
  border: 1px solid rgba(17, 17, 17, 0.2) !important;
  background: #ffffff !important;
  color: #111111 !important;
  text-transform: none !important;
  letter-spacing: 0.04em !important;
}

body[data-page^="event"] #startGameBtn {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  animation: none !important;
}

body[data-page^="event"] .size-guide-btn {
  border-color: rgba(17, 17, 17, 0.22) !important;
  background: #ffffff !important;
  color: #111111 !important;
}

body[data-page^="event"] #gameArea {
  border: 1px solid rgba(17, 17, 17, 0.2) !important;
  background: #f7f7f7 !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  body[data-page^="event"] .event-main {
    width: min(100% - 1rem, 100%) !important;
  }

  body[data-page^="event"] .event-panels {
    grid-template-columns: 1fr !important;
  }
}

/* Event pages: match global site look */
body[data-page^="event"] .event-main {
  width: min(980px, 100% - 12vw) !important;
  padding-top: calc(7rem + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)) !important;
  display: grid;
  gap: 1.1rem;
}

body[data-page^="event"] .event-section {
  border: 1px solid #e2e2e2 !important;
  padding: clamp(1rem, 2.4vw, 1.5rem) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  gap: 0.9rem !important;
}

body[data-page^="event"] .event-badge {
  font-size: 0.62rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 0.28rem 0.5rem !important;
  border: 1px solid #d8d8d8 !important;
  color: #111 !important;
  background: #fff !important;
}

body[data-page^="event"] .catalog-title,
body[data-page^="event"] .checkout-subtitle,
body[data-page^="event"] #eventMsg {
  color: #111 !important;
  text-shadow: none !important;
}

body[data-page^="event"] .event-hub-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
}

body[data-page^="event"] .event-hub-card {
  border: 1px solid #e2e2e2 !important;
  background: #fff !important;
  color: #111 !important;
  padding: 0.9rem !important;
  gap: 0.55rem !important;
  box-shadow: none !important;
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease;
}

body[data-page^="event"] .event-hub-card:hover {
  transform: translateY(-2px);
  border-color: #cfcfcf !important;
  box-shadow: none !important;
}

body[data-page^="event"] .event-hub-card__eyebrow {
  color: #444 !important;
}

body[data-page^="event"] #startGameBtn,
body[data-page^="event"] .event-entry-btn {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  box-shadow: none !important;
  animation: none !important;
}

body[data-page^="event"] #startGameBtn:hover,
body[data-page^="event"] .event-entry-btn:hover {
  background: #fff !important;
  color: #111 !important;
}

body[data-page^="event"] #gameArea {
  border: 1px solid #dcdcdc !important;
  background: #f7f7f7 !important;
  min-height: 420px !important;
  box-shadow: none !important;
}

body[data-page^="event"] .event-hud > span,
body[data-page^="event"] #leaderboardList li {
  border: 1px solid #dedede !important;
  background: #fff !important;
  color: #111 !important;
}

body[data-page^="event"] .event-board {
  border: 1px solid #e2e2e2 !important;
  background: #fff !important;
  color: #111 !important;
}

@media (max-width: 900px) {
  body[data-page^="event"] .event-main {
    width: min(100%, 100% - 8vw) !important;
    padding-top: calc(5.6rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(1.8rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body[data-page^="event"] .event-hub-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page^="event"] #gameArea {
    min-height: 320px !important;
  }
}

/* Gate mobile hard override (kept at file end to beat later global mobile rules) */
@media (max-width: 900px) {
  body[data-page="gate"] .gate-main {
    min-height: var(--gate-vh) !important;
    padding: 0.35rem !important;
    padding-top: calc(0.35rem + env(safe-area-inset-top, 0px)) !important;
    padding-right: max(0.35rem, env(safe-area-inset-right, 0px)) !important;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: max(0.35rem, env(safe-area-inset-left, 0px)) !important;
  }

  body[data-page="gate"] .gate-panel {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(var(--gate-vh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 0.7rem) !important;
    align-content: center !important;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  body[data-page="gate"] {
    --gate-scene-size: clamp(214px, 76vw, 380px) !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  body[data-page="gate"] {
    --gate-scene-size: clamp(176px, calc(var(--gate-vh) * 0.5), 320px) !important;
  }

  body[data-page="gate"] .gate-main {
    padding-top: calc(0.25rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Home mobile hard override: fill screen, remove large white gaps around 3D scene */
@media (max-width: 900px) {
  body[data-page="home"] .single-product-main {
    min-height: 100dvh !important;
    padding-top: calc(4.6rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
  }

  body[data-page="home"] .single-stage {
    min-height: calc(100dvh - 5.1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #f1f1f1 0%, #ececec 100%) !important;
    overflow: hidden !important;
  }

  body[data-page="home"] .single-model-wrap {
    width: min(100vw, 780px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    height: min(68dvh, 760px) !important;
    min-height: 320px !important;
  }

  body[data-page="home"] #stlScene,
  body[data-page="home"] .single-model-scene {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    background: transparent !important;
  }

  body[data-page="home"] .single-info {
    right: max(0.8rem, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Event page: coming soon with floating line effect (no 3D model) */
body[data-page="event"],
body[data-page="event"] * {
  font-family: "Space Grotesk", sans-serif !important;
}

body[data-page="event"] {
  background: #ffffff !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body[data-page="event"]::before,
body[data-page="event"]::after {
  content: none !important;
}

body[data-page="event"] .event-main {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(165dvh - env(safe-area-inset-bottom, 0px));
  margin: 0 !important;
  padding: calc(4.8rem + env(safe-area-inset-top, 0px)) 0 env(safe-area-inset-bottom, 0px) !important;
  display: block;
}

body[data-page="event"] .event-section {
  width: 100% !important;
  min-height: calc(100dvh - 4.8rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  text-align: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  position: relative;
  top: 0;
  position: sticky;
  z-index: 1;
  overflow: hidden;
}

body[data-page="event"] .event-coming-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(70vw, 765px);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, calc(-50% + var(--event-scroll-y, 0px))) rotate(var(--event-rot, 0deg))
    scale(calc(1 + var(--event-zoom, 0)));
  pointer-events: none;
  z-index: 1;
}

body[data-page="event"] .event-coming-orbit {
  position: absolute;
  inset: 0;
  border-radius:
    calc(52% + var(--event-warp, 0%))
    calc(48% - var(--event-warp, 0%))
    calc(46% + var(--event-warp, 0%))
    calc(54% - var(--event-warp, 0%))
    /
    calc(49% - var(--event-warp, 0%))
    calc(43% + var(--event-warp, 0%))
    calc(57% - var(--event-warp, 0%))
    calc(51% + var(--event-warp, 0%));
  border: 1.5px solid rgba(17, 17, 17, 0.28);
  filter: none;
  transform-origin: 50% 50%;
}

body[data-page="event"] .event-coming-orbit--a {
  animation: eventComingOrbitA 16s linear infinite;
}

body[data-page="event"] .event-coming-orbit--b {
  inset: 10% 8%;
  opacity: 0.86;
  border-color: rgba(17, 17, 17, 0.22);
  animation: eventComingOrbitB 11s linear infinite reverse;
}

body[data-page="event"] .event-coming-orbit--c {
  inset: 20% 15%;
  opacity: 0.72;
  border-color: rgba(17, 17, 17, 0.18);
  animation: eventComingOrbitC 8s ease-in-out infinite alternate;
}

body[data-page="event"] .event-badge {
  display: none !important;
}

body[data-page="event"] .catalog-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + var(--event-title-y, 0px)));
  margin: 0 !important;
  width: min(71vw, 765px);
  font-size: clamp(1.6rem, 7.2vw, 4.9rem) !important;
  line-height: 0.92 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #111111 !important;
  text-align: center !important;
  z-index: 3;
  pointer-events: none;
}

body[data-page="event"] .catalog-title span {
  display: inline-block;
  text-shadow: none !important;
  transform: translateZ(0);
}

@keyframes eventComingOrbitA {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.02); }
}

@keyframes eventComingOrbitB {
  0% { transform: rotate(0deg) scale(0.98); }
  100% { transform: rotate(360deg) scale(1.04); }
}

@keyframes eventComingOrbitC {
  0% { transform: scale(0.94) rotate(-2deg); opacity: 0.42; }
  100% { transform: scale(1.07) rotate(2deg); opacity: 0.68; }
}

/* Mobile home final layout fix: stable 3D, visible background fx, and button position */
@media (max-width: 900px) {
  body[data-page="home"] {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body[data-page="home"] .single-product-main {
    width: min(100%, calc(100% - 5vw)) !important;
    margin: 0 auto !important;
    min-height: auto !important;
    padding-top: calc(5rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)) !important;
    gap: 1rem !important;
  }

  body[data-page="home"] .single-stage {
    position: relative !important;
    min-height: calc(100dvh - 5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body[data-page="home"] .lineup-track {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 118vw !important;
    opacity: 0.34 !important;
    z-index: 1 !important;
  }

  body[data-page="home"] .single-model-wrap {
    position: relative !important;
    inset: auto !important;
    width: min(88vw, 440px) !important;
    min-height: clamp(260px, 46vh, 500px) !important;
    height: clamp(260px, 46vh, 500px) !important;
    margin: 0 auto !important;
    z-index: 3 !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body[data-page="home"] #stlScene,
  body[data-page="home"] .single-model-scene {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    transform: none !important;
    z-index: 2 !important;
  }

  body[data-page="home"] .single-info {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px)) !important;
    inset: auto auto calc(0.7rem + env(safe-area-inset-bottom, 0px)) 50% !important;
    width: min(84vw, 320px) !important;
    margin: 0 !important;
    display: grid !important;
    justify-items: center !important;
    text-align: center !important;
    transform: translateX(-50%) !important;
    z-index: 6 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body[data-page="home"] .single-info .new-available-btn {
    width: auto !important;
    max-width: min(84vw, 280px) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.15em !important;
    padding: 0.72rem 1rem !important;
    display: inline-flex !important;
    justify-content: center !important;
    opacity: 1 !important;
  }

  body[data-page="home"] .home-new-available {
    width: min(100%, calc(100% - 1vw)) !important;
    margin: 1.2rem auto 2.2rem !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body[data-page="home"] .home-new-available-track {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  body[data-page="home"] .contactbar {
    display: block !important;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  body[data-page="home"] .single-model-wrap {
    left: auto !important;
    width: min(84vw, 360px) !important;
    min-height: clamp(230px, 42vh, 420px) !important;
    height: clamp(230px, 42vh, 420px) !important;
  }

  body[data-page="home"] #stlScene {
    transform: none !important;
  }

  body[data-page="home"] .single-info {
    transform: translateX(-50%) !important;
    width: min(82vw, 280px) !important;
  }

  body[data-page="home"] .single-info .new-available-btn {
    max-width: min(80vw, 240px) !important;
    font-size: 0.66rem !important;
    padding: 0.62rem 0.86rem !important;
  }
}

/* About page final: video background layout */
body[data-page="about"] {
  background: #000 !important;
  color: #fff !important;
}

body[data-page="about"] .about-contact-fall,
body[data-page="about"] .about-contact-fall span,
body[data-page="about"] .about-contact-info,
body[data-page="about"] .about-contact-info * {
  font-family: "Museo Sans 100", "Space Grotesk", sans-serif !important;
}

body[data-page="about"]::before,
body[data-page="about"]::after {
  display: none !important;
  content: none !important;
}

body[data-page="about"] .page-blob-fx-layer {
  display: none !important;
}

body[data-page="about"] .about-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

body[data-page="about"] .about-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.02) brightness(0.82);
}

body[data-page="about"] .about-video-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 68% at 50% 45%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.14) 42%, rgba(0, 0, 0, 0.42) 100%);
}

body[data-page="about"] .site-header {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-page="about"] .logo-image {
  filter: invert(1) grayscale(1) brightness(1.2) !important;
}

body[data-page="about"] .nav-link,
body[data-page="about"] .menu-toggle {
  color: #f4f4f4 !important;
}

body[data-page="about"] .nav-link.is-active,
body[data-page="about"] .nav-link:hover,
body[data-page="about"] .menu-toggle:hover {
  text-decoration-color: #f4f4f4 !important;
}

body[data-page="about"] .site-nav .nav-cart .cart-icon img,
body[data-page="about"] .site-nav .nav-account .account-icon img {
  filter: invert(1) grayscale(1) brightness(1.25) !important;
}

@media (max-width: 900px) {
  body[data-page="about"].is-mobile-header-collapsed .menu-toggle {
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.42),
      0 10px 28px rgba(0, 0, 0, 0.36) !important;
  }

  body[data-page="about"] .mobile-cart-fab,
  body[data-page="about"] .mobile-cart-fab:hover,
  body[data-page="about"] .mobile-cart-fab:active,
  body[data-page="about"] .mobile-cart-fab:focus-visible {
    border: 1px solid rgba(255, 255, 255, 0.36) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 10px 26px rgba(0, 0, 0, 0.34) !important;
  }

  body[data-page="about"] .mobile-cart-fab__icon img,
  body[data-page="about"] .mobile-account-fab .mobile-account-fab__icon img,
  body[data-page="about"].is-mobile-header-collapsed .site-nav .nav-cart .cart-icon img {
    filter: invert(1) grayscale(1) brightness(1.25) !important;
    opacity: 1 !important;
  }

  body[data-page="about"] .mobile-header-pop {
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    background: rgba(12, 12, 12, 0.48) !important;
    backdrop-filter: blur(16px) saturate(132%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(132%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 16px 34px rgba(0, 0, 0, 0.42) !important;
  }

  body[data-page="about"] .mobile-header-pop__link {
    color: #f6f6f6 !important;
  }

  body[data-page="about"] .mobile-header-pop__link:active,
  body[data-page="about"] .mobile-header-pop__link:hover {
    background: rgba(255, 255, 255, 0.16) !important;
  }
}

body[data-page="about"] .about-contact-main {
  position: relative;
  z-index: 2;
  width: min(1200px, 100% - 8vw) !important;
  min-height: 100dvh;
  padding-top: calc(6.2rem + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)) !important;
}

body[data-page="about"] .about-contact-layout {
  min-height: calc(100dvh - 8.4rem) !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: end;
  gap: clamp(1rem, 4vw, 4rem);
}

body[data-page="about"] .about-contact-fall-wrap {
  min-height: auto;
  overflow: visible;
  perspective: none;
}

body[data-page="about"] .about-contact-fall {
  width: auto;
  height: auto;
  margin: 0;
  animation: none !important;
  transform: none !important;
  text-align: left;
  color: #f5f5f5;
  font-size: clamp(2.2rem, 10.5vw, 7rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

body[data-page="about"] .about-contact-fall span {
  position: static;
  display: inline-block;
  transform: none !important;
  margin-right: 0.02em;
}

body[data-page="about"] .about-contact-info {
  justify-self: end;
  align-self: end;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 8, 8, 0.48);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-radius: 18px;
  padding: clamp(1rem, 2.8vw, 1.6rem);
  gap: 0.5rem;
}

body[data-page="about"] .about-contact-info-title,
body[data-page="about"] .about-contact-info p,
body[data-page="about"] .about-contact-info a,
body[data-page="about"] .about-contact-base-line {
  color: #f6f6f6 !important;
}

body[data-page="about"] .about-contact-info-title {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

body[data-page="about"] .about-contact-info a {
  text-decoration: none;
}

body[data-page="about"] .about-contact-link-minimal {
  display: inline-block;
  margin-top: 0.14rem;
  letter-spacing: 0.08em;
}

body[data-page="about"] .about-contact-link-minimal--emoji {
  font-size: 1.45rem;
  line-height: 1;
  filter: grayscale(1) saturate(0) contrast(1.25) brightness(0.08);
}

body[data-page="about"] .about-contact-instagram-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(0, 0, 0, 0.52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

body[data-page="about"] .about-contact-instagram-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

body[data-page="about"] .about-contact-info a:hover {
  text-decoration: none;
}

@media (max-width: 980px) {
  body[data-page="about"] .about-contact-main {
    width: min(100%, calc(100% - 7vw)) !important;
    padding-top: calc(5.8rem + env(safe-area-inset-top, 0px)) !important;
  }

  body[data-page="about"] .about-contact-layout {
    min-height: auto !important;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.9rem;
  }

  body[data-page="about"] .about-contact-fall {
    font-size: clamp(1.7rem, 11vw, 3.6rem);
  }

  body[data-page="about"] .about-contact-info {
    justify-self: center;
    align-self: center;
    max-width: 520px;
    text-align: center;
  }

  body[data-page="about"] .about-contact-instagram-icon {
    margin-inline: auto;
  }

}

/* Disable tablet quick-nav pill and keep standard mobile/tablet header behavior */
@media (min-width: 901px) and (max-width: 1024px) {
  .mobile-quick-nav {
    display: none !important;
  }

  body.has-mobile-quick-nav {
    padding-bottom: 0 !important;
  }

  .menu-toggle,
  body[data-page="home"] .menu-toggle,
  body[data-page="shop"] .menu-toggle,
  body[data-page="about"] .menu-toggle,
  body[data-page="story"] .menu-toggle,
  body[data-page="product"] .menu-toggle,
  body[data-page="gate"] .menu-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 95;
  }
}

/* Mobile/tablet final: classic round controls (... / cart / account) */
@media (max-width: 1024px) {
  .menu-toggle,
  body[data-page="home"] .menu-toggle,
  body[data-page="shop"] .menu-toggle,
  body[data-page="about"] .menu-toggle,
  body[data-page="story"] .menu-toggle,
  body[data-page="product"] .menu-toggle,
  body[data-page="gate"] .menu-toggle {
    display: grid !important;
    place-items: center;
    position: fixed !important;
    top: calc(0.7rem + env(safe-area-inset-top, 0px));
    right: calc(max(0.7rem, env(safe-area-inset-right, 0px)) + 104px);
    left: auto !important;
    bottom: auto !important;
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 999px !important;
    border: 1px solid rgba(220, 220, 220, 0.95) !important;
    background: #111 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    font-size: 1.05rem;
    letter-spacing: 0;
    padding: 0;
    z-index: 95;
    transition: transform 180ms ease, filter 220ms ease;
    will-change: transform;
  }

  .menu-toggle:active {
    transform: scale(0.94);
    filter: brightness(0.96);
  }

  .mobile-cart-fab {
    position: fixed;
    top: calc(0.7rem + env(safe-area-inset-top, 0px));
    right: calc(max(0.7rem, env(safe-area-inset-right, 0px)) + 52px);
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 95;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(220, 220, 220, 0.95);
    background: #111;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, filter 220ms ease;
  }

  .mobile-account-fab {
    top: calc(0.7rem + env(safe-area-inset-top, 0px));
    right: max(0.7rem, env(safe-area-inset-right, 0px));
    left: auto !important;
    bottom: auto !important;
    background: #111 !important;
    border-color: rgba(220, 220, 220, 0.95) !important;
    color: #fff !important;
  }

  .mobile-cart-fab__icon {
    width: 1.36rem;
    height: 1.36rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-cart-fab__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: invert(1) grayscale(1) brightness(1.2);
  }

  .mobile-cart-fab:not(.mobile-account-fab):active {
    transform: scale(0.95);
    filter: brightness(0.96);
  }

  .mobile-account-fab:active {
    transform: scale(0.95);
    filter: brightness(0.96);
  }

  .mobile-account-fab .mobile-account-fab__icon img {
    filter: invert(1) grayscale(1) brightness(1.2) !important;
  }

  .mobile-cart-fab__count {
    position: absolute;
    top: -3px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
  }

  body.is-mobile-header-collapsed .site-nav {
    display: none !important;
  }

  .mobile-header-pop {
    position: fixed;
    top: calc(3.95rem + env(safe-area-inset-top, 0px));
    right: max(0.7rem, env(safe-area-inset-right, 0px));
    bottom: auto !important;
    width: min(76vw, 270px);
    padding: 0.36rem;
    border: 1px solid rgba(17, 17, 17, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
    display: grid;
    gap: 0.16rem;
    z-index: 96;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  body.is-mini-menu-open .mobile-header-pop {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .mobile-header-pop__link {
    display: block;
    text-decoration: none;
    color: #101010;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.62rem 0.58rem;
    border-radius: 8px;
  }

  .mobile-header-pop__link:active,
  .mobile-header-pop__link:hover {
    background: #f2f2f2;
  }
}

/* Index fullscreen mode: 3D + animated background fill viewport */
body[data-page="home"] {
  background: #fff !important;
}

body[data-page="home"]::before,
body[data-page="home"]::after {
  content: "" !important;
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body[data-page="home"]::before {
  background:
    radial-gradient(68rem 34rem at 18% 16%, rgba(240, 240, 240, 0.9), rgba(240, 240, 240, 0) 72%),
    radial-gradient(72rem 36rem at 84% 78%, rgba(230, 230, 230, 0.82), rgba(230, 230, 230, 0) 70%),
    #ffffff !important;
  animation: homeBgDriftA 18s ease-in-out infinite alternate;
}

body[data-page="home"]::after {
  background:
    radial-gradient(54rem 28rem at 50% 44%, rgba(210, 210, 210, 0.2), rgba(210, 210, 210, 0) 74%);
  animation: homeBgDriftB 22s ease-in-out infinite alternate;
}

@keyframes homeBgDriftA {
  0% { transform: translate3d(-1%, 0, 0) scale(1); }
  100% { transform: translate3d(1.6%, -1.2%, 0) scale(1.03); }
}

@keyframes homeBgDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1.2%, 0) scale(1.05); }
}

body[data-page="home"] .single-product-main {
  width: 100% !important;
  min-height: 100dvh !important;
  padding-top: calc(4.5rem + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)) !important;
  margin: 0 !important;
  position: relative;
  z-index: 2;
}

body[data-page="home"] .single-stage {
  min-height: calc(100dvh - 5.3rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  display: grid !important;
  place-items: end center !important;
  align-content: end !important;
  overflow: hidden !important;
  background: transparent !important;
  gap: 0 !important;
  opacity: 1 !important;
  padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)) !important;
}

body[data-page="home"] .single-model-wrap,
body[data-page="home"] #stlScene,
body[data-page="home"] .single-model-scene {
  background: transparent !important;
  opacity: 1 !important;
}

body[data-page="home"] .single-model-wrap {
  position: relative !important;
  inset: auto !important;
  width: 100vw !important;
  max-width: 100vw !important;
  max-height: calc(100dvh - 6.2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
  margin: auto auto 0 !important;
}

body[data-page="home"] .single-info {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  text-align: center !important;
}

body[data-page="home"] .single-info .new-available-btn {
  transition: transform 120ms ease, box-shadow 180ms ease !important;
}

body[data-page="home"] .home-new-available {
  display: block !important;
  width: min(1200px, 100% - 6vw) !important;
  margin: 0.7rem auto 2rem !important;
  background: transparent !important;
}

/* Final global button typography: same font across desktop + mobile */
button,
.menu-toggle,
.nav-link,
.mobile-quick-nav__link,
.mobile-header-pop__link,
.mobile-cart-fab,
.cta-main,
.size-guide-btn,
.new-available-btn,
.home-new-card-add,
.product-variant-btn,
.size-pill,
.gallery-arrow,
.cart-remove-btn,
.cart-checkout-btn,
a[role="button"] {
  font-family: "Museo Sans 100", "Space Grotesk", sans-serif !important;
}

/* About mobile layout only (arrangement only, keep existing content) */
@media (max-width: 900px) {
  body[data-page="about"] .site-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-top: calc(0.7rem + env(safe-area-inset-top, 0px)) !important;
    padding-right: max(0.8rem, env(safe-area-inset-right, 0px)) !important;
    padding-bottom: 0.55rem !important;
    padding-left: max(0.8rem, env(safe-area-inset-left, 0px)) !important;
  }

  body[data-page="about"] .logo {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
  }

  body[data-page="about"] .menu-toggle {
    position: fixed !important;
    top: calc(0.7rem + env(safe-area-inset-top, 0px));
    right: calc(max(0.7rem, env(safe-area-inset-right, 0px)) + 104px);
    left: auto !important;
    bottom: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 1px solid rgba(220, 220, 220, 0.95) !important;
    border-radius: 999px !important;
    background: #111 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22) !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    z-index: 99 !important;
    background: #111 !important;
  }

  body[data-page="about"] .mobile-cart-fab {
    display: grid !important;
    top: calc(0.7rem + env(safe-area-inset-top, 0px)) !important;
    right: calc(max(0.7rem, env(safe-area-inset-right, 0px)) + 52px) !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 99 !important;
    background: #111 !important;
    border-color: rgba(220, 220, 220, 0.95) !important;
  }

  body[data-page="about"] .mobile-account-fab {
    top: calc(0.7rem + env(safe-area-inset-top, 0px)) !important;
    right: max(0.7rem, env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99 !important;
    background: #111 !important;
    border-color: rgba(220, 220, 220, 0.95) !important;
  }

  body[data-page="about"] .mobile-header-pop {
    top: calc(3.95rem + env(safe-area-inset-top, 0px)) !important;
    right: max(0.7rem, env(safe-area-inset-right, 0px)) !important;
    bottom: auto !important;
    transform: translateY(-8px) scale(0.96) !important;
  }

  body[data-page="about"].is-mini-menu-open .mobile-header-pop {
    transform: translateY(0) scale(1) !important;
  }

  body[data-page="about"] .about-contact-main {
    width: min(100%, calc(100% - 8vw)) !important;
    min-height: 100dvh !important;
    padding-top: calc(4.9rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body[data-page="about"] .about-contact-layout {
    min-height: calc(100dvh - 6.2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 1fr !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 1.2rem !important;
  }

  body[data-page="about"] .about-contact-fall-wrap {
    width: 100%;
    display: grid;
    justify-items: center;
  }

  body[data-page="about"] .about-contact-fall {
    text-align: center !important;
    margin-top: 0.25rem;
  }

  body[data-page="about"] .about-contact-info {
    justify-self: center !important;
    align-self: center !important;
    text-align: center !important;
    max-width: min(92vw, 620px) !important;
    margin: 0 auto !important;
  }
}

/* Index buttons: white theme */
body[data-page="home"] .menu-toggle,
body[data-page="home"] .mobile-cart-fab,
body[data-page="home"] .cta-main {
  background: #fff !important;
  color: #111 !important;
  border-color: rgba(17, 17, 17, 0.28) !important;
}

body[data-page="home"] .mobile-cart-fab__icon img,
body[data-page="home"] .mobile-account-fab .mobile-account-fab__icon img {
  filter: grayscale(1) brightness(0.15) !important;
}

/* Index CTA buttons: black */
body[data-page="home"] .new-available-btn,
body[data-page="home"] .home-new-card-add {
  background: #111 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Mobile liquid-glass controls (Apple-like, tuned closer to Apple demo) */
@media (max-width: 1024px) {
  @keyframes liquidGlassSheen {
    0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
    20% { opacity: 0.34; }
    70% { opacity: 0.1; }
    100% { transform: translateX(190%) skewX(-18deg); opacity: 0; }
  }

  @keyframes liquidGlassFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-1px); }
    100% { transform: translateY(0px); }
  }

  .menu-toggle,
  .mobile-cart-fab,
  .mobile-account-fab {
    position: fixed;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background:
      linear-gradient(155deg, rgba(24, 24, 24, 0.86), rgba(12, 12, 12, 0.72) 44%, rgba(8, 8, 8, 0.66)) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -12px 24px rgba(255, 255, 255, 0.04),
      0 12px 32px rgba(0, 0, 0, 0.34) !important;
    animation: liquidGlassFloat 3.2s ease-in-out infinite;
  }

  .menu-toggle::before,
  .mobile-cart-fab::before,
  .mobile-account-fab::before {
    content: "";
    position: absolute;
    top: -28%;
    left: -18%;
    width: 68%;
    height: 60%;
    pointer-events: none;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 32%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  }

  .menu-toggle::after,
  .mobile-cart-fab::after,
  .mobile-account-fab::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
      110deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.16) 46%,
      rgba(255, 255, 255, 0) 70%
    );
    transform: translateX(-120%) skewX(-18deg);
    animation: liquidGlassSheen 2.9s ease-in-out infinite;
  }

  .menu-toggle,
  .mobile-cart-fab,
  .mobile-account-fab,
  .mobile-header-pop__link {
    color: #f7f7f7 !important;
  }

  .mobile-cart-fab__icon img,
  .mobile-account-fab .mobile-account-fab__icon img {
    filter: invert(1) grayscale(1) brightness(1.2) !important;
  }

  .mobile-header-pop {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background:
      linear-gradient(160deg, rgba(18, 18, 18, 0.9), rgba(10, 10, 10, 0.78)) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 16px 38px rgba(0, 0, 0, 0.35) !important;
  }

  .mobile-header-pop__link {
    border: 1px solid transparent;
    color: #fff !important;
  }

  .mobile-header-pop__link:hover,
  .mobile-header-pop__link:active {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.18);
  }
}
