@import './fonts.css';
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Neue Haas Grotesk Display Pro';
  text-transform: uppercase;
}

html,
body {
  width: 100vw;
  min-height: 100%;
  overflow-x: hidden;
}

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;
}

.hero p {
  width: 50%;
  text-align: center;
}

.info {
  height: auto;
  display: block;
}

.info-copy { width: 100%; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8em; }
.info-copy .tags { width: 60%; display: flex; justify-content: space-between; gap: clamp(1.5em,4vw,5em); }
.info-copy .tags p { width: auto; flex: 1; display: flex; align-items: center; justify-content: center; gap: .75em; white-space: nowrap; }
.info-copy .tags svg { width: 22px; height: 22px; flex: 0 0 auto; stroke-width: 1.5; }
.info-copy > h2 { width: 75%; text-align: center; }
.info-copy > p { width: 60%; text-align: center; }
.journey-scroll { position: relative; width: 100%; height: 420vh; }
.journey-stage { position: relative; width: 100%; height: 100vh; overflow: visible; }
.journey-track { position: absolute; inset: 0 0 auto; width: 100%; height: 245vh; will-change: transform; }
.journey-heading { position: absolute; z-index: 4; top: 13vh; left: 6vw; width: max-content; max-width: 88vw; }
.journey-heading h2 { width: auto; text-align: left; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.08; white-space: nowrap; }
.journey-line { display: none; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.journey-line svg { width: 100%; height: 100%; overflow: visible; }
.journey-line path { fill: none; stroke: #aaa9a4; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .48; }
.video-preview { position: absolute; z-index: 3; width: clamp(400px, 38vw, 760px); aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid #d7d7d2; background: rgba(245,245,242,.78); box-shadow: 0 18px 50px #1e21170d; }
.video-preview-1 { left: 4vw; top: 40vh; }
.video-preview-2 { right: 4vw; top: 110vh; }
.video-preview-3 { left: 16vw; top: 180vh; }
.video-media { position: absolute; inset: -5%; width: 110%; height: 110%; background: linear-gradient(#ffffffaa,#ffffffaa),url('../assets/tshirt-reference.jpg') center/cover no-repeat,linear-gradient(130deg,#d8ddd8,#f4f3ef 48%,#c7d0ca); filter: grayscale(1) contrast(.85); animation: previewDrift 7s ease-in-out infinite alternate; animation-play-state: paused; }
.video-preview.is-playing .video-media { animation-play-state: running; filter: grayscale(.15) contrast(.92); }
.video-preview.is-playing { border-color: #888; box-shadow: 0 24px 70px #1e211719; }
.video-preview.is-playing .video-caption svg { animation: playPulse 1s ease-in-out infinite alternate; }
.video-preview-2 .video-media { animation-delay: -2.2s; background-position: 62% 35%; transform-origin: 70% 35%; }
.video-preview-3 .video-media { animation-delay: -4.4s; background-position: 38% 68%; transform-origin: 35% 65%; }
.video-copy { position: absolute; z-index: 3; width: min(34vw, 460px); margin: 0; font-size: clamp(24px, 2.8vw, 44px); font-weight: 500; line-height: 1.18; color: #111; pointer-events: none; }
.video-copy-1 { top: 40vh; right: 6vw; height: clamp(200px, 19vw, 380px); display: flex; align-items: center; }
.video-copy-2 { top: 110vh; left: 6vw; height: clamp(200px, 19vw, 380px); display: flex; align-items: center; }
.video-copy-3 { top: 180vh; right: 6vw; height: clamp(200px, 19vw, 380px); display: flex; align-items: center; }
@keyframes previewDrift { from { transform: scale(1.02) translate(-1.5%,-1%); } to { transform: scale(1.12) translate(2%,1.5%); } }
@keyframes playPulse { to { transform: scale(.78); opacity: .5; } }
.video-caption { position: absolute; z-index: 2; inset: auto 0 0; min-height: 54px; padding: 0 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; color: #111; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border-top: 1px solid #d7d7d2; }
.video-caption span,.video-caption p { font-size: 11px; white-space: nowrap; }
.video-caption svg { width: 16px; height: 16px; }

.scan-info {
  position: absolute;
  top: 0;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  padding: 2em;
}

.scan-container {
  position: relative;
  width: min(600px, 88vw);
  height: 50vh;
  border: 1px solid #e6e4df;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 12px 32px #30291c06;
  pointer-events: none;
}
.fitting-rail { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #d8d6d0; z-index: 3; }
.fitting-floor { position: absolute; bottom: 0; width: 100%; height: 13%; background: linear-gradient(transparent,#d6cfc144); border-bottom: 1px solid #b9ae9b; }
.fitting-curtain { position: absolute; top: 3px; bottom: 3px; width: 50.5%; z-index: 2; }
.fitting-curtain svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(2px 4px 3px #28241c0c); }
.curtain-left { left: 0; transform-origin: left top; }
.curtain-right { right: 0; transform-origin: right top; }
.curtain-right svg { transform: scaleX(-1); }
.shirt-rotate { position: absolute; inset: 5% 17%; z-index: 4; border: 0; background: transparent; pointer-events: auto; cursor: grab; touch-action: pan-y; user-select: none; }
.shirt-rotate:disabled { pointer-events: none; }
.shirt-rotate.is-dragging { cursor: grabbing; }
.shirt-rotate:focus-visible { outline: 1px dashed #999; outline-offset: 3px; border-radius: 8px; }

.garment-picker { position: absolute; z-index: 6; left: clamp(20px, 4vw, 80px); top: max(156px, calc(50% - 240px)); width: 164px; display: grid; gap: 12px; }
.garment-picker[hidden] { display: none; }
.model-load-status { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; padding: 12px 20px; border: 1px solid #deded8; border-radius: 4px; background: #fff; color: #333; font-size: 13px; text-align: center; box-shadow: 0 5px 24px #0001; }
.model-load-status[hidden] { display: none; }
.garment-picker-label { margin-bottom: 4px; color: #73736d; letter-spacing: 1.5px; }
.garment-option { position: relative; width: 164px; height: clamp(110px, 20vh, 156px); padding: 0; overflow: hidden; border: 1px solid #d8d8d3; border-radius: 4px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.garment-option img { display: block; width: 100%; height: calc(100% - 31px); object-fit: contain; object-position: center; }
.garment-option span { height: 31px; display: grid; place-items: center; border-top: 1px solid #ecece8; background: rgba(255,255,255,.96); font-size: 11px; letter-spacing: .5px; }
.garment-option:hover { transform: translateX(4px); border-color: #777; }
.garment-option[aria-pressed="true"] { border-color: #111; box-shadow: 0 0 0 1px #111, 0 10px 28px #1b1b160f; }
.garment-option:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

.fitting-colors { position: absolute; bottom: 6vh; text-align: center; }
.fitting-colors[hidden] { display: none; }
.color-name { margin-bottom: 20px; letter-spacing: 2px; }
.color-swatches { display: flex; gap: 20px; justify-content: center; padding: 6px; }
.color-swatches button { width: 30px; height: 30px; border: 1px solid #0002; border-radius: 50%; background: var(--swatch); cursor: pointer; transition: transform .2s; }
.color-swatches button:hover { transform: scale(1.12); }
.color-swatches button[aria-pressed="true"] { outline: 1px solid #222; outline-offset: 5px; }
.color-swatches button:focus-visible { outline: 2px solid #222; outline-offset: 5px; }
.scanner .product-description p { line-height: 1.5; }
.scanner h2 { font-size: clamp(24px, 2.5vw, 42px); }

.barcode {
  position: absolute;
  bottom: 1em;
  left: 2em;
  width: 200px;
  height: 100px;
}

.purchased {
  position: absolute;
  bottom: 2em;
  right: 2em;
  padding: 0.5em 4em;
  color: red;
  border: 1px solid red;
  border-radius: 2em;
}

.contact {
  min-height: 100vh;
  padding: 120px 7vw 7vh;
  align-items: stretch;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  background: transparent;
  overflow: hidden;
}

.contact-heading { max-width: none; }
.contact-heading { transform: translateY(-8vh); }
.contact-layout { transform: translateY(-4vh); }
.contact-heading h2 { font-size: clamp(34px, 3.7vw, 60px); line-height: 1.08; white-space: nowrap; }
.contact-layout { min-height: 390px; display: grid; grid-template-columns: minmax(180px, 22%) 1fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.contact-orbit { position: relative; min-height: 390px; perspective: 900px; }
.contact-bubble {
  position: absolute;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .2);
  border-radius: 50%;
  color: #191919;
  background: rgba(255, 255, 255, .34);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 38px rgba(32, 32, 24, .06);
  cursor: pointer;
  transform: translateZ(calc(var(--slot, 0) * -28px)) scale(calc(1 - var(--slot, 0) * .045));
  transform-origin: left center;
  transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1), background .25s, border-color .25s;
}
.contact-bubble[data-slot="0"] { top: 1%; left: 4%; }
.contact-bubble[data-slot="1"] { top: 35%; right: 4%; left: auto; }
.contact-bubble[data-slot="2"] { top: 69%; left: 14%; }
.contact-bubble:hover { background: rgba(255, 255, 255, .72); border-color: #191919; transform: translateY(-5px) scale(1.08); }
.contact-bubble.is-active { opacity: 0; pointer-events: none; transform: translateX(70px) scale(.7); }
.contact-bubble svg,
.contact-bubble img { width: 22px; height: 22px; flex: 0 0 auto; object-fit: contain; stroke-width: 1.5; }
.contact-bubble span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact-bubble:focus-visible { outline: 2px solid #111; outline-offset: 5px; }
.contact-detail {
  position: relative;
  min-width: 0;
  padding: clamp(32px, 4vw, 64px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
  border: 1px solid #d9d9d3;
  border-radius: 6px;
  background: rgba(255, 255, 255, .48);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 70px #1d1d170d;
  transform-origin: left center;
}
.contact-detail.is-changing .contact-detail-copy,
.contact-detail.is-changing .contact-action { animation: contactContent .46s .12s both; }
.contact-ghost { z-index: 30; pointer-events: none; transform-origin: left top; overflow: hidden; }
@keyframes contactContent { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.contact-detail-icon { align-self: start; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #191919; color: #fff; }
.contact-detail-icon svg { width: 25px; height: 25px; }
.contact-detail-icon img { width: 25px; height: 25px; object-fit: contain; filter: invert(1); }
.contact-detail-copy { align-self: center; min-width: 0; }
.contact-kicker { margin-bottom: 18px; color: #73736d; letter-spacing: 1px; }
.contact-detail h3 { max-width: 100%; font-size: clamp(30px, 4vw, 66px); font-weight: 400; line-height: 1; overflow-wrap: anywhere; text-transform: none; }
.contact-note { margin-top: 22px; max-width: 520px; color: #65655f; line-height: 1.65; text-transform: none; }
.contact-action { min-width: 130px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; color: #111; border-bottom: 1px solid #111; text-decoration: none; }
.contact-action svg { width: 18px; height: 18px; }
.contact-action:focus-visible { outline: 2px solid #111; outline-offset: 5px; }
.contact-side { align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2vw, 22px); }
.contact-qr { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-qr[hidden] { display: none; }
.contact-qr img { width: 132px; height: 132px; display: block; padding: 6px; border: 1px solid #d9d9d3; border-radius: 4px; background: #fff; }
.contact-qr figcaption { font-size: 10px; letter-spacing: .08em; color: #73736d; text-transform: uppercase; }

.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;
}
/* Same scanner badge appearance, with a working product-page link. */
.purchased { text-decoration: none; }
.purchased:focus-visible { outline: 2px solid red; outline-offset: 4px; }
.model { pointer-events: none; }

/* Fixed navigation stays outside the reference's full-screen section flow. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 80px;
  padding: 0 3.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(254, 253, 253, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
}
.site-header a { color: #111; text-decoration: none; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.site-logo img { width: 34px; height: 40px; object-fit: cover; object-position: 50% 40%; }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a { font-size: 12px; letter-spacing: 1px; padding: 12px 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
.site-nav a:hover { opacity: 0.55; }


.site-header a:focus-visible { outline: 2px solid #111; outline-offset: 5px; }
.scan-info { top: 80px; }
@media (max-width: 980px) and (min-width: 601px) {
  .contact { padding-inline: 5vw; }
  .contact-layout { grid-template-columns: 150px 1fr; gap: 28px; }
  .contact-bubble { width: 64px; height: 64px; }
  .contact-detail {
    padding: 34px;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 24px;
  }
  .contact-detail-icon { width: 50px; height: 50px; }
  .contact-detail h3 { font-size: clamp(30px, 4.6vw, 46px); }
  .contact-action { width: 100%; }
}
@media (max-width: 720px) {
  .contact-side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .contact-qr img { width: 104px; height: 104px; }
  .contact-action { width: auto; flex: 1; min-width: 0; }
  .video-copy { left: 16px; right: 16px; width: auto; height: auto; display: block; font-size: 20px; line-height: 1.35; }
  .video-copy-1 { top: calc(40vh + 214px); }
  .video-copy-2 { top: calc(110vh + 214px); left: 16px; }
  .video-copy-3 { top: calc(180vh + 214px); }
}
@media (max-width: 600px) {
  .site-header { height: 64px; padding: 0 18px; }
  .site-logo { font-size: 29px; }
  .site-logo img { width: 28px; height: 33px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 10px; letter-spacing: 0; }
  
  .scan-info { top: 64px; }
  .info-copy { gap: 4em; padding: 0 20px; }
  .info-copy .tags { width: 88%; display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5em 1em; }
  .info-copy .tags svg { width: 19px; height: 19px; }
  .info-copy > h2 { width: 92%; font-size: 26px; line-height: 1.4; }
  .info-copy > p { width: 90%; }
  .journey-scroll { height: 380vh; }
  .journey-track { height: 240vh; }
  .journey-heading { top: 12vh; left: 20px; width: calc(100% - 40px); }
  .journey-heading h2 { font-size: 30px; white-space: normal; }
  .journey-line { inset: 0; }
  .video-preview { width: min(78vw, 360px); aspect-ratio: 2 / 1; }
  .video-preview-1 { left: 16px; top: 40vh; }
  .video-preview-2 { right: 16px; top: 110vh; }
  .video-preview-3 { left: 28px; top: 180vh; }
  .video-copy-1 { top: calc(40vh + min(39vw, 180px) + 14px); }
  .video-copy-2 { top: calc(110vh + min(39vw, 180px) + 14px); }
  .video-copy-3 { top: calc(180vh + min(39vw, 180px) + 14px); }
  .scan-container { position: absolute; top: 250px; bottom: 115px; width: min(92vw, 520px); height: auto; }
  .garment-picker { top: 145px; left: 50%; width: min(92vw, 420px); grid-template-columns: repeat(3, 1fr); gap: 8px; transform: translateX(-50%); }
  .garment-picker-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .garment-option { width: 100%; height: 84px; }
  .garment-option img { height: 59px; }
  .garment-option span { height: 24px; font-size: 9px; }
  .garment-option:hover { transform: none; }
  .fitting-colors { bottom: 3vh; }
  .contact { padding: 96px 20px 36px; gap: 36px; }
  .contact-heading { transform: translateY(-4vh); }
  .contact-layout { transform: translateY(-2vh); }
  .contact-heading h2 { font-size: 32px; white-space: normal; }
  .contact-layout { min-height: 0; display: flex; flex-direction: column; gap: 24px; }
  .contact-orbit { min-height: 82px; display: flex; align-items: center; gap: 12px; }
  .contact-bubble,
  .contact-bubble:nth-child(n) { position: relative; inset: auto; width: 58px; height: 58px; padding: 0; justify-content: center; flex: 0 0 auto; border-radius: 50%; transform: none; }
  .contact-bubble.is-active { display: none; }
  .contact-bubble svg,
  .contact-bubble img { width: 19px; height: 19px; }
  .contact-bubble span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .contact-detail { min-height: 360px; padding: 28px; grid-template-columns: 1fr; align-content: space-between; gap: 24px; }
  .contact-detail-icon { width: 48px; height: 48px; }
  .contact-detail h3 { font-size: clamp(28px, 9vw, 42px); }
  .contact-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .video-media { animation: none; }
  .contact-bubble { transition: none; }
  .contact-detail.is-changing .contact-detail-copy,
  .contact-detail.is-changing .contact-action { animation: none; }
}
