/* CATA site v2: new scenes layered on the original stylesheet (base.css). */

:root {
  --coral: #f9785f;
  --ink: #2b2a28;
  --ink-soft: #5b554e;
  --sage: #a4b698;
  --cream: #fbf7f2;
  --serif-display: Next, sans-serif;
}

html.homepage-document { background: #f7eeea; }
body.v2 { background: transparent; }
/* the original rainbow, minus its green top, starts where the story's last frame sits and runs to the bottom */
body.v2:before {
  background: #f7eeea url(../assets/img/rainbow-pastel.webp) 0 var(--rb-y, 9000px) / 100% var(--rb-h, 9000px) no-repeat;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2 a:focus-visible, .v2 button:focus-visible, .v2 input:focus-visible, .v2 [tabindex]:focus-visible {
  outline: 2px solid var(--coral); outline-offset: 3px;
}

/* ---------- Loading screen: the original's (base.css), played in full ---------- */
html.intro-gone .preloader { display: none; }

/* ---------- Header sits above the story stage ---------- */
.v2 .header { position: absolute; z-index: 30; }

/* ---------- Story: hero, the swarm into the closet, the Fitting Room, on one sticky stage ---------- */
.story { position: relative; height: 340vh; }
.story__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%;
  overflow: hidden; contain: layout paint;
}
/* the top of the original page background (sage into pastel) */
.story__sky {
  position: absolute; left: 0; right: 0; top: 0; height: 190vh;
  background: #a4b698 url(../assets/img/bg-top.webp) 50% 0 / cover no-repeat; will-change: transform;
}
.story__rainbow {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: #f7eeea url(../assets/img/rainbow-pastel.webp) 0 0 / 100% var(--rb-h, 9000px) no-repeat;
}
.story__hero { position: absolute; left: 0; right: 0; top: 60%; padding: 0 20px; z-index: 3; will-change: transform, opacity; }
.story__hero .hero__title { margin-top: 0; }

