/* The Shoe Game: investor showcase.
   Type: Zalando Sans (text) and Zalando Sans Expanded (display), self-hosted.
   Colour: the page wears whichever of the five looks is selected. */

@font-face { font-family: "Zalando Sans Expanded"; src: url("../fonts/ZalandoSansExpanded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Zalando Sans"; src: url("../fonts/ZalandoSans.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --bg: #0E0E0D; --ink: #F2EDE4; --accent: #D2602F; --accent-ink: #0E0E0D; --panel: #1A1A18; --muted: #A39D92; --rule: #2E2D2A;
  --display: "Zalando Sans Expanded", "Arial Black", sans-serif;
  --text: "Zalando Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
html[data-flavor="2"] { --bg: #111111; --ink: #F3F2EC; --accent: #F5D51E; --accent-ink: #111111; --panel: #222220; --muted: #A5A39A; --rule: #33332F; }
html[data-flavor="3"] { --bg: #0F3B2C; --ink: #F3EEDF; --accent: #F2C230; --accent-ink: #0F3B2C; --panel: #164A38; --muted: #B4C4B4; --rule: #2A5A47; }
html[data-flavor="4"] { --bg: #F3F0E9; --ink: #141414; --accent: #C4502A; --accent-ink: #FFFFFF; --panel: #E8E3D8; --muted: #625D55; --rule: #D3CDC0; color-scheme: light; }
html[data-flavor="5"] { --bg: #2747F0; --ink: #FFFFFF; --accent: #FFFFFF; --accent-ink: #2747F0; --panel: #3556F3; --muted: #D3DAFD; --rule: #5670F5; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--accent) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--accent); color: var(--accent-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.display { font-family: var(--display); font-weight: 900; line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
h1.display { font-size: clamp(40px, 6.1vw, 104px); }
h2.display { font-size: clamp(30px, 4.3vw, 68px); }
mark { background: var(--accent); color: var(--accent-ink); padding: 0 .14em .04em; display: inline-block; transform: rotate(-2deg); }

/* word-by-word reveal for headings */
.w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .06em; }
.w > i { display: inline-block; font-style: normal; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.in .w > i { transform: none; }
[data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: .15s; }
[data-rv].in { opacity: 1; transform: none; }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--rule); }
.mark { font: 900 15px/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.looks { display: flex; align-items: center; gap: 8px; }
.looks button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); outline: 1.5px solid var(--rule); padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); transition: transform .35s var(--ease), outline-color .2s; }
.looks button:hover { transform: scale(1.15); }
.looks button[aria-checked="true"] { outline: 2px solid var(--ink); transform: scale(1.15); }
.xp { font: 700 13px/1 var(--text); color: var(--muted); white-space: nowrap; }
.xp b { color: var(--ink); font-weight: 800; display: inline-block; }
.xp.pop b { animation: pop .5s var(--ease); }
@keyframes pop { 30% { transform: scale(1.5) rotate(-6deg); color: var(--accent); } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 800 16px/1 var(--text); text-decoration: none; will-change: transform; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); }
.btn:hover { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8); }
.btn:active { transform: translateY(2px) scale(.98) !important; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.link { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.link:hover { text-decoration-color: var(--ink); }

/* hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(20px, 4vw, 64px); padding: 96px var(--gutter) 40px; }
.hero-copy { display: grid; gap: 28px; max-width: 820px; }
.lede { font-size: clamp(17px, 1.5vw, 21px); max-width: 44ch; color: var(--muted); }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero-stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: min(84svh, 780px); }

.device { position: relative; height: min(76svh, 700px); aspect-ratio: 390 / 844; padding: 10px; border-radius: 48px; background: #0B0B0C; box-shadow: 0 0 0 1.5px #3A3A40, 0 50px 80px -34px rgba(0, 0, 0, .75), 0 18px 30px -18px rgba(0, 0, 0, .5); transform-style: preserve-3d; will-change: transform; }
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: #000; isolation: isolate; }
.device-screen::after, .wall button::after { content: ""; position: absolute; z-index: 5; top: .9%; left: 50%; width: 36%; height: 4.7%; transform: translateX(-50%); background: #000; border-radius: 99px; pointer-events: none; }
.device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device-live iframe { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity .5s; }
.device-live.ready iframe { opacity: 1; }
.device-live.ready .poster { opacity: 0; transition: opacity .5s .2s; }
.sheen { position: absolute; inset: 10px; border-radius: 39px; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .13) 46%, transparent 58%); background-size: 250% 100%; background-position: var(--sheen, 120%) 0; mix-blend-mode: screen; }
.tape { position: absolute; left: 50%; bottom: 3%; transform: translateX(-118%) rotate(-5deg); background: var(--accent); color: var(--accent-ink); font: 800 12px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; padding: 9px 12px; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .6); white-space: nowrap; animation: nudge 2.6s var(--ease) infinite; z-index: 3; }
@keyframes nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 8px -3px; } 90% { translate: 0 0; } }

.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker { position: absolute; left: var(--x); top: var(--y); width: var(--w); pointer-events: auto; cursor: pointer; background: none; border: 0; padding: 0; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .35)); transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot)); transition: filter .3s; -webkit-tap-highlight-color: transparent; }
.sticker img { width: 100%; height: auto; animation: bob calc(5s + var(--n) * .7s) ease-in-out infinite; animation-delay: calc(var(--n) * -1.3s); transition: transform .5s var(--ease); }
.sticker:hover img { transform: scale(1.08) rotate(4deg); }
.sticker.got img { animation: got .7s var(--ease); }
@keyframes bob { 50% { translate: 0 -12px; rotate: 2deg; } }
@keyframes got { 30% { transform: scale(1.3) rotate(-14deg); } 60% { transform: scale(.92) rotate(8deg); } }
.burst { position: fixed; z-index: 70; pointer-events: none; font: 900 22px/1 var(--display); color: var(--accent-ink); background: var(--accent); padding: 8px 12px; transform: translate(-50%, -50%) rotate(-8deg); animation: burst 1s var(--ease) forwards; white-space: nowrap; clip-path: polygon(0 12%, 6% 0, 14% 10%, 24% 0, 34% 9%, 46% 0, 56% 10%, 68% 0, 78% 9%, 90% 0, 100% 12%, 94% 50%, 100% 88%, 90% 100%, 78% 91%, 68% 100%, 56% 90%, 46% 100%, 34% 91%, 24% 100%, 14% 90%, 6% 100%, 0 88%, 6% 50%); padding: 14px 20px; }
@keyframes burst { 0% { scale: .2; opacity: 0; } 25% { scale: 1.15; opacity: 1; } 70% { opacity: 1; } 100% { translate: 0 -90px; scale: 1; opacity: 0; } }

/* brand marquee */
.marquee { overflow: clip; border-block: 1px solid var(--rule); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; gap: 0; animation: slide 46s linear infinite; }
.marquee-track span { font: 900 clamp(26px, 4.6vw, 64px)/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; padding: 0 .45em; white-space: nowrap; display: flex; align-items: center; gap: .9em; }
.marquee-track span::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--accent); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
section { position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 5vw, 80px); align-items: end; padding: clamp(80px, 12vw, 170px) var(--gutter) clamp(30px, 5vw, 70px); }
.section-head p { color: var(--muted); max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); }

