/* ============================================================
   DressRun — The Styling Table, after hours
   ink #121210 · paper #F4F4F1 · brand #002FA7 (--brand, the only blue)
   type: Clash Display / Switzer / Fragment Mono
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #121210;
  --surface: #1a1a18;
  --paper: #f4f4f1;
  --ink: #131311;
  --brand: #002fa7; /* THE DressRun blue — every blue on the page derives from this one constant */
  --steel: #97999b;
  --card: #ffffff;
  --hairline: rgba(244, 244, 241, 0.14);
  --hairline-faint: rgba(244, 244, 241, 0.05);
  --display: 'Clash Display', 'Arial Narrow', sans-serif;
  --body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Fragment Mono', 'SF Mono', Menlo, monospace;
}

html {
  scroll-behavior: smooth;
}

/* the table: pattern-cutting paper on a dark atelier bench */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--hairline-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-faint) 1px, transparent 1px),
    linear-gradient(rgba(244, 244, 241, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 244, 241, 0.022) 1px, transparent 1px);
  background-size:
    112px 112px,
    112px 112px,
    28px 28px,
    28px 28px;
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2%, 3%);
  }
  50% {
    transform: translate(3%, -2%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(2%, 2%);
  }
}

/* atelier spotlight that trails the cursor */
.spotlight {
  position: fixed;
  z-index: 1;
  width: 720px;
  height: 720px;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 244, 241, 0.09) 0%,
    rgba(244, 244, 241, 0.04) 34%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  will-change: transform;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--steel);
}
.klein-text {
  color: var(--brand);
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  pointer-events: none;
}
.nav::before {
  /* fade so type survives garments passing under */
  content: '';
  position: absolute;
  inset: 0 0 -34px 0;
  background: linear-gradient(rgba(18, 18, 16, 0.92), rgba(18, 18, 16, 0.55) 60%, transparent);
  pointer-events: none;
}
.nav > * {
  pointer-events: auto;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  width: clamp(118px, 9.3vw, 146px);
  text-decoration: none;
}
.nav-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a,
.nav-cta {
  color: var(--paper);
  text-decoration: none;
}
.nav-links a:hover {
  opacity: 0.65;
}

.nav-cta {
  border: 1px solid var(--hairline);
  padding: 9px 16px 8px;
  border-radius: 100px;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.nav-cta:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- hero ---------- */

.hero {
  height: 300vh;
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero-sticky::after {
  content: '';
  position: absolute;
  z-index: 12;
  inset: auto 0 0;
  height: 30vh;
  pointer-events: none;
  opacity: var(--hero-exit, 0);
  background: linear-gradient(transparent, color-mix(in srgb, var(--brand) 18%, transparent));
}

.eyebrow {
  color: var(--steel);
  margin-bottom: 18px;
}
.eyebrow .idx {
  /* brand blue lives as a fill, never as dim text on dark */
  background: var(--brand);
  color: #fff;
  padding: 3px 7px 2px;
  margin-right: 10px;
}
.eyebrow.inverse {
  color: rgba(255, 255, 255, 0.65);
}

.klein {
  color: var(--brand);
}

.hero-opening,
.hero-final {
  position: absolute;
  z-index: 40;
  left: 4vw;
  bottom: 5vh;
  pointer-events: none;
  will-change: opacity, transform;
}
.hero-opening .mono,
.hero-final .mono {
  margin-bottom: 18px;
  color: rgba(244, 244, 241, 0.62);
}
.hero-opening h1,
.hero-final-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(72px, 9.2vw, 154px);
  line-height: 0.78;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}
.hero-opening h1 {
  width: 92vw;
  color: rgba(244, 244, 241, 0.96);
  mix-blend-mode: difference;
}
.hero-opening-line {
  display: block;
}
.hero-final {
  left: auto;
  right: 4vw;
  top: 50%;
  bottom: auto;
  text-align: right;
  opacity: 0;
  transform: translateY(5vh);
}
.hero-final-title span {
  display: block;
}
.hero-final-note {
  width: 300px;
  margin: 28px 0 0 auto;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(244, 244, 241, 0.7);
}

.hero-hint {
  margin-top: 24px;
  color: var(--steel);
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-hint .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(244, 244, 241, 0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.hero-curtain {
  position: absolute;
  z-index: 24;
  inset: 0;
  pointer-events: none;
}
.hero-curtain::before,
.hero-curtain::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(244, 244, 241, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero-curtain::before {
  width: 66vw;
  height: 66vw;
  left: 17vw;
  top: calc(50% - 33vw);
}
.hero-curtain::after {
  width: 38vw;
  height: 38vw;
  left: 31vw;
  top: calc(50% - 19vw);
  border-style: dashed;
}
.hero-panel {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 0;
  height: 0;
  will-change: opacity, transform, filter;
}
.panel-number,
.panel-name {
  position: absolute;
  top: -7px;
  color: rgba(244, 244, 241, 0.42);
  white-space: nowrap;
}
.panel-number {
  left: -7px;
  color: var(--paper);
}
.panel-name {
  left: 12px;
  opacity: 0.6;
}

.garment {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 32px));
  transition:
    opacity 0.8s,
    transform 1.1s cubic-bezier(0.2, 1, 0.3, 1);
}
body.loaded .garment {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.garment img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55));
  transition: filter 0.3s;
}