.story__garments { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.g { position: absolute; left: 0; top: 0; will-change: transform, opacity; transform-origin: 50% 50%; }
.g__f { width: 100%; height: 100%; }
.g img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.story.is-hero .g { pointer-events: auto; }

/* the original Fitting Room, carried by the dock */
.story__dock {
  position: absolute; left: 50%; top: 0; width: 310px; margin-left: -155px; z-index: 4;
  transform: translateY(110vh); transform-origin: 50% 0; will-change: transform; pointer-events: none;
}
.story__dock.is-live { pointer-events: auto; }
.story .builder { padding: 0; }
.story .builder > .container { padding: 0; margin: 0; max-width: none; width: 310px; }

/* the closet screen the garments land in, laid out at 390 px and scaled into the phone's screen */
.closet {
  position: absolute; left: 12px; top: 54px; width: 286px; height: 561px; z-index: 999; overflow: hidden;
  border-radius: 0 0 40px 40px; pointer-events: none; will-change: opacity, transform;
  background: linear-gradient(165deg, #eef3ec 0%, #f8f3ee 52%, #fbe8df 100%);
}
.closet__in { position: absolute; left: 0; top: 0; width: 390px; height: 788px; transform: scale(.73333); transform-origin: 0 0; }
.closet__head { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 18px 0; }
.closet__head b { font: 900 29px/1 Next, sans-serif; color: #26372c; text-transform: uppercase; letter-spacing: -.01em; }
.closet__head span { font: 500 15px/1 Monserrat, sans-serif; color: #8a8580; }
.closet__cats { display: flex; gap: 8px; padding: 22px 14px 0; font: 600 14px/1 Monserrat, sans-serif; white-space: nowrap; overflow: hidden; }
.closet__cats > * { padding: 9px 15px; border-radius: 99px; background: rgba(255,255,255,.8); color: #5b554e; }
.closet__cats b { background: var(--coral); color: #fff; }
.closet__grid { position: absolute; left: 14px; right: 14px; top: 132px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.closet__cell { position: relative; height: 118px; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(80,60,50,.06); }
.closet__cell img { position: absolute; left: 9px; top: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: contain; opacity: 0; }
.closet__cell.on img { opacity: 1; }

/* Store tag: hangs from a point on a garment and sways */
.tag {
  position: absolute; width: 22px; height: 40px; margin-left: -11px;
  transform-origin: 50% 0; pointer-events: none;
  animation: tag-sway 3.6s ease-in-out infinite alternate;
}
.tag svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(1px 2px 1.5px rgba(50,35,15,.25)); }
@keyframes tag-sway { from { transform: rotate(-9deg); } to { transform: rotate(7deg); } }
.tag.is-off { animation: tag-drop .9s cubic-bezier(.5,0,.9,.6) forwards; }
@keyframes tag-drop {
  0% { transform: rotate(0deg) translateY(0); opacity: 1; }
  100% { transform: rotate(38deg) translateY(90px); opacity: 0; }
}

/* flying records and photos */
.rec, .pic {
  position: absolute; left: 0; top: 0; width: 100px; height: 100px;
  will-change: transform, opacity; transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.rec { border-radius: 3px; box-shadow: 0 10px 22px rgba(30, 20, 10, .28); background: #ddd center / cover; }
.rec:after { /* sleeve sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%);
}
.pic { background: #fff; padding: 6px 6px 18px; border-radius: 2px; box-shadow: 0 8px 18px rgba(30, 20, 10, .22); }
.pic span { display: block; width: 100%; height: 100%; background: #ccc center / cover; }

/* ---------- The phone ---------- */
.phone {
  position: absolute; left: 0; top: 0; width: 414px; height: 868px;
  transform-origin: 0 0; z-index: 4; will-change: transform;
}
.phone__body {
  position: absolute; inset: 0; border-radius: 66px; background: #111214; padding: 12px;
  box-shadow:
    0 0 0 1.5px #3b3c40, 0 0 0 4px #c9cbd0, 0 0 0 5px #8e9096,
    0 40px 80px -20px rgba(30, 25, 20, .45), 0 18px 36px rgba(30, 25, 20, .18);
}
.phone__screen {
  position: relative; width: 390px; height: 844px; border-radius: 54px; overflow: hidden;
  background: #fff; isolation: isolate;
}
.phone__island {
  position: absolute; left: 50%; top: 23px; width: 124px; height: 36px; margin-left: -62px;
  border-radius: 20px; background: #000; z-index: 20;
}
.phone__status {
  position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 46px;
  font: 600 17px/1 -apple-system, "SF Pro Text", Monserrat, sans-serif; color: #111;
}
.phone__icons { display: flex; gap: 6px; align-items: center; }
.phone__icons i { display: block; background: #111; }
.phone__icons .sig { width: 18px; height: 11px; clip-path: polygon(0 100%, 22% 100%, 22% 70%, 0 70%, 0 100%, 26% 100%, 26% 50%, 48% 50%, 48% 100%, 52% 100%, 52% 28%, 74% 28%, 74% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%); }
.phone__icons .wifi { width: 16px; height: 12px; clip-path: polygon(50% 100%, 0 30%, 15% 12%, 50% 0, 85% 12%, 100% 30%); }
.phone__icons .bat { width: 26px; height: 12px; border-radius: 3.5px; background: #111; box-shadow: inset 0 0 0 1.5px #111; }

.phone { pointer-events: none; }
.phone.is-live { pointer-events: auto; }
.screen { position: absolute; inset: 0; padding-top: 54px; opacity: 0; visibility: hidden; background: #fff; }
.screen.on { visibility: visible; }

/* Music */
.screen--music { background: linear-gradient(#f6f1ee, #fff 42%); }
.mu-bar { display: flex; justify-content: space-between; padding: 10px 20px; height: 44px; }
.mu-back { width: 12px; height: 12px; margin-top: 6px; border-left: 3px solid var(--coral); border-bottom: 3px solid var(--coral); transform: rotate(45deg); }
.mu-dots { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, var(--coral) 2.2px, transparent 2.6px) 0 0 / 10px 30px repeat-x, #f1ebe7; }
.mu-art {
  width: 232px; height: 232px; margin: 12px auto 0; border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; background: #ece6e1;
  box-shadow: 0 16px 34px rgba(60, 40, 30, .22);
}
.mu-art span { background: center / cover; opacity: 0; transition: opacity .25s; }
.mu-art span.on { opacity: 1; }
.mu-name { margin-top: 18px; text-align: center; font: 700 23px/1.2 -apple-system, "SF Pro Display", Monserrat, sans-serif; color: #1c1c1e; }
.mu-meta { margin-top: 4px; text-align: center; font: 500 15px/1.3 -apple-system, Monserrat, sans-serif; color: #8a8580; }
.mu-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.mu-btn {
  width: 158px; height: 44px; border-radius: 12px; background: #f1ebe7;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 -apple-system, Monserrat, sans-serif; color: var(--coral);
}
.mu-btn--play:before { content: ""; border-left: 11px solid var(--coral); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.mu-list { position: absolute; left: 0; right: 0; top: 508px; bottom: 0; overflow: hidden; }
.mu-row {
  position: absolute; left: 20px; right: 20px; top: 0; height: 60px;
  display: flex; align-items: center; gap: 12px; will-change: transform, opacity;
  border-bottom: 1px solid #eee8e4;
}
.mu-row i { flex: none; width: 46px; height: 46px; border-radius: 6px; background: center / cover; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.mu-row b { display: block; font: 600 16px/1.25 -apple-system, Monserrat, sans-serif; color: #1c1c1e; }
.mu-row small { display: block; font: 400 14px/1.3 -apple-system, Monserrat, sans-serif; color: #8a8580; }
.mu-row em { margin-left: auto; width: 18px; height: 4px; background: radial-gradient(circle, #b9b2ac 1.8px, transparent 2.2px) 0 0 / 6px 4px repeat-x; }
.mu-mini {
  position: absolute; left: 12px; right: 12px; bottom: 26px; height: 62px; border-radius: 16px;
  background: rgba(250, 247, 245, .94); box-shadow: 0 10px 28px rgba(40, 30, 20, .18);
  display: flex; align-items: center; gap: 12px; padding: 0 16px 0 10px; opacity: 0;
  backdrop-filter: blur(10px);
}
.mu-mini__art { width: 44px; height: 44px; border-radius: 8px; background: #ddd center / cover; flex: none; }
.mu-mini__text b { display: block; font: 600 15px/1.2 -apple-system, Monserrat, sans-serif; color: #1c1c1e; }
.mu-mini__text small { display: block; font: 400 13px/1.3 -apple-system, Monserrat, sans-serif; color: #8a8580; }
.mu-mini__play { margin-left: auto; width: 14px; height: 18px; border-left: 5px solid #1c1c1e; border-right: 5px solid #1c1c1e; }
.mu-mini__bar { position: absolute; left: 66px; right: 16px; bottom: 8px; height: 3px; border-radius: 2px; background: #e4ddd8; overflow: hidden; }
.mu-mini__bar:after { content: ""; position: absolute; inset: 0; background: var(--coral); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }

/* Photos */
.screen--photos { background: #fff; }
.ph-head { padding: 10px 20px 0; }
.ph-head b { display: block; font: 800 34px/1.1 -apple-system, "SF Pro Display", Monserrat, sans-serif; color: #111; }
.ph-head span { font: 500 15px/1.6 -apple-system, Monserrat, sans-serif; color: #8a8580; }
.ph-memory {
  position: relative; display: block; margin: 12px 16px 0; height: 150px; border-radius: 18px; overflow: hidden;
  background: #e7e1db; opacity: 0;
}
.ph-memory__img { position: absolute; inset: 0; background: center / cover; }
.ph-memory__text { position: absolute; left: 16px; bottom: 14px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.ph-memory__text small { display: block; font: 600 12px/1 -apple-system, Monserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.ph-memory__text b { display: block; margin-top: 4px; font: 700 21px/1.2 -apple-system, Monserrat, sans-serif; }
.ph-grid { position: absolute; left: 0; right: 0; top: 330px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.ph-cell { aspect-ratio: 1; background: #f2efec center / cover; }
.ph-cell.on { background-color: transparent; }
.ph-seg {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px;
  border-radius: 99px; background: rgba(240, 237, 234, .94); box-shadow: 0 8px 20px rgba(0,0,0,.12);
  font: 600 14px/1 -apple-system, Monserrat, sans-serif; color: #555;
}
.ph-seg span { padding: 9px 14px; border-radius: 99px; }
.ph-seg span.on { background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Outfit stack used by the race, the tabs and the cards */
.look { position: relative; overflow: hidden; isolation: isolate; }
.look img { position: absolute; left: 50%; bottom: -4%; height: 106%; width: auto; transform: translateX(-50%); max-width: none; }

/* ---------- The race ---------- */
.race { padding: 0 0 72px; }
/* The race holds the screen while it introduces itself, so it can't be scrolled past unseen. The frame is pinned
   for an extra stretch of scroll: "CATA is different." takes its breath large at the centre, settles into the eyebrow
   as the statement arrives, then the headline rises and the two phones come in while the race runs. */
.race__track { position: relative; height: calc(100vh + 210vh); height: calc(100svh + 210vh); }
.race__frame { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.race__head { margin: 0 0 26px; transition: transform 1.15s cubic-bezier(.65,0,.25,1); }
.race__title {
  font-family: var(--serif-display); font-weight: 900; text-transform: uppercase; text-align: center;
  font-size: clamp(32px, 3.6vw, 64px); line-height: 1.08; color: var(--ink);
}
.race__title span { display: block; }
.race__kicker {
  font-size: .5em; color: var(--coral); letter-spacing: .03em; margin-bottom: .55em;
  transform-origin: 50% 50%; transition: transform 1.1s cubic-bezier(.65,0,.25,1), opacity .8s ease, filter .8s ease;
}
.race__statement { font-size: .74em; line-height: 1.12; transition: opacity .8s ease .3s, transform 1s cubic-bezier(.2,.7,.2,1) .3s; }
.race__statement em { display: block; font-style: normal; color: var(--ink-soft); }
.race__statement em { transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1), filter .9s ease; }
.js .race:not(.is-em) .race__statement em { opacity: 0; transform: translateY(.45em); filter: blur(6px); }
.race__lanes { transition: opacity .9s ease .55s, transform 1.1s cubic-bezier(.2,.7,.2,1) .55s; }
.js .race:not(.is-race) .race__head { transform: translateY(var(--lift, 0px)); }
.js .race:not(.is-sub) .race__kicker { transform: translateY(var(--drop, 1.2em)) scale(2.1); }
.js .race:not(.is-in) .race__kicker { opacity: 0; filter: blur(8px); }
.js .race:not(.is-sub) .race__statement { opacity: 0; transform: translateY(.5em); }
.js .race:not(.is-race) .race__lanes { opacity: 0; transform: translateY(48px); }
/* the line under the phones arrives when the reader reaches it */
.race__after { max-width: 34em; margin: 18px auto 0; text-align: center; font: 500 clamp(16px, 1.05vw, 24px)/1.45 Monserrat, sans-serif; color: var(--ink); transition: opacity .9s ease 1.6s, transform .9s cubic-bezier(.2,.7,.2,1) 1.6s; }
.race__after em { display: block; font-style: normal; font-weight: 700; color: var(--coral); }
.js .race:not(.is-race) .race__after { opacity: 0; transform: translateY(16px); }
/* then a breath before the next chapter */
.v2 .race + .tabs__wrapper { padding-top: clamp(140px, 22vh, 260px); }
.v2 .tabs__sub { font: 500 18px/1.5 Monserrat, sans-serif; color: var(--ink-soft); margin-bottom: 8px; }
.race__lede { max-width: 520px; margin: 0 auto 36px; text-align: center; font: 500 17px/1.5 Monserrat, sans-serif; color: var(--ink); }
.race__lanes { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 4vw, 72px); }
.lane { margin: 0; text-align: center; }
/* the original phone frame (phone2.png, 310 x 642; screen at 12,54, 286 x 578) */
.lane__phone { position: relative; height: clamp(380px, calc(100vh - 440px), 800px); aspect-ratio: 310 / 642; }
.lane__frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; user-select: none; }
.lane__screen {
  position: absolute; left: 3.871%; top: 8.411%; width: 92.258%; height: 90.031%; overflow: hidden;
  border-radius: 0 0 12.5% 12.5% / 0 0 6.2% 6.2%; background: #fff; container-type: inline-size;
}
.lane__stage { position: absolute; left: 0; right: 0; top: 0; bottom: 66cqw; overflow: hidden; background: #e6e7e4; }
.lane__stage .look { position: absolute; inset: 0; }
.lane__sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 66cqw; padding: 4.5cqw 4cqw 0; background: #fff; }
.lane__tabs { display: flex; gap: 1.4cqw; font: 600 3.5cqw/1 Monserrat, sans-serif; color: #6a645e; white-space: nowrap; overflow: hidden; }
.lane__tabs span { padding: 2.3cqw 2.5cqw; border-radius: 99px; background: #f2efec; transition: background .2s, color .2s; }
.lane__tabs span.on { background: var(--coral); color: #fff; }
.lane__railbox { margin-top: 4.5cqw; overflow: hidden; }
.lane__rail {
  position: relative; display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 20.5cqw); grid-auto-columns: 20.5cqw; gap: 3cqw;
  --off: 0; transform: translateX(calc(var(--off) * -23.5cqw)); transition: transform .35s ease;
}
.lane__pick {
  position: relative; border-radius: 3.4cqw; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(43,42,40,.11); transition: box-shadow .15s;
}
.lane__pick img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; border-radius: 2.2cqw; }
.lane__pick.on { box-shadow: inset 0 0 0 1.5px var(--coral); }
.lane__pick.on:after { /* the tap */
  content: ""; position: absolute; left: 50%; top: 50%; width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; border-radius: 50%;
  background: rgba(249,120,95,.28); border: 1.5px solid rgba(255,255,255,.95); animation: tap .55s ease-out forwards;
}
.race__clock { align-self: center; margin: 0; min-width: 5.6em; text-align: center; font: 600 15px/1 Monserrat, sans-serif; color: var(--ink-soft); letter-spacing: .04em; }
.race__clock b { display: inline-block; min-width: 2.4em; text-align: right; font: 900 30px/1 Next, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
/* one avatar; a tap fades the new piece in over the old, then the old one out */
.race-cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.race-stack { position: absolute; inset: 0; }
.race-stack img { opacity: 0; transition: opacity .16s ease .16s; }
.race-stack img.on { opacity: 1; transition-delay: 0s; }
.race-stack img.is-base { transition: none; }
/* head to toe in the race: the shoes stay in frame */
.lane__stage .look img, .look-card .look img { bottom: 0; height: 100%; }
.lane__stage, .look-card { background: linear-gradient(#dcddd9, #e8e7e4 18%, #e8e7e4 72%, #e3e2de 82%, #e9e8e5 90%, #f4f3f1); }

/* CATA's saved looks, after the twelve taps */
.lane__looks {
  position: absolute; inset: 0; z-index: 2; background: #fff; padding: 5cqw 4cqw 0;
  opacity: 0; visibility: hidden; transform: translateY(5%);
  transition: opacity .35s ease, transform .55s cubic-bezier(.2,.7,.2,1), visibility 0s linear .55s;
}
.race--sheet .lane__looks { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.looks__head { display: flex; justify-content: space-between; align-items: baseline; font: 700 6.2cqw/1 Monserrat, sans-serif; color: #2b2a28; }
.looks__head span { padding: 2cqw 3.6cqw; border-radius: 99px; background: var(--coral); color: #fff; font: 600 3.6cqw/1 Monserrat, sans-serif; }
.looks__box { position: absolute; left: 4cqw; right: 4cqw; top: 17cqw; bottom: 0; overflow: hidden; }
.looks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; padding-bottom: 14cqw; will-change: transform; }
.look-card {
  position: relative; aspect-ratio: 3 / 4.7; border-radius: 3cqw; overflow: hidden;
  box-shadow: 0 .6cqw 2cqw rgba(60,50,40,.08); opacity: 0; transform: translateY(3cqw) scale(.94);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 35ms + .15s);
}
.race--sheet .look-card { opacity: 1; transform: none; }
.look-card .look { position: absolute; inset: 0; }

/* the generative stand-in */
.gen__look { position: absolute; inset: 0; filter: blur(18px) saturate(.45); transform: scale(1.06); transition: filter .6s ease, transform .6s ease; }
.is-clear .gen__look { filter: none; transform: none; }
.is-clear .gen__noise { opacity: 0 !important; transition: opacity .6s ease; }
.gen__noise { position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light; background-size: 96px 96px; opacity: .9; }
.gen__status {
  position: absolute; left: 4cqw; right: 4cqw; bottom: 4cqw; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 3cqw 4cqw 3.4cqw; border-radius: 4cqw; background: rgba(255,255,255,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 600 4.4cqw/1 Monserrat, sans-serif; color: #3d3a36; transition: opacity .4s;
}
.gen__pct { font-variant-numeric: tabular-nums; color: #8a8580; }
.gen__bar { position: relative; flex: 0 0 100%; height: 1.4cqw; margin-top: 2.6cqw; border-radius: 1cqw; background: #e8e3df; overflow: hidden; }
.gen__bar i { position: absolute; inset: 0; background: #6f6a65; transform-origin: 0 50%; transform: scaleX(0); }
.is-done .gen__status { opacity: 0; }
.gen__inputs { display: flex; flex-direction: column; align-items: stretch; gap: 3.6cqw; }
.gen__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2.4cqw; font: 600 6cqw/1 Monserrat, sans-serif; color: #b4ada6; }
.gen__row b { margin-top: -6cqw; }
.gen__in { display: flex; flex-direction: column; align-items: stretch; gap: 2cqw; text-align: center; }
.gen__in i { display: block; width: 100%; aspect-ratio: 1 / .94; border-radius: 3.4cqw; background: #e8e7e4 50% 8% / 150% no-repeat; box-shadow: inset 0 0 0 1px rgba(43,42,40,.11); }
.gen__in--item i { background-color: #fff; background-size: 74%; background-position: center; }
.gen__in small { font: 500 3.6cqw/1 Monserrat, sans-serif; color: #8a8580; }
.gen__btn { padding: 3.2cqw 6cqw; border-radius: 99px; background: #e9e5e1; text-align: center; font: 600 4.2cqw/1 Monserrat, sans-serif; color: #8a8580; }
.is-done ~ .gen__inputs .gen__btn { background: #2b2a28; color: #fff; }

.lane__name { margin-bottom: 12px; font: 900 clamp(20px, 1.9vw, 26px)/1 var(--serif-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink-soft); }
.lane--cata .lane__name { color: var(--coral); }
.lane__count { margin: 10px 0 0; font: 500 15px/1.3 Monserrat, sans-serif; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* the way back to an investor's own room, shown only in a browser that has opened it */
.roomlink { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(40,30,20,.14); font: 600 14px/1 Monserrat, sans-serif; color: #2b2a28; text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.roomlink.is-in { opacity: 1; transform: none; }
.roomlink i { font-style: normal; color: #f27b62; transition: transform .25s; }
.roomlink:hover i { transform: translateX(3px); }
@media (max-width: 767px) { .roomlink { left: 50%; bottom: 14px; transform: translate(-50%, 10px); } .roomlink.is-in { transform: translate(-50%, 0); } }
/* CATA's looks counter is off (Dov); it keeps its space so both phones stay level */
.lane--cata .lane__count { visibility: hidden; }
.race__note { max-width: 560px; margin: 28px auto 0; text-align: center; font-size: 13px; line-height: 1.5; color: #7a736b; }

/* ---------- See / Style / Wear ---------- */
.v2 .tabs__img { max-height: none; height: 340px; position: relative; background: linear-gradient(160deg, #dcebf5 0%, #f7efe9 55%, #fbe6dc 100%); }
.v2 .tabs__img:hover img { transform: none; }
/* the original site zoomed its still on hover (.tabs__img img: width 100%, a .6s transition, scale on hover); the live
   minis must not inherit any of it, or the centred outfits slide off on hover */
.v2 .tabs__img img, .v2 .tabs__img:hover img { transition: none; border-radius: 0; }
.v2 .tabs__img .look img, .v2 .tabs__img:hover .look img { transform: translateX(-50%); }
.v2 .tabs__wrap { box-shadow: 0 18px 40px -24px rgba(80, 60, 50, .35); }
.mini { position: absolute; inset: 0; overflow: hidden; }
.mini img { -webkit-user-drag: none; user-select: none; }
.mini .tag { position: absolute; left: 82%; top: 3px; width: 13px; height: 24px; margin-left: -6.5px; z-index: 2; }

/* See */
.mini--see .chips { position: absolute; left: 22px; top: 18px; display: flex; gap: 8px; font: 600 13px/1 Monserrat, sans-serif; }
.mini--see .chips span { display: flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.8); color: #555; transition: background .35s, color .35s; }
.mini--see .chips span.on { background: #1c1c1e; color: #fff; }
.mini--see .chip-tag { display: block; width: 11px; height: 20px; margin: -2px -2px 0; }
.mini--see .chip-tag svg { display: block; width: 100%; height: 100%; }
.mini--see .grid { position: absolute; left: 22px; right: 22px; top: 64px; bottom: 20px; }
.mini--see .cell {
  position: absolute; left: 0; top: 0; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(80,60,50,.06);
  transition: transform .9s cubic-bezier(.6,.05,.25,1), opacity .5s, box-shadow .5s;
}
.mini--see .cell img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: contain; }
.mini--see .cell.lift { box-shadow: 0 0 0 1.5px rgba(249,120,95,.7), 0 8px 18px rgba(249,120,95,.18); }

/* Style */
.mini--style { display: flex; align-items: center; justify-content: center; gap: 26px; }
.mini--style .col { display: flex; flex-direction: column; gap: 10px; }
.mini--style .pick {
  position: relative; width: 76px; height: 76px; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 8px rgba(80,60,50,.06); transition: box-shadow .3s, transform .3s;
}
.mini--style .pick img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.mini--style .pick.on { box-shadow: 0 0 0 2px var(--coral), 0 6px 16px rgba(249,120,95,.22); transform: scale(1.05); }
.mini--style .pick.tap:after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: rgba(249,120,95,.3); animation: tap .7s ease-out forwards;
}
.mini--style .stage {
  position: relative; width: 196px; height: 302px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(#f7f6f4, #ecebe8); box-shadow: 0 12px 28px rgba(80,60,50,.14);
}
.mini--style .combo { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.mini--style .combo.on { opacity: 1; }
.mini--style .combo img { bottom: 3%; height: 94%; }   /* the whole figure, shoes included */

/* Wear */
.mini--wear .week { position: absolute; left: 0; right: 0; top: 18px; display: flex; justify-content: center; gap: 12px; }
.mini--wear .day {
  position: relative; width: 98px; height: 194px; border-radius: 16px;
  background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9);
}
.mini--wear .day .look { border-radius: inherit; }
.mini--wear .day.today:after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--coral); pointer-events: none; z-index: 3; }
.mini--wear .day small {
  position: absolute; left: 0; right: 0; bottom: -19px; text-align: center;
  font: 600 11px/1 Monserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a8580;
}
.mini--wear .day.today small { color: var(--coral); }
.mini--wear .day .look {
  position: absolute; inset: 0; background: linear-gradient(#f8f7f5, #ecebe8); opacity: 0; transform: translateY(16px);
  transition: opacity .45s, transform .6s cubic-bezier(.2,.8,.2,1);
}
.mini--wear .day.on .look { opacity: 1; transform: none; }
.mini--wear .day .look img { bottom: 3%; height: 94%; }   /* head to shoes, no crop */
.mini--wear .shelf { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 12px; }
.mini--wear .piece { position: relative; width: 66px; height: 66px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(80,60,50,.08); }
.mini--wear .piece img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.mini--wear .piece .tag { left: 80%; top: 2px; width: 14px; height: 26px; margin-left: -7px; }
.mini--wear .piece.hop { animation: hop .6s cubic-bezier(.3,.7,.4,1); }
@keyframes hop { 40% { transform: translateY(-12px); } }

/* ---------- Video rows ---------- */
.v2 .video { padding: 120px 0; }
.v2 .video__wrap video { display: block; background: #e9e4df; }

/* ---------- Shop / Sell / Share ---------- */
.v2 .cards__item { background: #e3ebe4 url(../assets/img/card-bg.webp) 50% 50% / 124% no-repeat; }
.v2 .cards__img { width: 100%; max-width: 270px; height: 300px; position: relative; margin: auto auto 0; }
.v2 .cards__text { margin: 28px 0 18px; }
.loop { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(#e3e3df, #ebeae7 55%, #f1f0ee); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.loop--share { background: rgba(255,255,255,.6); }
.loop .state { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.loop .state { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.loop .state.on { opacity: 1; }
.loop .tap { position: absolute; z-index: 6; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); background: rgba(249,120,95,.32); opacity: 0; pointer-events: none; }
.loop .tap.on { animation: tap .7s ease-out forwards; }
@keyframes tap { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
.loop .pill {
  position: absolute; left: 50%; bottom: 14px; z-index: 5; transform: translate(-50%, 16px); opacity: 0; white-space: nowrap;
  padding: 10px 16px; border-radius: 99px; background: #1c1c1e; color: #fff; font: 600 13px/1 Monserrat, sans-serif;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
.loop .pill.on { transform: translate(-50%, 0); opacity: 1; }

/* Shop: the new piece slides in beside you, never over your face */
.loop--shop .drop {
  position: absolute; right: 12px; top: 44%; width: 92px; height: 116px; z-index: 4;
  border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(60,40,30,.16);
  transform: translateX(130px); opacity: 0;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
.loop--shop .drop img { position: absolute; left: 12px; top: 10px; width: calc(100% - 24px); height: calc(100% - 38px); object-fit: contain; }
.loop--shop .drop small { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font: 600 11px/1 Monserrat, sans-serif; color: var(--coral); }
.loop--shop .drop .tag { left: 80%; top: 6px; width: 15px; height: 28px; margin-left: -7.5px; }
.loop--shop .drop.in { transform: none; opacity: 1; }
.loop--shop .drop.go { transform: translate(-82px, -6px) scale(.3); opacity: 0; transition: transform .5s cubic-bezier(.5,0,.7,.4), opacity .4s .1s; }

/* Sell: two closets, one piece that moves between them */
.loop--sell { background: linear-gradient(#f3f1ee, #f7f5f2); }
.closetp { position: absolute; inset: 0; padding: 16px 16px 0; transition: transform .8s cubic-bezier(.65,.05,.3,1); }
.closetp.maya { background: linear-gradient(165deg, #eef3ec, #f8f3ee 55%, #fbe8df); }
.closetp.sam { background: linear-gradient(165deg, #dcebf5, #f4f0f2 55%, #f3e6f1); transform: translateX(100%); }
.to-sam .closetp.maya { transform: translateX(-100%); }
.to-sam .closetp.sam { transform: none; }
.closetp__head { display: flex; align-items: center; gap: 8px; font: 600 13px/1 Monserrat, sans-serif; color: #3b3732; }
.closetp__head i { width: 24px; height: 24px; border-radius: 50%; background: #e9c6b6; box-shadow: inset 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.1); }
.closetp.sam .closetp__head i { background: #b9d3e8; }
.closetp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.closetp__cell { position: relative; height: 104px; border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(80,60,50,.06); }
.closetp__cell img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: contain; }
.closetp__cell.is-empty { background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.95); }
/* the gown sits in Maya's second cell; it lifts, then flies to the empty cell in Sam's closet */
.loop--sell .piece {
  position: absolute; left: calc(16px + (100% - 48px) / 3 + 8px); top: 54px; width: calc((100% - 48px) / 3); height: 104px; z-index: 4;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), left .9s cubic-bezier(.65,.05,.3,1), top .9s cubic-bezier(.65,.05,.3,1);
}
.loop--sell .piece > img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.loop--sell .piece.lift { transform: scale(1.18) translateY(-4px); filter: drop-shadow(0 12px 14px rgba(60,40,30,.2)); }
.loop--sell .piece.move { left: calc(16px + (100% - 48px) / 3 + 8px); top: 166px; }
.loop--sell .ftag { position: absolute; left: 66%; top: 2px; width: 16px; height: 30px; margin-left: -8px; perspective: 300px; transform-origin: 50% 0; animation: tag-sway 3.6s ease-in-out infinite alternate; }
.loop--sell .ftag > span { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .6s cubic-bezier(.5,0,.3,1); transform-origin: 50% 30%; }
.loop--sell .ftag > span svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(1px 2px 1.5px rgba(50,35,15,.25)); }
.loop--sell .ftag__b { transform: rotateY(180deg); }
.loop--sell .ftag__b svg text, .loop--sell .wtag svg text { fill: #c8452d; }
.loop--sell .ftag.flip .ftag__f { transform: rotateY(-180deg); }
.loop--sell .ftag.flip .ftag__b { transform: rotateY(0deg); }
.loop--sell .pill.sold { display: grid; }
.loop--sell .pill.sold em { grid-area: 1 / 1; font-style: normal; text-align: center; transition: opacity .3s; }
.loop--sell .pill.sold em + em { opacity: 0; }
.loop--sell .pill.sold.sold-to { background: var(--coral); }
.loop--sell .pill.sold.sold-to em { opacity: 0; }
.loop--sell .pill.sold.sold-to em + em { opacity: 1; }
.loop--sell .state.wear { z-index: 5; background: linear-gradient(#e3e3df, #ebeae7 55%, #f1f0ee); -webkit-mask-image: none; mask-image: none; }
.loop--sell .wtag { left: 57%; top: 30%; width: 16px; height: 30px; margin-left: -8px; z-index: 900; }

/* Share */
.loop--share .deck { position: absolute; left: 50%; top: 22px; width: 116px; height: 180px; margin-left: -58px; transition: transform .6s cubic-bezier(.5,0,.3,1), opacity .5s; opacity: 0; transform: translateY(30px); }
.loop--share .deck.in { opacity: 1; transform: none; }
.loop--share .deck.sent { opacity: 0; transform: translateY(170px) scale(.18); transition: transform .6s cubic-bezier(.5,0,.75,.4), opacity .3s .3s; }
.loop--share .sc {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(#f8f7f5, #ecebe8);
  box-shadow: 0 8px 20px rgba(60,40,30,.16); transition: transform .6s cubic-bezier(.3,.7,.3,1);
}
.loop--share .sc .look { position: absolute; inset: 0; }
.loop--share .sc:nth-child(1) { transform: translate(-4px, 4px) rotate(-3deg); }
.loop--share .sc:nth-child(2) { transform: translate(4px, 2px) rotate(3deg); }
.loop--share .deck.fan .sc:nth-child(1) { transform: translate(-72px, 10px) rotate(-12deg); }
.loop--share .deck.fan .sc:nth-child(2) { transform: translate(72px, 10px) rotate(12deg); }
.loop--share .friends { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; }
.loop--share .friends i { width: 32px; height: 32px; margin: 0 -4px; border-radius: 50%; background: var(--av); box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0,0,0,.1); }
.loop--share .heart {
  position: absolute; left: 50%; bottom: 46px; width: 18px; height: 16px; margin-left: calc(var(--x) - 9px);
  color: var(--coral); opacity: 0; transform: scale(calc(var(--s) * .4)); pointer-events: none;
}
.loop--share .heart svg { display: block; width: 100%; height: 100%; }
.loop--share .heart.on { animation: heart-rise 2.2s cubic-bezier(.3,.6,.4,1) var(--d) forwards; }
@keyframes heart-rise {
  0% { opacity: 0; transform: translateY(0) scale(calc(var(--s) * .4)); }
  18% { opacity: .95; transform: translateY(-14px) scale(var(--s)); }
  100% { opacity: 0; transform: translateY(-120px) scale(calc(var(--s) * .8)); }
}
.loop--share .stats {
  position: absolute; left: 50%; top: 18px; display: flex; gap: 14px; transform: translate(-50%, -8px); opacity: 0;
  padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(60,40,30,.08);
  font: 600 13px/1 Monserrat, sans-serif; color: #4b463f; font-variant-numeric: tabular-nums; transition: opacity .4s, transform .4s;
}
.loop--share .stats.on { opacity: 1; transform: translate(-50%, 0); }
.loop--share .stats span { display: flex; align-items: center; gap: 6px; }
.loop--share .stats svg { width: 15px; height: 14px; color: var(--coral); }
.loop--share .stats span + span svg { color: #6f6a65; }

/* ---------- Closing: we've seen this before, then the world's closets ---------- */
.closing { position: relative; height: 1400vh; }
.closing__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.closing__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.closing__fly { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.closing .phone { z-index: 3; }
.closing .rec { box-shadow: 0 14px 28px rgba(70, 50, 40, .2); }
.closing .pic { box-shadow: 0 12px 24px rgba(70, 50, 40, .16); }
.closing__h {
  position: absolute; left: 6vw; top: 15vh; margin: 0; z-index: 5; opacity: 0; pointer-events: none;
  font-family: var(--serif-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(30px, 3.9vw, 58px); line-height: 1.04; color: var(--ink);
}
.screen--closet { background: linear-gradient(165deg, #eef3ec 0%, #f8f3ee 52%, #fbe8df 100%); }
.phone .closet__in { top: 54px; transform: none; }
.closing__q {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(92vw, 880px);
  text-align: center; z-index: 6; opacity: 0; pointer-events: none;
}
.closing__q:before { /* a soft clearing in the field so the question reads; the texture carries on around it */
  content: ""; position: absolute; inset: -22% -8% -10%; z-index: -1; opacity: var(--halo, 0);
  background: radial-gradient(closest-side, rgba(251,246,243,.78), rgba(251,246,243,.5) 58%, rgba(251,246,243,0));
}
.closing__question {
  margin: 0; font-family: var(--serif-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(30px, 4.1vw, 62px); line-height: 1.08; color: #e9684f;
}
.q-word { display: inline-block; white-space: nowrap; }
.q-l { display: inline-block; opacity: 0; will-change: opacity, transform, filter; }
.closing__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; opacity: 0; }
.closing__actions.live { pointer-events: auto; }
.quiet-btn {
  display: inline-block; padding: 15px 26px; border-radius: 99px; text-decoration: none;
  background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(43,42,40,.18);
  font: 600 15px/1 Monserrat, sans-serif; color: var(--ink); transition: background .3s, box-shadow .3s;
}
.quiet-btn:hover { background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(43,42,40,.35); }

/* ---------- Forms ---------- */
.form__form input { margin-bottom: 10px; }
.v2 .form__form input[type=text] { background-image: none; padding-left: 16px; }  /* the mail icon only on email fields */
.form__done { margin: 12px 0 0; font-size: 15px; color: #26372c; }

/* ---------- Phones and small screens ---------- */
@media (max-width: 767px) {
  .race { padding: 0 0 60px; }
  .race__head { margin-bottom: 18px; }
  .race__lanes { gap: 16px; flex-wrap: wrap; }
  .race__clock { order: -1; flex-basis: 100%; margin: 0 0 4px; }
  .lane__phone { height: auto; width: min(44vw, 176px); }
  .race__lede { font-size: 15px; margin-bottom: 32px; }
  .lane__name { font-size: 17px; margin-bottom: 12px; }
  .v2 .tabs__img { height: 290px; }
  .mini--see .chips { left: 12px; top: 12px; gap: 5px; font-size: 12px; }
  .mini--see .chips span { height: 26px; padding: 0 10px; }
  .mini--see .grid { left: 12px; right: 12px; top: 50px; bottom: 12px; }
  .mini--style { gap: 12px; }
  .mini--style .col { gap: 8px; }
  .mini--style .pick { width: 58px; height: 58px; border-radius: 12px; }
  .mini--style .pick img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  .mini--style .stage { width: 138px; height: 262px; }
  .mini--wear .week { top: 12px; gap: 6px; }
  .mini--wear .day { width: 56px; height: 156px; border-radius: 12px; }
  .mini--wear .day small { bottom: -16px; font-size: 9px; letter-spacing: .05em; }
  .mini--wear .shelf { bottom: 14px; gap: 10px; }
  .mini--wear .piece { width: 54px; height: 54px; border-radius: 12px; }
  .v2 .cards__img { height: 300px; max-width: 300px; }
  .closing { height: 1316vh; }
  .closing__h { left: 22px; top: 84px; font-size: clamp(26px, 8vw, 38px); }
  .closing__q { top: 36%; }
  .closing__question { font-size: clamp(26px, 7.6vw, 40px); }
  .closing__actions { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .tag { animation: none; }
}

/* the swipe cue under the Fitting Room stays on every visit, even after a tap */
.builder .demo-gesture { opacity: 1; }
.builder .demo-gesture[hidden] { display: flex; }

/* the shuffle button: a crisp, larger sparkle */
.avatar-section .avatar-container .random-btn-avatar { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.random-btn-avatar__icon { width: 24px; height: 24px; display: block; }

/* Large monitors: the hero copy grows with the screen (the cloud already does) */
@media (min-width: 1680px) and (min-height: 960px) {
  .story__hero .hero__title { font-size: clamp(44px, min(2.6vw, 4.8vh), 66px); }
  .story__hero .hero__subtitle { font-size: clamp(24px, min(1.35vw, 2.5vh), 33px); line-height: 1.35; }
}

/* The Fitting Room's rail: the same thin, modern tiles as the race */
.v2 .builder .items-grid .item-card { background: #fff; border: 1px solid rgba(43,42,40,.11); border-radius: 12px; }
.v2 .builder .items-grid .item-card .item-thumbnail { width: 46px; height: 46px; object-fit: contain; border-radius: 7px; }
.v2 .builder .items-grid .item-card.selected { border-color: var(--coral); box-shadow: inset 0 0 0 .5px var(--coral); }
.phone .closet__view { position: absolute; left: 0; right: 0; top: 132px; bottom: 0; overflow: hidden; }
.phone .closet__view .closet__grid { top: 0; }
.phone__body { background: #111214; }

/* Menu links: a soft fade to the section instead of a long scroll */
.navveil {
  position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: 0;
  background: #fbf6f2 url(../assets/img/rainbow-pastel.webp) 50% 50% / cover no-repeat;
  transition: opacity .42s cubic-bezier(.4,0,.2,1);
}
.navveil.on { opacity: 1; pointer-events: auto; transition-duration: .4s; }
.navveil:not(.on) { transition-duration: .7s; }

/* the swipe cue's hand keeps moving */
.v2 .builder .demo-gesture svg { animation: demo-swipe 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .v2 .builder .demo-gesture svg { animation: none; } }

/* while the phone forms, only its frame shows; its drop shadow arrives once it has formed */
.closing .phone .phone__body { transition: box-shadow .6s ease; }
.closing .phone.is-forming .phone__body { box-shadow: 0 0 0 1.5px #3b3c40, 0 0 0 4px #c9cbd0, 0 0 0 5px #8e9096; }

/* ---------- The new CATA mark: soft letters that settle in one by one, then breathe ---------- */
.v2 .header__logo, .page .header__logo { width: 176px; height: auto; display: block; }
.cata-logo { display: block; width: 100%; height: auto; overflow: visible; }
.cata-logo .lg { transform-box: fill-box; transform-origin: 50% 70%; animation: lg-in .9s cubic-bezier(.34,1.56,.64,1) both, lg-float 6s ease-in-out 1.2s infinite; }
.cata-logo .lg-1 { animation-delay: .09s, 1.9s; }
.cata-logo .lg-2 { animation-delay: .18s, 2.6s; transform-origin: 30% 80%; }
.cata-logo .lg-3 { animation-delay: .24s, 3.1s; transform-origin: 50% 0; }
.cata-logo .lg-4 { animation-delay: .33s, 2.2s; }
@keyframes lg-in { from { opacity: 0; transform: translateY(14%) scale(.55); } to { opacity: 1; transform: none; } }
@keyframes lg-float { 0%, 100% { transform: none; } 50% { transform: translateY(-3%) rotate(-1.5deg) scale(1.02, .98); } }
/* on the homepage the letters wait for the loading screen to finish */
.homepage-document:not(.intro-gone):not(.skip-intro) .cata-logo .lg { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cata-logo .lg { animation: none; } }

/* ---------- Menu: ink type on a frosted pill, more present over the hero ---------- */
.menu-sheen { display: none; }
.menu-sheen:before, .menu-sheen:after { content: none !important; }
@media (min-width: 701px) and (min-height: 541px) {
  .v2 .header__menu-list, .page--sus .header__menu-list {
    gap: 4px; padding: 6px; border-radius: 99px;
    background: rgba(255,255,255,.58); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 24px rgba(40,50,35,.10);
  }
  .v2 .header__menu-list a, .page--sus .header__menu-list a {
    color: #2b2a28; padding: 10px 16px; border-radius: 99px; font-size: 13px; letter-spacing: .06em;
    transition: background .25s, color .25s;
  }
  .v2 .header__menu-list a:before, .page--sus .header__menu-list a:before { content: none; }
  .v2 .header__menu-list, .page--sus .header__menu-list { position: relative; isolation: isolate; }
  .v2 .header__menu-list > li:not(.menu-sheen), .page--sus .header__menu-list > li:not(.menu-sheen) { position: relative; z-index: 1; }
  .menu-sheen { display: block !important; position: absolute; inset: 0; z-index: 0; pointer-events: none; clip-path: inset(4% round 99px); }
  .menu-sheen i {
    position: absolute; left: 18%; top: 2%; width: 64%; height: 96%; will-change: transform;
    background: radial-gradient(closest-side, rgba(255,255,255,.12) 0%, rgba(139,203,214,.18) 28%, rgba(229,180,158,.144) 64%, rgba(229,180,158,0) 100%);
  }
  .v2 .header__menu-list a:hover, .page--sus .header__menu-list a:hover { background: rgba(255,255,255,.85); color: #2b2a28 !important; }
  @media (prefers-reduced-motion: reduce) { .menu-sheen i { will-change: auto; } }
  .page--sus .header__menu-list a.is-here { background: #2b2a28; color: #fff; }
  .page--sus .header__menu-list a.is-here:hover { background: #2b2a28; color: #fff !important; }
  .v2 .header__container, .page--sus .header__container { align-items: center; }
}
@media (max-width: 1024px) { .v2 .header__logo, .page .header__logo { width: 132px; } }
@media (max-width: 700px) { .v2 .header__logo, .page .header__logo { width: 112px; } }
/* on the light pastel pages the mark uses deeper tones of its own two colours, so it reads */
/* the investor room's deeper pink for the A's everywhere; the deeper blue only on the room and Sustainability */
.page--sus .cata-logo .lg--blue, .page--room .cata-logo .lg--blue { fill: #9eaecb; }
.cata-logo .lg--pink { fill: #f0b3a6; }
@media (min-width: 1025px) { .v2 .header__logo { margin-left: -18px; } }

/* ---------- a phone held sideways: the story is laid out for upright phones, so ask for that (Dov 2026-11-26).
   Touch screens only, so a short desktop window never sees it. A film playing full screen sits above it. ---------- */
@media (orientation: landscape) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  html::after {
    content: "Turn your phone upright"; position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; align-content: center;
    padding: 110px 24px 0; text-align: center; font: 900 22px/1.2 var(--serif-display); text-transform: uppercase; letter-spacing: .02em; color: #2b2a28;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none' stroke='%232b2a28' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='33' y='18' width='30' height='54' rx='6'/%3E%3Cpath d='M44 64h8'/%3E%3Cpath stroke='%23f27b62' d='M76 34a30 30 0 0 0-14-17M70 16l-8 1 1 8M20 62a30 30 0 0 0 14 17M26 80l8-1-1-8'/%3E%3C/svg%3E") center calc(50% - 40px) / 84px no-repeat,
      linear-gradient(rgba(251,247,242,.9), rgba(251,247,242,.9)),
      url(../assets/img/rainbow-pastel.webp) center / cover, #fbf7f2;
  }
}

/* ---------- Phone menu (Dov 2026-11-26): an ink button on frosted glass that reads on any background, and a
   full-screen sheet that opens as a circle from the button, with big links that rise in one after another ---------- */
@media (max-height: 540px) and (orientation: landscape), (max-width: 700px) {
  html .header .hamburger {
    width: 44px; height: 44px; border-radius: 50%; position: relative; z-index: 1002; margin-right: -6px;
    background: rgba(255,255,255,.72); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 6px 18px rgba(40,40,35,.12); -webkit-tap-highlight-color: transparent;
    transition: background .4s, box-shadow .4s, transform .2s;
  }
  html .header .hamburger:active { transform: scale(.94); }
  html .header .hamburger:before, html .header .hamburger:after, html .header .hamburger .hamburger__item {
    content: ""; position: absolute; left: 13px; width: 18px; height: 2px; margin: 0; border-radius: 2px; background-color: #2b2a28 !important;
    transition: transform .45s cubic-bezier(.7,0,.2,1), opacity .25s, top .45s cubic-bezier(.7,0,.2,1), width .45s cubic-bezier(.7,0,.2,1);
  }
  html .header .hamburger:before { top: 16px; bottom: auto; }
  html .header .hamburger .hamburger__item { top: 21px; width: 12px; }
  html .header .hamburger:after { top: 26px; bottom: auto; }
  html .header .hamburger--active { background: #2b2a28; box-shadow: 0 6px 18px rgba(40,40,35,.2); }
  html .header .hamburger--active:before, html .header .hamburger--active:after { background-color: #fff !important; top: 21px; }
  html .header .hamburger--active:before { transform: rotate(45deg); }
  html .header .hamburger--active:after { transform: rotate(-45deg); }
  html .header .hamburger--active .hamburger__item { opacity: 0; transform: translateX(8px); }

  html .header .header__nav, html .homepage .header .header__nav:not(.header__nav--active) {
    position: fixed; left: 0; right: auto; top: 0; width: 100vw; height: 100vh; height: 100dvh; padding: 110px 28px 40px;
    display: flex; align-items: flex-start; justify-content: flex-start; opacity: 1; visibility: visible; z-index: 1000;
    background: linear-gradient(rgba(251,247,242,.55), rgba(251,247,242,.78)), #fbf7f2 url(../assets/img/rainbow-pastel.webp) 50% 50% / cover no-repeat;
    clip-path: circle(0 at calc(100% - 38px) 50px); pointer-events: none;
    transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s .7s;
  }
  html .header .header__nav:not(.header__nav--active) { visibility: hidden; }
  html .header .header__nav.header__nav--active { clip-path: circle(150vh at calc(100% - 38px) 50px); pointer-events: auto; visibility: visible; transition: clip-path .75s cubic-bezier(.7,0,.2,1); }
  html .header .header__menu-list { counter-reset: mi; align-items: stretch; gap: 0; width: 100%; padding: 0; background: none; box-shadow: none; }
  html .header .header__menu-list > li { counter-increment: mi; text-align: left; border-bottom: 1px solid rgba(43,42,40,.12); overflow: hidden; }
  html .header .header__menu-list > li:after { content: none; }
  html .header .header__menu-list > li.menu-sheen { display: none !important; }
  html .header .header__menu-list a {
    display: flex; align-items: baseline; gap: 14px; padding: 18px 0 14px; color: #2b2a28; font: 900 clamp(26px, 7.9vw, 36px)/1 var(--serif-display);
    letter-spacing: .01em; text-transform: uppercase; background: none; border-radius: 0;
    transform: translateY(105%); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s, color .25s;
  }
  html .header .header__menu-list a:before {
    content: "0" counter(mi); position: static; display: inline; width: auto; height: auto; background: none; transform: none; left: auto;
    font: 600 12px/1 Monserrat, sans-serif; letter-spacing: .14em; color: var(--coral, #f27b62); transition: none;
  }
  html .header .header__menu-list a:after { content: none; }   /* no arrows (Dov 2026-11-26) */
  html .header .header__menu-list a:hover, html .header .header__menu-list a:active { color: #2b2a28 !important; background: none; }
  html .header .header__menu-list a.is-here { color: var(--coral, #f27b62); background: none; }
  html .header .header__nav--active .header__menu-list a { transform: none; opacity: 1; }
  html .header .header__nav--active .header__menu-list > li:nth-child(2) a { transition-delay: .22s; }
  html .header .header__nav--active .header__menu-list > li:nth-child(3) a { transition-delay: .28s; }
  html .header .header__nav--active .header__menu-list > li:nth-child(4) a { transition-delay: .34s; }
  html .header .header__nav--active .header__menu-list > li:nth-child(5) a { transition-delay: .40s; }
  /* the mark stays above the sheet so the brand never leaves the screen */
  html .header .header__logo { position: relative; z-index: 1002; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  html .header .header__nav, html .header .header__nav.header__nav--active { transition: none !important; }
  html .header .header__menu-list a { transition: none !important; }
}

/* See / Style / Wear: the avatar render fills its card edge to edge, so no lighter band shows above or below it
   (the render's own backdrop runs dark at the top and light at the foot; the card's old gradient ran the other way) */
.mini--style .combo img, .mini--wear .day .look img { bottom: 0; height: 100%; }
.mini--style .stage, .mini--wear .day .look { background: linear-gradient(#dcddd9, #e8e7e4 18%, #e8e7e4 72%, #e3e2de 82%, #e9e8e5 90%, #f4f3f1); }

/* Shop / Sell / Share on phones: the card grows to hold its scene at the desktop size, so nothing is cropped
   (the original capped the card at 315px, which squeezed the scene to 175px and cut the pieces) */
@media (max-width: 992px) {
  .v2 .cards__item { height: auto; max-height: none; min-height: 0; }
  .v2 .cards__img { flex: none; height: 300px; max-width: 270px; margin-top: 14px; }
}

/* the Fitting Room on phones (Dov 2026-11-26): the cues inside the phone sit on a frosted chip in ink, so they read
   over the avatar, and the tap / swipe cue under it is bigger */
@media (max-width: 867px) {
  .v2 .builder__wrap .info-block .info-text {
    font-size: 13.5px; line-height: 1.28; font-weight: 500; color: #34302b; padding: 7px 10px; border-radius: 12px;
    background: rgba(255,255,255,.84); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(40,35,30,.12);
  }
  .v2 .builder__wrap .info-block.info-block-1 { max-width: 124px; right: 18px; top: 62px; }
  /* its arrow sits under the words, at the chip's left, pointing at the avatar (it used to overlap "your") */
  .v2 .builder__wrap .info-block .info-text__one { align-items: flex-start; text-align: left; }
  .v2 .builder__wrap .info-block .info-text__one svg { left: -2px; top: 3px; max-width: 16px; }
  .v2 .builder__wrap .info-block.info-block-2 { max-width: 156px; }
  .v2 .builder__wrap .info-block.info-block-3 { max-width: 134px; }
  .v2 .builder__wrap .info-block .info-text__two { padding-right: 10px; }
  .v2 .builder__wrap .info-block .info-text__three { padding-left: 10px; }
  .v2 .builder .demo-gesture { font-size: 14.5px; font-weight: 500; gap: 12px; color: #3d3833; top: calc(100% + 14px); }
  .v2 .builder .demo-gesture svg { width: 30px; height: 34px; }
}
.roomlink:not(.is-in) { pointer-events: none; }
