/* Home - "The Proof". Measures used: full-bleed (division images, wear, stamp), wide 1400 (hero, steps), text 64ch.
   Splits: hero 4.6fr/7.4fr, divisions 7fr/5fr alternating, steps 5fr/7fr, track 1fr/1.618fr, ok 7fr/5fr. */

/* loader: one orchestrated moment. CSS hides it on its own if JS never arrives. */
.loader {
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg); animation: loader-out .45s var(--ease) 2.3s forwards;
}
.loader__seal { width: 132px; height: 132px; color: var(--fg); --seal-bg: var(--paper-0); }
.loader__seal .roof { stroke-dasharray: 120; stroke-dashoffset: 120; animation: roof-print .26s var(--ease) forwards; }
.loader__seal .roof--c { animation-delay: .25s; }
.loader__seal .roof--m { animation-delay: .34s; }
.loader__seal .roof--y { animation-delay: .43s; }
.loader__word {
  font-family: var(--font-display); font-weight: 850; font-size: clamp(1.25rem, 3.2vw, 2.6rem); letter-spacing: -.02em;
  font-stretch: 72%; animation: word-wide .6s var(--ease) .5s forwards; opacity: 0; white-space: nowrap;
}
.loader.is-done { animation: loader-out .35s var(--ease) forwards; }
.loader.is-quick { animation-duration: .2s; animation-delay: .15s; }
.loader.is-quick .roof, .loader.is-quick .loader__word { animation: none; stroke-dashoffset: 0; opacity: 1; font-stretch: 132%; }
@keyframes roof-print { to { stroke-dashoffset: 0; } }
@keyframes word-wide { from { opacity: 0; font-stretch: 72%; } to { opacity: 1; font-stretch: 132%; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* hero */
.hero {
  --h1: clamp(3.2rem, 8.6vw, 9.25rem);
  position: relative; min-height: 100svh;
  width: min(100% - 2 * var(--gutter), var(--w-wide)); margin-inline: auto;
  padding: 104px 0 36px;
  display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  grid-template-rows: auto auto 1fr; column-gap: clamp(28px, 3.4vw, 64px);
}
.hero__title {
  grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 3;
  font-size: var(--h1); font-stretch: 132%; font-weight: 850; line-height: .84; letter-spacing: -.035em;
  margin-bottom: clamp(18px, 2.4vw, 34px); text-wrap: balance; max-width: 11ch;
}
.hero__copy { grid-column: 1; grid-row: 2; display: grid; gap: 22px; align-content: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions label { cursor: pointer; }
.hero__note { color: var(--fg-muted); font-size: var(--fs-sm); max-width: 40ch; min-height: 3em; }
.hero__note.is-err { color: var(--bad); font-weight: 600; }

.stage {
  grid-column: 2; grid-row: 2 / 4; position: relative; align-self: stretch;
  min-height: 420px; margin: 0 0 6px;
}
.stage__frame { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--paper-100); isolation: isolate; }
.stage__poster, .stage__gl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.stage__gl { opacity: 0; transition: opacity 500ms var(--ease); }
.stage.is-live .stage__gl { opacity: 1; }
.stage__overlay { position: absolute; left: 0; top: 0; transform-origin: 0 0; mix-blend-mode: multiply; pointer-events: none; }
.stage__drop {
  position: absolute; inset: 14px; z-index: 4; display: grid; place-items: center; border-radius: calc(var(--radius-l) - 10px);
  border: 2px dashed var(--accent); background: rgba(251, 227, 239, .72); opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.stage__drop p { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: var(--fs-lg); color: var(--accent); }
.stage.is-over .stage__drop { opacity: 1; }
.stage .crop { z-index: 2; }
.stage__bar { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.stage__meta { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius-m); padding: 12px 16px; min-width: 0; }
.stage__label { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 1.25rem; line-height: 1.1; }
.stage__spec { color: var(--ink-700); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage__cta { box-shadow: 0 14px 30px -12px rgba(214, 0, 111, .55); }

.products { grid-column: 1; grid-row: 3; align-self: end; display: grid; border-top: 1px solid var(--line); margin-top: 28px; }
.product {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 46px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 1.15rem; color: var(--fg-muted);
  transition: color var(--dur-fast) var(--ease);
}
.product:hover { color: var(--fg); }
.product.is-on { color: var(--fg); }
.product::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color var(--dur-fast) var(--ease); }
.product.is-on::after { background: var(--fg); }
.product i { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); }
.product.is-on i { width: 100%; }
.hero.is-auto .product.is-on i { width: 0; animation: tick var(--auto, 3.8s) linear forwards; }
@keyframes tick { to { width: 100%; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 92px; min-height: 0; }
  .hero__title { grid-column: 1; max-width: 9ch; }
  .stage { grid-column: 1; grid-row: 2; aspect-ratio: 1 / 1.02; min-height: 0; }
  .products { grid-row: 3; display: flex; gap: 8px; overflow-x: auto; border: 0; margin: 16px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .product { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 1rem; }
  .product::after, .product i { display: none; }
  .product.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .hero__copy { grid-row: 4; margin-top: 18px; gap: 14px; }
  .hero__copy .lede { order: 2; font-size: 1rem; }
  .hero__note { order: 1; min-height: 0; }
  .stage__spec { display: none; }
  .stage__bar { left: 10px; right: 10px; bottom: 10px; }
  .stage__cta { --h: 44px; padding: 0 16px; }
  .stage .crop { display: none; }
}

/* divisions: rows that leave the container, image on alternating sides */
.divs__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: max(9vh, 64px); }
.div { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding-right: var(--gutter); }
.div + .div { margin-top: max(12vh, 96px); }
.div--signage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0 0 0 var(--gutter); }
.div--signage .div__img { order: 2; border-radius: var(--radius-m) 0 0 var(--radius-m); }
.div__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0 var(--radius-m) var(--radius-m) 0; background: var(--paper-100); }
.div__img img { width: 100%; height: 100%; object-fit: cover; }
.div__body { display: grid; gap: 18px; max-width: 46ch; }
.div--signage .div__body { justify-self: end; }
.div__title { font-size: clamp(3rem, 6.2vw, 6.25rem); font-stretch: 112%; line-height: .86; white-space: nowrap; }
.div__chip { width: 26px; height: 26px; }
.div__chip i { display: block; width: 100%; height: 100%; border: 3px solid var(--ink); border-radius: 4px; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.div--print .div__chip i { border-color: var(--proc-c); }
.div--signage .div__chip i { border-color: #E6C800; }
.div--apparel .div__chip i { border-color: var(--proc-m); }
.div--print:hover .div__chip i { background: var(--proc-c); }
.div--signage:hover .div__chip i { background: var(--proc-y); border-color: var(--proc-y); }
.div--apparel:hover .div__chip i { background: var(--proc-m); }
.div__list { display: grid; border-top: 1px solid var(--line); }
.div__list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .divs__head, .div, .div--signage { grid-template-columns: 1fr; padding: 0; }
  .divs__head { width: auto; margin-inline: var(--gutter); }
  .div__body { padding: 0 var(--gutter); }
  .div--signage .div__img { order: 0; }
  .div__img, .div--signage .div__img { border-radius: 0; }
}

/* wear: pinned, the model changes outfits as you scroll */
.wear { position: relative; height: 320vh; margin-top: var(--section-y); }
.wear__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: #EDEBE6 url(/assets/img/fit/room-1200.webp) center 60% / cover no-repeat;
}
.wear__giant {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 900; font-stretch: 150%; font-size: clamp(7rem, 22vw, 24rem);
  line-height: .8; letter-spacing: -.06em; color: rgba(255, 255, 255, .78); white-space: nowrap; pointer-events: none;
}
.wear__model { position: absolute; left: 50%; bottom: 0; height: 92svh; aspect-ratio: 3 / 4; transform: translateX(-50%); }
.wear__model img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; opacity: 0; filter: drop-shadow(0 30px 30px rgba(22, 24, 27, .18)); }
.wear__model img.is-on { opacity: 1; }
.wear__copy {
  position: absolute; left: var(--gutter); bottom: max(6vh, 32px); width: min(520px, calc(100% - 2 * var(--gutter)));
  display: grid; gap: 16px; padding: 26px; border-radius: var(--radius-l);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.wear__copy .btn { justify-self: start; }
.wear__names { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; text-align: right; }
.wear__names li { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 1.1rem; color: rgba(22, 24, 27, .38); transition: color var(--dur) var(--ease); }
.wear__names li.is-on { color: var(--fg); }
@media (max-width: 860px) {
  .wear { height: 260vh; }
  .wear__model { height: 66svh; bottom: auto; top: 76px; }
  .wear__names { display: none; }
  .wear__giant { top: 34%; }
}

/* steps: a real four-step sequence, pinned */
.steps { position: relative; height: 380vh; margin-top: var(--section-y); }
.steps__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding-top: 72px; }
.steps__side { display: grid; gap: max(4vh, 28px); }
.steps__list { display: grid; }
.steps__list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--fg-muted); transition: color var(--dur) var(--ease); }
.steps__list li:last-child { border-bottom: 1px solid var(--line); }
.steps__list h3 { font-size: 1.6rem; color: inherit; }
.steps__list p { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 500ms var(--ease), opacity 400ms var(--ease), margin 500ms var(--ease); }
.steps__list li.is-on { color: var(--fg); }
.steps__list li.is-on p { max-height: 6em; opacity: 1; margin-top: 8px; }
.steps__n { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 1.6rem; line-height: 1; }
.steps__list li.is-on .steps__n { color: var(--accent); }
.steps__view { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; background: var(--paper-100); }
.steps__view > img, .steps__proof { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease); }
.steps__proof img { width: 100%; height: 100%; object-fit: cover; }
.steps__view > .is-on { opacity: 1; }
.stamp--small { position: absolute; right: 7%; bottom: 9%; width: 42%; transform: rotate(-8deg) scale(1.5); opacity: 0; transition: transform 380ms var(--ease), opacity 200ms var(--ease); mix-blend-mode: multiply; }
.steps__proof.is-on .stamp--small { transform: rotate(-8deg) scale(1); opacity: 1; transition-delay: 300ms; }
@media (max-width: 860px) {
  .steps { height: auto; }
  .steps__pin { position: static; height: auto; grid-template-columns: 1fr; padding: 0 0 0; width: auto; margin-inline: var(--gutter); }
  .steps__list p { max-height: none; opacity: 1; margin-top: 8px; }
  .steps__list li { color: var(--fg); }
  .steps__view { display: none; }
}

/* track */
.track__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); gap: clamp(28px, 4vw, 80px); align-items: start; }
.track__grid > div { display: grid; gap: 18px; }
.track__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 28px; border-radius: var(--radius-m); background: var(--card); border: 1px solid var(--line); }
.track__form .field__hint, .track__result { grid-column: 1 / -1; }
.track__result { padding-top: 16px; border-top: 1px solid var(--line); }
.track__result h3 { font-size: 1.5rem; }
@media (max-width: 860px) { .track__grid, .track__form { grid-template-columns: 1fr; } }

/* OK to print */
.ok { padding-block: max(16vh, 120px) max(6vh, 40px); overflow: hidden; }
.ok__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 80px); align-items: center; }
.stamp { width: 100%; max-width: 680px; transform: rotate(-8deg); mix-blend-mode: multiply; }
.ok__copy { display: grid; gap: 22px; }
.ok__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .ok__grid { grid-template-columns: 1fr; } .stamp { max-width: 88%; } }