#g-jacket {
  width: clamp(230px, 21vw, 350px);
  transition-delay: 0.16s;
}
#g-shirt {
  width: clamp(220px, 20vw, 335px);
  transition-delay: 0.08s;
}
#g-jeans {
  width: clamp(170px, 15vw, 250px);
  transition-delay: 0.24s;
}
#g-loafers {
  width: clamp(210px, 20vw, 330px);
  transition-delay: 0.32s;
}
#g-shades {
  width: clamp(150px, 14vw, 230px);
}
.panel-jacket {
  transform: translate(-50%, -50%) translate3d(79vw, 40vh, 0);
}
.panel-shirt {
  transform: translate(-50%, -50%) translate3d(42vw, 36vh, 0);
}
.panel-jeans {
  transform: translate(-50%, -50%) translate3d(52vw, 70vh, 0);
}
.panel-loafers {
  transform: translate(-50%, -50%) translate3d(83vw, 82vh, 0);
}
.panel-shades {
  transform: translate(-50%, -50%) translate3d(19vw, 25vh, 0);
}

.hero-person {
  position: absolute;
  z-index: 16;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path, opacity, transform;
  padding-top: clamp(78px, 9vh, 104px);
}
.hero-person::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 47, 167, 0.12), transparent 36%);
  pointer-events: none;
}
.hero-person img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% center;
  transform-origin: 50% 48%;
  will-change: transform;
}

.hero-side-note {
  position: absolute;
  z-index: 45;
  right: 22px;
  top: 50%;
  color: rgba(244, 244, 241, 0.42);
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.tag {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: max-content;
  max-width: 220px;
  transform: translateX(-50%);
  padding: 7px 10px;
  border: 1px solid rgba(19, 19, 17, 0.18);
  background: var(--paper);
  color: var(--ink);
}
.tag-onblue {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--paper);
  color: var(--ink);
}

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  position: relative;
  z-index: 5;
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker span {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-right: 26px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 241, 0.55);
}
.ticker span b {
  /* every other phrase runs solid brand blue */
  font-weight: 600;
  color: var(--brand);
  -webkit-text-stroke: 0;
}
.ticker .tick-dot {
  color: var(--brand);
  -webkit-text-stroke: 0;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.ticker-klein {
  background: var(--brand);
  border-color: var(--brand);
}
.ticker-klein span {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
}
.ticker-klein span b {
  color: #fff;
}
.ticker-klein .tick-dot {
  color: #fff;
}

/* ---------- stray pieces (ambient parallax) ---------- */

.stray {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
  will-change: transform;
}
.stray img {
  width: 100%;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.5));
}
.stray-scarf {
  width: clamp(160px, 18vw, 300px);
  right: -3vw;
}