/* a day in the game */
.scrolly { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 var(--gutter); }
.scrolly-stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; align-content: center; gap: 18px; }
.scrolly-stage .device { height: min(74svh, 680px); }
#dayScreens img { opacity: 0; transform: translateY(7%) scale(.97); transition: opacity .55s var(--ease), transform .8s var(--ease); }
#dayScreens img.on { opacity: 1; transform: none; }
#dayScreens img.past { opacity: 0; transform: translateY(-5%) scale(1.02); }
.shown-in { font-size: 14px; color: var(--muted); min-height: 1.5em; text-align: center; }
.shown-in b { color: var(--ink); font-weight: 700; }
.steps li { min-height: 88svh; display: grid; align-content: center; gap: 16px; padding: 0 0 0 clamp(0px, 4vw, 70px); opacity: .25; transition: opacity .5s; }
.steps li.on { opacity: 1; }
.steps li:first-child { min-height: 100svh; }
.steps h3 { font: 900 clamp(24px, 2.9vw, 44px)/1.02 var(--display); letter-spacing: -.02em; max-width: 14ch; text-wrap: balance; }
.steps p { color: var(--muted); max-width: 40ch; font-size: clamp(16px, 1.25vw, 19px); }
.steps li.on h3 { animation: lift .7s var(--ease); }
@keyframes lift { from { transform: translateY(14px); } }

