/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: Uzi;
  src: url('helveticanowtext-blackitalic-demo.ttf');
}

:root {
  --color-text: #fff;
  --color-link: #fff;
  --color-link-hover: #907030;

  /* Floor perspective knobs (desktop) */
  --floor-persp: 0 --floor-rotX: 0;
  --floor-rotY: 0deg;
  --floor-rotZ: 0deg;
  --floor-originY: 24%;
  --floor-translateY: 0vh;
  --floor-scale: 1;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: Uzi, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;


  background: url("Images/newbg.png") center center no-repeat fixed;
  background-size: cover;

  overflow: hidden;
}

/* ===== Fixed menu ===== */
.menu {
  position: fixed;
  top: 16px;
  left: 16px;
  margin: 0;
  z-index: 10;
  font-size: 24px;
}

.menu a {
  color: var(--color-link);
  text-decoration: none;
}

.menu a:hover {
  color: var(--color-link-hover);
}

/* ===== Scroll snap container ===== */
.snap-y {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

.snap-y>section {
  min-height: 100vh;
  scroll-snap-align: start;
}

/* ===== HERO ===== */
.emptyspace {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.hero-inner {
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-size: 64px;
  line-height: 1;
  margin: 0 0 12px;
  color: #161616;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 20px;
  color: #2f2f2f;
  margin: 0 0 24px;
  font-weight: 300;
}

.hero-btn {
  display: inline-grid;
  place-items: center;

  color: #fff;
  text-decoration: none;
  font-weight: 800;

  transition: transform .2s ease, filter .2s ease;
  cursor: pointer;
}

.hero-btn:hover {
  filter: brightness(1.12);
  transform: translateZ(0) scale(10.06);
}

.hero-btn:hover~.hero-title,
.hero-btn:hover~.hero-subtitle {
  filter: blur(5px);
  transition: filter 0.3s ease;
}



/* ===== FLOOR / RINGS ===== */
.floor-snap {
  position: relative;
  overflow: hidden;
}

.ring-layer {
   position: absolute; inset: 0;
   transform-origin: 50% var(--floor-originY);
   transform:
     perspective(var(--floor-persp))
     rotateX(var(--floor-rotX))
     rotateY(var(--floor-rotY))
     rotateZ(var(--floor-rotZ))
     translateY(var(--floor-translateY))
     scale(var(--floor-scale));
  pointer-events: none;
  /* iOS Safari needs the parent to be hit-testable or the children won't get taps */
  pointer-events: auto;
  transform-style: preserve-3d;     /* better child hit-testing with perspective */
  -webkit-transform: translateZ(0); /* create a compositor layer on iOS */

}

/* Rings: positioned absolutely with bg images */
.ring {
  position: absolute;
  width: 110px;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18));
  transform: translate(-50%, -50%) scale(var(--ring-scale, 1));
  pointer-events: auto;
  /* stays clickable */
  z-index: 1;
  /* ensure it sits above the layer */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.ring:hover {
  transform: translate(-50%, -50%) scale(calc(var(--ring-scale, 1) * 1.15));
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}

/* ===== Modal (kept minimal for desktop) ===== */
#product-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  padding: 1rem;
}

#product-modal.pm-show {
  opacity: 1;
  pointer-events: auto;
}

#product-modal .pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
}

#product-modal .pm-card {
  position: relative;
  width: 420px;
  max-width: 92vw;
  background: #f2dab0;
  border-radius: 16px;
  padding: 20px 18px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  text-align: center;
  z-index: 1;
  color: #111;
}

.pm-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: #222;
}

.pm-title {
  font-size: 44px;
  margin: 8px 0 6px;
  font-weight: 800;
}

.pm-price {
  font-size: 28px;
  opacity: .9;
  margin-bottom: 4px;
}

.pm-meta {
  font-size: 18px;
  opacity: .8;
  margin-bottom: 14px;
}

#pm-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 10px 0 18px;
}

.pm-logo {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #b38a19;
  margin: 6px 0 16px;
}

.pm-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  background: #2b2b2b;
  color: #eee;
  letter-spacing: .06em;
}

/* ===== Credits ===== */
.creditsection {
  display: grid;
  place-items: center;
}

.credits {
  font-size: 28px;
  color: #111;
}





/* |||||||||||||||||||||||||||||||||||||||| MOBILE |||||||||||||||||||||||||||||||||||||||||||||||||||||| */


@media only screen and (max-width: 600px) {
  body {
    background-image: url("Images/newbackgroundmobile.png");
  }
}