/* ---------- manifesto ---------- */

.manifesto {
  padding: 26vh 8vw;
  position: relative;
  overflow: hidden;
}

.manifesto-p {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.manifesto-p .word-reveal {
  opacity: 0.14;
  transition: opacity 0.4s;
}
.manifesto-p .word-reveal.on {
  opacity: 1;
}

/* ---------- section headers ---------- */

.sec-head {
  padding: 0 8vw;
  max-width: 1100px;
  position: relative;
  z-index: 3;
}

.sec-h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 14px 0 22px;
  color: var(--paper);
}

.sec-sub {
  max-width: 460px;
  color: rgba(244, 244, 241, 0.82);
}

/* ---------- wardrobe rail ---------- */

.wardrobe {
  padding: 10vh 0 14vh;
  position: relative;
}

.rail-wrap {
  margin-top: 60px;
  overflow: hidden;
}

.rail {
  display: flex;
  gap: 22px;
  padding: 10px 8vw 30px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 240px;
  background: radial-gradient(at 50% 32%, rgba(244, 244, 241, 0.085), transparent 72%)
    var(--surface);
  border: 1px solid var(--hairline);
  padding: 26px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s,
    border-color 0.35s;
}
.card:hover {
  transform: translateY(-10px) rotate(-1deg);
  border-color: color-mix(in srgb, var(--brand) 90%, transparent);
  box-shadow:
    0 30px 50px -20px rgba(0, 0, 0, 0.7),
    0 0 40px color-mix(in srgb, var(--brand) 35%, transparent);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5));
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: var(--paper);
}
.card-meta span:first-child {
  background: var(--brand);
  color: #fff;
  padding: 2px 6px 1px;
  width: fit-content;
  margin-bottom: 2px;
}

/* ---------- create ---------- */

.create {
  padding: 14vh 5vw 18vh;
  position: relative;
}

.create-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5vw;
  row-gap: 9vh;
  align-items: end;
  max-width: 1680px;
  margin: 0 auto;
}

.create-copy {
  grid-column: 1 / span 7;
  grid-row: 1;
  max-width: 850px;
}
.create-copy .sec-h2 {
  font-size: clamp(64px, 7.2vw, 126px);
  line-height: 0.82;
  margin: 24px 0 34px;
}
.create-line {
  display: block;
  white-space: nowrap;
}
.create-copy .sec-sub {
  max-width: 620px;
  font-size: clamp(16px, 1.2vw, 21px);
}

.spec-list {
  grid-column: 9 / -1;
  grid-row: 1;
  list-style: none;
  color: var(--steel);
  border-top: 1px solid var(--hairline);
}
.spec-list li {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-list li span {
  color: var(--brand);
}

.create-demo {
  grid-column: 1 / -1;
  grid-row: 2;
  border: 1px solid rgba(244, 244, 241, 0.22);
  background: rgba(244, 244, 241, 0.025);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9);
  transform: rotate(-0.35deg);
}
.studio-bar,
.studio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--steel);
}
.studio-bar {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--hairline);
}
.studio-bar i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 16px color-mix(in srgb, var(--brand) 70%, transparent);
}
.studio-actions b {
  color: var(--paper);
  font-weight: 400;
}
.studio-body {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: min(68vh, 700px);
}
.studio-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-right: 1px solid var(--hairline);
  color: var(--steel);
}
.studio-tools span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
}
.studio-tools .tool-active {
  color: #fff;
  background: var(--brand);
}
.studio-footer {
  height: 44px;
  padding: 0 18px;
  border-top: 1px solid var(--hairline);
}