/* five looks */
.looks-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 60px); padding: 0 var(--gutter); align-items: center; }
.look-list { display: grid; gap: clamp(6px, 1.2vw, 16px); }
.look-list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0 10px; color: var(--ink); cursor: pointer; font: 900 clamp(28px, 4.4vw, 70px)/1 var(--display); letter-spacing: -.03em; opacity: .28; position: relative; transition: opacity .35s, transform .5s var(--ease); }
.look-list button:hover { opacity: .7; transform: translateX(8px); }
.look-list button[aria-pressed="true"] { opacity: 1; transform: translateX(0); }
.look-list button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; max-width: 9ch; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.look-list button[aria-pressed="true"]::after { transform: scaleX(1); transition: transform .6s var(--ease); }
.look-list.auto button[aria-pressed="true"]::after { animation: fill var(--cycle, 5s) linear; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.look-show { display: grid; gap: 28px; justify-items: center; }
.fan { position: relative; display: flex; justify-content: center; align-items: center; height: min(66svh, 600px); width: 100%; perspective: 1600px; }
.fan .device { position: absolute; height: 100%; padding: 8px; border-radius: 40px; transition: transform .9s var(--ease); }
.fan .device .device-screen { border-radius: 33px; }
.fan .device:nth-child(1) { transform: translateX(-62%) rotate(-9deg) scale(.86); z-index: 1; }
.fan .device:nth-child(2) { z-index: 3; }
.fan .device:nth-child(3) { transform: translateX(62%) rotate(9deg) scale(.86); z-index: 2; }
.fan:hover .device:nth-child(1) { transform: translateX(-74%) rotate(-12deg) scale(.88); }
.fan:hover .device:nth-child(3) { transform: translateX(74%) rotate(12deg) scale(.88); }
.fan img { transition: opacity .5s; }
.look-info { display: grid; gap: 14px; max-width: 520px; text-align: center; justify-items: center; }
.look-info p { font-size: clamp(16px, 1.3vw, 19px); }
.look-info .who { color: var(--muted); font-size: 15px; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); outline: 1.5px solid var(--rule); }

.wall { margin-top: clamp(60px, 9vw, 120px); display: grid; gap: 16px; overflow: clip; padding: 10px 0; }
.wall-row { display: flex; gap: 16px; width: max-content; animation: slide 90s linear infinite; }
.wall-row[data-dir="-1"] { animation-direction: reverse; }
.wall:hover .wall-row { animation-play-state: paused; }
.wall button { flex: none; width: clamp(130px, 13vw, 190px); aspect-ratio: 402 / 874; padding: 0; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: var(--panel); cursor: zoom-in; position: relative; transition: transform .45s var(--ease); }
.wall button:hover { transform: translateY(-8px) scale(1.03); z-index: 2; }
.wall img { width: 100%; height: 100%; object-fit: cover; }

/* shareables */
.share { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 80px); align-items: center; padding: clamp(90px, 13vw, 190px) var(--gutter); }
.share-copy { display: grid; gap: 24px; }
.share-copy p { color: var(--muted); max-width: 42ch; font-size: clamp(16px, 1.3vw, 19px); }
.share-cards { position: relative; height: min(70svh, 620px); display: flex; justify-content: center; perspective: 1600px; }
.share-cards .device { position: absolute; height: 100%; padding: 8px; border-radius: 40px; transform: translateX(calc(var(--k) * var(--spread, 30%))) rotate(calc(var(--k) * var(--tilt, 4deg))) translateY(calc(var(--k) * var(--k) * 14px)); transition: transform .2s linear; }
.share-cards .device .device-screen { border-radius: 33px; }

