* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Neue Haas Grotesk Display Pro";
  text-transform: uppercase;
}

html,
body {
  width: 100vw;
  height: 500vh;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
}

h1 {
  text-align: center;
  font-size: 10vw;
  font-weight: 300;
  line-height: 100%;
}

h2 {
  font-size: 2.5vw;
  font-weight: 500;
  line-height: 100%;
}

p {
  font-size: 12px;
  font-weight: 500;
  line-height: 100%;
}

.model {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #fefdfd;
}

section {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 0.25em;
}

.info {
  gap: 8em;
}

.info .tags {
  width: 60%;
  display: flex;
  gap: 2em;
}

.info h2 {
  width: 75%;
  text-align: center;
}

.info p {
  width: 60%;
  text-align: center;
}

/* ===== Scanner product card ===== */
.scan-container {
  position: relative;
  width: min(90vw, 420px);
  height: min(92vh, 900px);
  border: 1px solid #cfcfcf;
  border-radius: 1.75em;
  background: transparent; /* the 3D can shows through the centre */
  overflow: hidden;
}

.card-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5em 1.75em;
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  z-index: 2;
}

.card-index {
  font-size: 56px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.card-edge {
  position: absolute;
  top: 47%;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  z-index: 1;
}

.card-edge--left {
  left: 1.1em;
  transform: translateY(-50%) rotate(180deg);
}

.card-edge--right {
  right: 1.1em;
  transform: translateY(-50%);
}

.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1em 1.5em 1.25em;
  background: #fefdfd; /* keeps spec text readable over the can */
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  z-index: 2;
}

.card-barcode {
  width: 54%;
  height: 32px;
}

.card-barcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left;
}

.card-footer-grid {
  display: flex;
  gap: 1.5em;
}

.card-spec {
  flex: 1.1;
  border-bottom: 1px solid #111;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  border-top: 1px solid #111;
  padding: 0.32em 0;
  font-size: 10px;
  font-weight: 600;
}

.spec-row--head {
  font-weight: 700;
}

.card-ingredients {
  flex: 1;
  font-family: "Courier New", monospace;
  text-transform: none;
  font-size: 10px;
  line-height: 1.45;
  color: #222;
}

.card-ingredients p + p {
  margin-top: 0.7em;
}

.outro h2 {
  width: 70%;
  text-align: center;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}