/* the canvas: a cutting mat */
.canvas-frame {
  position: relative;
  min-height: min(68vh, 700px);
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(244, 244, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 244, 241, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow: hidden;
}
.canvas-frame::before {
  content: 'DRAG / DROP / DRESS';
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 14px;
  color: rgba(244, 244, 241, 0.22);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.canvas-frame::after {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px dashed color-mix(in srgb, var(--brand) 75%, transparent);
  pointer-events: none;
}
.canvas-axis {
  position: absolute;
  z-index: 0;
  background: rgba(244, 244, 241, 0.09);
}
.canvas-axis.axis-x {
  left: 22px;
  right: 22px;
  top: 50%;
  height: 1px;
}
.canvas-axis.axis-y {
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 1px;
}

.canvas-label {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  color: var(--steel);
  font-size: 10px;
}

.demo-piece {
  position: absolute;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.55));
  transition:
    transform 1s cubic-bezier(0.3, 1, 0.3, 1),
    opacity 0.6s;
  opacity: 0;
}
.dp-shirt {
  width: min(23%, 250px);
  left: 39%;
  top: 6%;
  transform: translate(-60vw, 10vh) rotate(-24deg);
}
.dp-skirt {
  width: min(15%, 165px);
  left: 43%;
  top: 40%;
  transform: translate(50vw, 14vh) rotate(18deg);
}
.dp-loafers {
  width: min(18%, 210px);
  left: 51%;
  top: 77%;
  transform: translate(-40vw, 30vh) rotate(-30deg);
}

.create-demo.play .demo-piece {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
}
.create-demo.play .dp-shirt {
  transition-delay: 0.05s;
}
.create-demo.play .dp-skirt {
  transition-delay: 0.35s;
}
.create-demo.play .dp-loafers {
  transition-delay: 0.65s;
}

.demo-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  left: 46%;
  top: 34%;
  opacity: 0;
}
.create-demo.play .demo-cursor {
  animation: cursor-tour 3.2s 0.2s forwards;
}
@keyframes cursor-tour {
  0% {
    opacity: 0;
    left: 80%;
    top: 85%;
  }
  12% {
    opacity: 1;
  }
  35% {
    left: 48%;
    top: 22%;
  }
  65% {
    left: 46%;
    top: 55%;
  }
  90% {
    left: 44%;
    top: 82%;
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- AI (klein) ---------- */

.ai {
  background: var(--brand);
  color: #fff;
  padding: 13vh 5vw 15vh;
  position: relative;
  overflow: hidden;
}
.ai::before {
  /* pattern grid continues, in white */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 112px 112px;
  pointer-events: none;
}

.ai-inner {
  max-width: 1680px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

.ai-h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(88px, 12.8vw, 220px);
  line-height: 0.72;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  position: relative;
  z-index: 3;
}
.ai-h2 span {
  display: block;
}
.ai-h2 span:last-child {
  padding-left: 43%;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
}

.ai-requests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 8vh 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.66);
}
.ai-requests span {
  padding: 14px 18px;
}
.ai-requests span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.prompt-chip {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(720px, 72vw);
  margin: 7vh auto 0;
  padding: 17px 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  font-size: 13px;
  text-align: left;
  background: rgba(0, 10, 60, 0.25);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08) inset;
}
.prompt-label {
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.6);
}
.prompt-prefix {
  opacity: 0.6;
}
.prompt-text {
  min-width: 0;
}
.caret {
  width: 8px;
  height: 16px;
  background: #fff;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.ai-stage {
  position: relative;
  height: min(62vw, 720px);
  min-height: 560px;
  margin-top: -2vh;
}
.ai-stage::before,
.ai-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ai-stage::before {
  width: min(66vw, 980px);
  height: min(36vw, 540px);
}
.ai-stage::after {
  width: min(38vw, 570px);
  height: min(38vw, 570px);
  border-style: dashed;
}