/* scope */
.scope { padding: clamp(60px, 9vw, 130px) var(--gutter); display: grid; gap: clamp(30px, 5vw, 60px); border-top: 1px solid var(--rule); }
.scope-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 6vw, 100px); }
.scope h3 { font: 800 15px/1 var(--text); color: var(--accent); margin-bottom: 14px; }
html[data-flavor="5"] .scope h3 { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.scope li { padding: 15px 0; border-top: 1px solid var(--rule); font-size: clamp(17px, 1.6vw, 23px); line-height: 1.4; font-weight: 500; }
.scope-cols > div:last-child li { color: var(--muted); }

/* close */
.close { padding: clamp(100px, 14vw, 200px) var(--gutter) clamp(60px, 8vw, 110px); display: grid; gap: 28px; justify-items: start; border-top: 1px solid var(--rule); overflow: clip; }
.close h2 { max-width: 16ch; font-size: clamp(34px, 6vw, 100px); }
.close p { color: var(--muted); max-width: 46ch; font-size: clamp(17px, 1.4vw, 21px); }
.conveyor { display: flex; width: max-content; gap: clamp(20px, 4vw, 60px); margin: clamp(40px, 6vw, 80px) 0 0 calc(var(--gutter) * -1); animation: slide 50s linear infinite; }
.conveyor img { width: clamp(120px, 14vw, 210px); height: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .3)); }
.conveyor img:nth-child(odd) { rotate: -7deg; }
.conveyor img:nth-child(even) { rotate: 6deg; translate: 0 14px; }

.foot { padding: 28px var(--gutter) 48px; border-top: 1px solid var(--rule); display: grid; gap: 6px; font-size: 13px; color: var(--muted); max-width: 90ch; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 94%, transparent); cursor: zoom-out; animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox img { height: min(88svh, 874px); width: auto; border-radius: 28px; border: 1px solid var(--rule); animation: rise .45s var(--ease); }
.lightbox-close { position: absolute; top: 18px; right: var(--gutter); background: var(--ink); color: var(--bg); border: 0; border-radius: 6px; padding: 10px 16px; font: 800 14px/1 var(--text); cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(30px) scale(.94); opacity: 0; } }

/* the look change: the new look wipes in as a circle from the control you pressed */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* narrow screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 88px; gap: 8px; }
  .hero-stage { min-height: 0; padding: 30px 0 10px; }
  .hero-stage .device { height: min(70svh, 600px); }
  .tape { transform: translateX(-50%) rotate(-4deg); bottom: -6px; }
  .sticker { width: calc(var(--w) * .58); }
  .section-head { grid-template-columns: 1fr; }
  .scrolly { grid-template-columns: 1fr; }
  .scrolly-stage { height: 56svh; top: 52px; z-index: 2; background: var(--bg); gap: 6px; padding-top: 10px; align-content: start; border-bottom: 1px solid var(--rule); }
  .scrolly-stage .device { height: calc(56svh - 54px); padding: 6px; border-radius: 30px; }
  .scrolly-stage .device .device-screen { border-radius: 25px; }
  .shown-in { font-size: 12px; }
  .steps li, .steps li:first-child { min-height: 46svh; padding: 0; align-content: start; padding-top: 28px; }
  .steps li:last-child { min-height: 50svh; }
  .looks-body { grid-template-columns: 1fr; }
  .fan { height: 52svh; }
  .share { grid-template-columns: 1fr; }
  .share-cards { height: 54svh; margin-top: 20px; }
  .scope-cols { grid-template-columns: 1fr; }
  .nav .btn-small { display: none; }
  .looks button { width: 24px; height: 24px; }
}
@media (max-width: 420px) {
  .mark { font-size: 12px; }
  .looks { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w > i, [data-rv] { transform: none !important; opacity: 1 !important; transition: none !important; }
  .marquee-track, .wall-row, .conveyor, .sticker img, .tape { animation: none !important; }
  .wall, .marquee { overflow-x: auto; }
  #dayScreens img { transition: opacity .2s; transform: none !important; }
}