.ai-piece {
  position: absolute;
  opacity: 0;
  transform: translateY(60px) rotate(0deg) scale(0.92);
  transition:
    transform 1.1s cubic-bezier(0.2, 1, 0.3, 1),
    opacity 0.7s;
}
.ai-piece img {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(0, 5, 40, 0.6));
}

#ai-dress {
  width: clamp(180px, 15vw, 240px);
  left: calc(50% - clamp(90px, 7.5vw, 120px));
  top: 4%;
}
#ai-heel {
  width: clamp(180px, 19vw, 300px);
  right: 6%;
  top: 48%;
}
#ai-shades {
  width: clamp(160px, 17vw, 270px);
  left: 5%;
  top: 27%;
}

.ai.assemble #ai-dress {
  opacity: 1;
  transform: translateY(0) rotate(-3deg);
  transition-delay: 0.1s;
}
.ai.assemble #ai-heel {
  opacity: 1;
  transform: translateY(0) rotate(8deg);
  transition-delay: 0.4s;
}
.ai.assemble #ai-shades {
  opacity: 1;
  transform: translateY(0) rotate(-10deg);
  transition-delay: 0.65s;
}

/* landing glow as each piece arrives, then a slow ambient bob */
.ai.assemble .ai-piece img {
  animation:
    land-glow 1.6s ease-out both,
    ai-bob 7s ease-in-out 2s infinite;
}
.ai.assemble #ai-dress img {
  animation-delay: 0.1s, 2.1s;
}
.ai.assemble #ai-heel img {
  animation-delay: 0.4s, 2.7s;
}
.ai.assemble #ai-shades img {
  animation-delay: 0.65s, 3.3s;
}
@keyframes land-glow {
  0% {
    filter: drop-shadow(0 30px 50px rgba(0, 5, 40, 0.6)) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  45% {
    filter: drop-shadow(0 30px 50px rgba(0, 5, 40, 0.6))
      drop-shadow(0 0 44px rgba(255, 255, 255, 0.55));
  }
  100% {
    filter: drop-shadow(0 30px 50px rgba(0, 5, 40, 0.6)) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
}
@keyframes ai-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.ai-note {
  max-width: 560px;
  margin: -7vh 2vw 0 auto;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 3;
  font-size: clamp(16px, 1.2vw, 20px);
}
.ai-note strong {
  color: #fff;
}

/* ---------- runs ---------- */

.runs {
  padding: 16vh 0;
  position: relative;
}

.run-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 70px 8vw 0;
  max-width: 1400px;
  margin: 0 auto;
}

.run-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s,
    border-color 0.35s;
}
.run-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--brand) 90%, transparent);
  box-shadow:
    0 34px 54px -22px rgba(0, 0, 0, 0.7),
    0 0 44px color-mix(in srgb, var(--brand) 30%, transparent);
}

.run-canvas {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background-image:
    radial-gradient(at 50% 42%, rgba(244, 244, 241, 0.1), transparent 74%),
    linear-gradient(rgba(244, 244, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 244, 241, 0.05) 1px, transparent 1px);
  background-size:
    100% 100%,
    34px 34px,
    34px 34px;
}
.rc-img {
  position: absolute;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
}

.rc-a1 {
  width: 48%;
  left: 5%;
  top: 6%;
  transform: rotate(-6deg);
}
.rc-a2 {
  width: 25%;
  left: 60%;
  top: 12%;
  transform: rotate(4deg);
}
.rc-a3 {
  width: 42%;
  left: 20%;
  top: 74%;
  transform: rotate(-4deg);
}

.rc-b1 {
  width: 27%;
  left: 22%;
  top: 6%;
  transform: rotate(-4deg);
}
.rc-b2 {
  width: 34%;
  left: 52%;
  top: 48%;
  transform: rotate(8deg);
}

.rc-c1 {
  width: 31%;
  left: 6%;
  top: 5%;
  transform: rotate(-5deg);
}
.rc-c2 {
  width: 36%;
  left: 46%;
  top: 14%;
  transform: rotate(6deg);
}
.rc-c3 {
  width: 30%;
  left: 32%;
  top: 70%;
  transform: rotate(-8deg);
}

.run-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  font-size: 10px;
  color: var(--paper);
}
.run-no {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  padding: 3px 7px 2px;
}

.pub-chip {
  align-self: flex-start;
  margin-top: 2px;
  background: var(--brand);
  color: #fff;
  padding: 4px 8px 3px;
}

/* ---------- access / footer ---------- */

.access {
  padding: 24vh 8vw 20vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.access-brand-mark {
  position: relative;
  z-index: 3;
  display: block;
  width: clamp(42px, 4.8vw, 72px);
  height: auto;
  margin: 0 auto 32px;
  opacity: 0.88;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--brand) 45%, transparent));
}

/* the wardrobe gathers around the closing line — bookends the hero scatter */
.cta-piece {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.cta-piece img {
  width: 100%;
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, 0.55));
  animation: cta-bob 9s ease-in-out infinite;
}
@keyframes cta-bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
  50% {
    transform: translateY(-14px) rotate(calc(var(--tilt, 0deg) + 1.5deg));
  }
}

.cp-heels {
  width: clamp(120px, 12vw, 210px);
  left: 7vw;
  top: 14%;
}
.cp-jacket {
  width: clamp(140px, 14vw, 230px);
  right: -2vw;
  top: 8%;
}
.cp-skirt {
  width: clamp(130px, 13vw, 220px);
  left: 10vw;
  bottom: 5%;
}
.cp-tee {
  width: clamp(140px, 14vw, 240px);
  right: 10vw;
  bottom: 6%;
}
.cp-heels img {
  --tilt: -14deg;
  animation-delay: 0s;
}
.cp-jacket img {
  --tilt: 12deg;
  animation-delay: -2.2s;
}
.cp-skirt img {
  --tilt: 8deg;
  animation-delay: -4.4s;
}
.cp-tee img {
  --tilt: -9deg;
  animation-delay: -6.6s;
}

.access-h2,
.access-btn,
.access-note {
  position: relative;
  z-index: 3;
}

.access-h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(56px, 11vw, 170px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.access-h2 .line {
  display: block;
  overflow: hidden;
}
.access-h2 .word {
  display: inline-block;
  transform: translateY(110%);
}
.access.in .word {
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.2, 1, 0.3, 1);
}
.access.in .line:nth-child(2) .word {
  transition-delay: 0.1s;
}

.access-btn {
  display: inline-block;
  margin-top: 54px;
  padding: 20px 44px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 100px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}
.access-btn:hover {
  background: var(--brand);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 0 60px color-mix(in srgb, var(--brand) 60%, transparent);
}

.access-note {
  margin-top: 26px;
  color: var(--steel);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 32px;
  border-top: 1px solid var(--hairline);
  color: var(--steel);
}
.footer a {
  color: var(--paper);
  text-decoration: none;
}
.footer a:hover {
  opacity: 0.65;
}

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s,
    transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav {
    z-index: 120;
    position: fixed;
    inset: 0 0 auto;
    min-height: 68px;
    padding: 18px 16px;
    background: linear-gradient(rgba(18, 18, 16, 0.98), rgba(18, 18, 16, 0.88));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline);
  }
  .nav::before {
    display: none;
  }
  .nav-brand {
    width: 116px;
  }
  .nav-cta {
    padding: 8px 11px 7px;
    font-size: 9px;
  }
  .nav-links {
    display: none;
  }

  .hero {
    height: 300vh;
  }
  .hero-opening,
  .hero-final {
    left: 5vw;
    right: 5vw;
  }
  .hero-opening {
    top: 24vh;
    bottom: auto;
  }
  .hero-opening h1,
  .hero-final-title {
    width: auto;
    font-size: 16vw;
    line-height: 0.82;
    letter-spacing: -0.055em;
    word-spacing: normal;
  }
  .hero-opening h1 {
    max-width: 92vw;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.58);
  }
  .hero-opening-line {
    padding-left: 0;
    white-space: nowrap;
  }
  .hero-opening-line:last-child {
    color: var(--paper);
  }
  .hero-opening .mono,
  .hero-final .mono {
    margin-bottom: 10px;
    font-size: 9px;
  }
  .hero-final {
    top: 14vh;
    bottom: auto;
    text-align: left;
  }
  .hero-final::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -4vh -5vw -3vh;
    background: linear-gradient(var(--bg), rgba(18, 18, 16, 0.82) 65%, transparent);
  }
  .hero-final-title {
    font-size: 13.6vw;
    line-height: 0.86;
  }
  .hero-final-note {
    width: 66vw;
    margin: 13px 0 0;
    font-size: 12px;
  }
  .hero-final-title .klein-text {
    font-size: 0.82em;
  }
  .hero-hint {
    margin-top: 14px;
  }

  /* phone rhythm: tighten the desktop-scale breathing room */
  .manifesto {
    padding: 14vh 8vw;
  }
  .wardrobe {
    padding: 8vh 0 10vh;
  }
  .runs {
    padding: 10vh 0;
  }
  .ai {
    padding: 11vh 6vw 12vh;
  }
  .access {
    padding: 18vh 8vw 16vh;
  }
  .access-h2 {
    font-size: 13vw;
  }

  /* AI labels are translated into the mobile composition rather than clipped. */
  #ai-heel .tag,
  #ai-shades .tag {
    display: none;
  }
  #ai-dress .tag {
    left: 50%;
    right: auto;
    bottom: -26px;
    transform: translateX(-50%) rotate(-2deg);
    white-space: nowrap;
  }

  #g-jacket {
    width: 39vw;
  }
  #g-shirt {
    width: 35vw;
  }
  #g-jeans {
    width: 27vw;
  }
  #g-loafers {
    width: 35vw;
  }
  #g-shades {
    width: 26vw;
  }
  .panel-name,
  .panel-number {
    display: none;
  }
  .panel-jacket {
    transform: translate(-50%, -50%) translate3d(84vw, 43vh, 0) rotate(6deg);
  }
  .panel-shirt {
    transform: translate(-50%, -50%) translate3d(17vw, 31vh, 0) rotate(-7deg);
  }
  .panel-jeans {
    transform: translate(-50%, -50%) translate3d(31vw, 70vh, 0) rotate(4deg);
  }
  .panel-loafers {
    transform: translate(-50%, -50%) translate3d(76vw, 84vh, 0) rotate(-8deg);
  }
  .panel-shades {
    transform: translate(-50%, -50%) translate3d(70vw, 17vh, 0) rotate(9deg);
  }
  .hero-curtain::before {
    width: 110vw;
    height: 110vw;
    left: -5vw;
    top: calc(50% - 55vw);
  }
  .hero-curtain::after {
    width: 70vw;
    height: 70vw;
    left: 15vw;
    top: calc(50% - 35vw);
  }
  .hero-person img {
    object-position: 50% center;
  }
  .hero-person {
    padding-top: 64px;
    padding-bottom: 2vh;
  }
  .hero-side-note {
    display: none;
  }
  .spotlight {
    display: none;
  }
  .stray {
    opacity: 0.55;
  }
  .stray-scarf {
    width: 30vw;
  }

  .cp-heels {
    width: 22vw;
    left: 3vw;
    top: 10%;
  }
  .cp-jacket {
    width: 30vw;
    right: -6vw;
    top: 6%;
  }
  .cp-skirt {
    width: 24vw;
    left: 4vw;
    bottom: 3%;
  }
  .cp-tee {
    width: 22vw;
    right: 4vw;
    bottom: 2%;
  }

  .create {
    padding: 11vh 5vw 12vh;
  }
  .create-grid {
    display: block;
  }
  .create-copy {
    display: block;
    max-width: none;
  }
  .create-copy .sec-h2 {
    font-size: clamp(52px, 15vw, 72px);
    line-height: 0.83;
    margin: 22px 0 28px;
  }
  .create-copy .sec-sub {
    margin-top: 0;
    max-width: 35rem;
    font-size: 16px;
  }
  .spec-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 34px 0 22px;
    border-bottom: 1px solid var(--hairline);
  }
  .spec-list li {
    display: block;
    min-width: 0;
    padding: 12px 8px 13px;
    border-bottom: 0;
    font-size: 8px;
    line-height: 1.35;
  }
  .spec-list li + li {
    border-left: 1px solid var(--hairline);
  }
  .spec-list li span {
    display: block;
    margin-bottom: 5px;
  }
  .create-demo {
    transform: none;
    border-inline: 0;
    margin-inline: -5vw;
  }
  .studio-bar {
    height: 46px;
    padding: 0 5vw;
  }
  .studio-body {
    display: block;
    min-height: min(132vw, 560px);
  }
  .canvas-frame {
    min-height: min(132vw, 560px);
    background-size: 28px 28px;
  }
  .canvas-frame::after {
    inset: 14px;
  }
  .canvas-frame::before {
    right: 5vw;
    bottom: 14px;
    font-size: 8px;
  }
  .studio-actions {
    display: none;
  }
  .studio-tools {
    display: none;
  }
  .studio-footer {
    height: 42px;
    padding: 0 5vw;
  }
  .studio-footer span:nth-child(2) {
    display: none;
  }
  .dp-shirt {
    width: 58%;
    left: 19%;
    top: 6%;
  }
  .dp-skirt {
    width: 34%;
    left: 32%;
    top: 40%;
  }
  .dp-loafers {
    width: 45%;
    left: 39%;
    top: 76%;
  }
  .run-cards {
    grid-template-columns: 1fr;
  }
  .ai-stage {
    height: min(132vw, 560px);
    min-height: 460px;
    margin-top: 0;
  }
  .ai-h2 {
    margin-top: 28px;
    font-size: 22vw;
    line-height: 0.75;
  }
  .ai-h2 span:last-child {
    padding-left: 20%;
    -webkit-text-stroke-width: 1px;
  }
  .ai-requests {
    margin-top: 6vh;
    grid-template-columns: 1fr 1fr;
  }
  .ai-requests span {
    padding: 10px 8px;
    font-size: 8px;
  }
  .ai-requests span:nth-child(3) {
    display: none;
  }
  .prompt-chip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    margin-top: 5vh;
    padding: 14px 15px;
    font-size: 9px;
  }
  .prompt-label {
    display: none;
  }
  .ai-stage::before {
    width: 118vw;
    height: 72vw;
  }
  .ai-stage::after {
    width: 76vw;
    height: 76vw;
  }
  #ai-dress {
    width: min(48vw, 210px);
    left: 26vw;
    top: 7%;
  }
  #ai-shades {
    width: min(42vw, 190px);
    left: -6vw;
    top: 24%;
  }
  #ai-heel {
    width: min(47vw, 220px);
    left: auto;
    right: -7vw;
    top: 58%;
  }
  .ai-note {
    margin: -3vh 0 0;
    max-width: 32rem;
    font-size: 15px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
  body::after {
    display: none;
  }
  .spotlight {
    display: none;
  }
  .ticker-track {
    animation: none;
  }
  .hero {
    height: auto;
  }
  .hero-sticky {
    position: relative;
    height: 100vh;
  }
  .access-h2 .word {
    transform: none;
  }
  .hero-hint,
  .garment,
  .hero-person,
  .demo-piece,
  .ai-piece,
  .reveal {
    opacity: 1 !important;
    transform: none;
  }
  .garment {
    opacity: 1;
  }
  .hero-person {
    clip-path: circle(0% at 50% 50%) !important;
  }
}
