/* Montecasino: Spoilt 4 Choice — bespoke case study.
   Everything here is scoped to .mc / .mc-page / mc- so the IDÉE chrome
   (header, CTA band, footer) keeps the site's own styles.
   Palette sampled from the supplied artwork:
     rule red #DA1B34 · Montecasino red #C8142F · prize gold #EAC353 · floor black #0E0D12 */

.mc-page {
  --mc-bg: #0e0d12;
  --mc-bg-2: #16141b;
  --mc-bg-3: #1e1b24;
  --mc-ink: #f4f0ea;
  --mc-mut: #b4ada5;      /* 8.6:1 on --mc-bg */
  --mc-meta: #948d86;     /* 5.6:1 on --mc-bg */
  --mc-line: rgba(244, 240, 234, 0.12);
  --mc-red: #da1b34;      /* decorative + large type only (3.6:1) */
  --mc-red-hi: #ff5c6c;   /* small red text on dark (6.0:1) */
  --mc-brand: #c8142f;
  --mc-gold: #eac353;
  --mc-ease: cubic-bezier(0.2, 0, 0, 1);
  --mc-ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --mc-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --mc-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--mc-bg);
}
html:has(body.mc-page) { background: var(--mc-bg); }

/* header over the case-study bands (main.js sets body[data-nav] from data-band) */
body[data-nav="mc"] .header { background: var(--mc-bg); }
body[data-nav="mc"] .logo,
body[data-nav="mc"] .nav__link { color: var(--mc-ink); }
body[data-nav="mc"] .logo:hover,
body[data-nav="mc"] .nav__link:hover { color: var(--mc-red-hi); }
body[data-nav="mc"] .nav__cta { background: var(--mc-ink); color: var(--mc-bg); }
body[data-nav="mc"] .nav__cta:hover { background: var(--mc-red); color: #fff; }
body[data-nav="mc-red"] .header { background: var(--mc-brand); }
body[data-nav="mc-red"] .logo,
body[data-nav="mc-red"] .nav__link { color: #fff; }
body[data-nav="mc-red"] .logo .l-dot { color: var(--ink); }
body[data-nav="mc-red"] .nav__cta { background: var(--ink); color: #fff; }

.mc-skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--mc-gold); color: #000; padding: 10px 16px; border-radius: 6px;
  font: 600 14px/1 'Montserrat', sans-serif;
}
.mc-skip:focus { top: 12px; color: #000; }

.mc { color: var(--mc-ink); background: var(--mc-bg); }
.mc a { color: inherit; }
.mc :focus-visible { outline: 2px solid var(--mc-gold); outline-offset: 3px; border-radius: 2px; }
.mc button { font: inherit; color: inherit; }

/* ---------- shared type ---------- */
.mc-kicker, .mc-label, .mc-note, .mc-flag {
  font-family: var(--mc-mono); letter-spacing: 0.08em;
}
.mc-kicker { font-size: 12px; text-transform: uppercase; color: var(--mc-red-hi); margin-bottom: 18px; }
.mc-label { font-size: 12px; text-transform: uppercase; color: var(--mc-meta); margin-bottom: 18px; }
.mc-note { display: block; font-size: 12px; letter-spacing: 0.04em; line-height: 1.6; color: var(--mc-meta); margin-top: 10px; }
.mc-note--inline { margin-top: 8px; }

.mc-sec { padding: clamp(84px, 11vw, 168px) 0 0; position: relative; }
.mc-sec__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.mc-num {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mc-display); font-size: 22px; letter-spacing: 0.06em; color: var(--mc-red-hi);
  transform: translateY(-0.2em);
}
.mc-num::after { content: ''; width: clamp(28px, 4vw, 56px); height: 2px; background: var(--mc-red); }
.mc-h2 {
  font-weight: 700; font-size: clamp(32px, 5.2vw, 76px);
  line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; text-wrap: balance;
}
.mc-h2 em { font-style: normal; color: var(--mc-red); display: block; }
.mc-lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--mc-mut); max-width: 58ch; }

/* ---------- 00 · opening ---------- */
.mc-hero { --t0: 1.65s; position: relative; background: var(--mc-bg); overflow: hidden; }
.mc-hero__media { overflow: hidden;
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; max-height: calc(100svh - 236px); min-height: 380px;
  background: #121016;
}
.mc-hero__media picture, .mc-hero__img { display: block; width: 100%; height: 100%; }
.mc-hero__img { object-fit: cover; object-position: 50% 30%; }
.mc-hero__media::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 34%; z-index: 2;
  background: linear-gradient(to bottom, rgba(14, 13, 18, 0), var(--mc-bg));
  pointer-events: none;
}
/* the rule the hero opens from: same height as the lockup's own rule */
.mc-hero__rule {
  position: absolute; left: 0; right: 0; top: 34.9%; height: max(3px, 0.28vw);
  margin-top: calc(max(3px, 0.28vw) / -2);
  background: var(--mc-red); box-shadow: 0 0 18px rgba(218, 27, 52, 0.85), 0 0 2px #ff6b7a;
  transform-origin: 0 50%; opacity: 0; pointer-events: none;
}
.mc-hero__text { position: relative; z-index: 2; margin-top: clamp(-80px, -4.6vw, -36px); padding-bottom: clamp(36px, 5vw, 64px); }
.mc-hero__top { position: absolute; left: 0; right: 0; top: 0; z-index: 4; padding-top: 14px; }
.mc-hero__top .mc-back { margin: 0; color: var(--mc-ink); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.mc-back.pp__back { color: var(--mc-meta); font-size: 12px; padding: 8px 0; margin-bottom: clamp(14px, 2.4vw, 28px); }
.mc-back.pp__back:hover { color: var(--mc-red-hi); }
.mc-hero__title {
  font-weight: 700; letter-spacing: -0.03em; line-height: 0.98;
  font-size: clamp(42px, 7.2vw, 112px);
}
.mc-hero__title span { display: block; }
.mc-hero__lede {
  margin-top: clamp(14px, 1.8vw, 24px);
  font-size: clamp(19px, 2vw, 28px); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--mc-mut); max-width: 30ch;
}

/* opening motion: the rule draws, the frame opens from it, the title rises */
@keyframes mcRule { 0% { opacity: 1; transform: scaleX(0); } 22% { opacity: 1; transform: scaleX(1); } 88% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes mcOpen { from { clip-path: inset(34.6% 0 65.1% 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes mcRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.mc-motion .mc-hero__rule { animation: mcRule 2.9s var(--mc-ease-io) 0.1s both; }
.mc-motion .mc-hero__img { animation: mcOpen 1.15s var(--mc-ease-io) var(--t0) both; }
.mc-motion .mc-hero__text > * { animation: mcRise 0.8s var(--mc-ease) both; }
.mc-motion .mc-hero__text > :nth-child(1) { animation-delay: 2.35s; }
.mc-motion .mc-hero__text > :nth-child(2) { animation-delay: 2.42s; }
.mc-motion .mc-hero__text > :nth-child(3) { animation-delay: 2.5s; }
.mc-motion .mc-hero__top { animation: mcRise 0.8s var(--mc-ease) 2.6s both; }

/* ---------- summary ---------- */
.mc-intro__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px); align-items: start;
  padding-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--mc-line);
}
.mc-intro__copy { font-size: clamp(18px, 1.75vw, 23px); line-height: 1.6; color: var(--mc-ink); max-width: 46ch; }
.mc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.mc-facts div { display: flex; flex-direction: column; gap: 6px; }
.mc-facts dt { font-family: var(--mc-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mc-meta); }
.mc-facts dd { font-size: 15px; line-height: 1.45; }

/* ---------- 01 · brief ---------- */
.mc-quote {
  position: relative; margin: 0 0 clamp(48px, 6vw, 88px);
  padding-left: clamp(0px, 5vw, 80px);
}
.mc-quote::before {
  content: '“'; position: absolute; left: 0; top: -0.12em;
  font-family: var(--mc-display); font-size: clamp(80px, 9vw, 150px); line-height: 1; color: var(--mc-red);
}
.mc-quote p {
  font-size: clamp(26px, 3.7vw, 54px); font-weight: 500; line-height: 1.14; letter-spacing: -0.022em;
  max-width: 24ch; text-wrap: balance;
}
@media (max-width: 760px) { .mc-quote { padding-top: 54px; } .mc-quote::before { top: -12px; } }

.mc-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 2vw, 24px); }
.mc-plan h3 { font-weight: 700; }
.mc-plan__objective {
  background: var(--mc-brand); color: #fff; border-radius: 6px;
  padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column;
}
.mc-plan__objective .mc-label { color: rgba(255, 255, 255, 0.85); }
.mc-plan__objective h3 { font-family: var(--mc-display); font-weight: 400; font-size: clamp(64px, 7vw, 104px); line-height: 0.85; letter-spacing: 0.01em; margin-bottom: 18px; }
.mc-plan__objective p:last-child { font-size: 15px; line-height: 1.65; margin-top: auto; }
.mc-plan__jobs { border: 1px solid var(--mc-line); border-radius: 6px; padding: clamp(24px, 2.6vw, 36px); }
.mc-jobs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.mc-jobs li { position: relative; padding-top: 20px; border-top: 2px solid var(--mc-red); }
.mc-jobs__n { display: block; font-family: var(--mc-display); font-size: 44px; line-height: 1; color: var(--mc-gold); margin-bottom: 10px; }
.mc-jobs h3 { font-size: 19px; margin-bottom: 8px; }
.mc-jobs p { font-size: 15px; line-height: 1.6; color: var(--mc-mut); }

.mc-mech { margin-top: clamp(48px, 6vw, 84px); }
.mc-mech__steps {
  list-style: none; counter-reset: mc; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.mc-mech__steps::before {
  content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
  background: linear-gradient(90deg, var(--mc-red), var(--mc-red) 75%, var(--mc-gold));
  transform-origin: 0 50%;
}
.mc-mech__steps li {
  counter-increment: mc; position: relative; padding-top: 34px;
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; line-height: 1.3; max-width: 16ch;
}
.mc-mech__steps li::before {
  content: ''; position: absolute; left: 0; top: 0; width: 16px; height: 16px;
  background: var(--mc-bg); border: 2px solid var(--mc-red); transform: rotate(45deg) scale(0.8);
}
.mc-mech__steps li:last-child::before { background: var(--mc-gold); border-color: var(--mc-gold); }
.mc-mech__steps li::after {
  content: counter(mc, decimal-leading-zero); display: block; order: -1;
  font-family: var(--mc-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; color: var(--mc-meta); margin-top: 8px;
}
.mc-motion .mc-mech__steps::before { transform: scaleX(0); transition: transform 1.4s var(--mc-ease); }
.mc-motion .mc-mech.is-in .mc-mech__steps::before { transform: scaleX(1); }

/* ---------- 02 · idea: version swap ---------- */
.mc-idea__copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); max-width: 1100px; }
.mc-idea__copy p { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.7; color: var(--mc-mut); }
.mc-idea__copy p:first-child { color: var(--mc-ink); }
.mc-swap { margin-top: clamp(36px, 4.5vw, 64px); }
.mc-swap__stage { margin: 0; }
.mc-swap__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #121016;
  box-shadow: 0 40px 120px -40px rgba(218, 27, 52, 0.35);
}
.mc-swap__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 0.6s var(--mc-ease); }
.mc-swap__img--b { clip-path: inset(0 100% 0 0); transition: clip-path 0.95s var(--mc-ease-io), filter 0.6s var(--mc-ease); }
.mc-swap__stage[data-state="b"] .mc-swap__img--b { clip-path: inset(0 0 0 0); }
.mc-swap__edge {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px;
  background: var(--mc-red); box-shadow: 0 0 22px 4px rgba(218, 27, 52, 0.7);
  opacity: 0; transition: left 0.95s var(--mc-ease-io), opacity 0.25s;
}
.mc-swap__stage[data-state="b"] .mc-swap__edge { left: 100%; }
.mc-swap__stage.is-moving .mc-swap__edge { opacity: 1; }
/* highlight: everything dims except the computed change zone */
.mc-swap__zone { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--mc-ease); }
.mc-swap__zone::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--mc-zone-src); background-size: cover; background-position: center;
  -webkit-mask-image: var(--mc-zone-mask); mask-image: var(--mc-zone-mask);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.mc-swap__zone span {
  position: absolute; left: 26.7%; bottom: 8%;
  font-family: var(--mc-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--mc-red); padding: 6px 10px; border-radius: 3px;
}
.mc-swap__stage.is-hl .mc-swap__img { filter: brightness(0.26) saturate(0.4); }
.mc-swap__stage.is-hl .mc-swap__zone { opacity: 1; }
.mc-swap__cap { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--mc-mut); min-height: 1.5em; }
.mc-swap__cap b { color: var(--mc-ink); }
.mc-swap__stage[data-state="a"] .mc-swap__cap-b,
.mc-swap__stage[data-state="b"] .mc-swap__cap-a { display: none; }
.mc-swap__bar {
  margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
}
.mc-swap__stat { margin-left: auto; font-size: 15px; line-height: 1.5; color: var(--mc-mut); max-width: 40ch; }
.mc-swap__stat strong { font-family: var(--mc-display); font-weight: 400; font-size: 34px; color: var(--mc-gold); margin-right: 6px; vertical-align: -3px; letter-spacing: 0.02em; }

.mc-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mc-bg-3); }
.mc-seg__btn {
  border: 0; background: none; cursor: pointer; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--mc-mut); transition: background 0.3s, color 0.3s;
}
.mc-seg__btn[aria-pressed="true"] { background: var(--mc-red); color: #fff; }
.mc-seg__btn:hover { color: var(--mc-ink); }
.mc-toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(244, 240, 234, 0.28); background: none;
  font-size: 14px; font-weight: 600; color: var(--mc-ink); transition: border-color 0.3s, background 0.3s;
}
.mc-toggle:hover { border-color: var(--mc-gold); }
.mc-toggle__dot { width: 10px; height: 10px; border: 1.5px solid currentColor; transform: rotate(45deg); transition: background 0.3s, border-color 0.3s; }
.mc-toggle[aria-pressed="true"] { border-color: var(--mc-gold); background: rgba(234, 195, 83, 0.1); }
.mc-toggle[aria-pressed="true"] .mc-toggle__dot { background: var(--mc-gold); border-color: var(--mc-gold); }


/* ---------- rebuilt layer stack (built by mc.js; the flat artwork stays until it decodes) ---------- */
.mc-st { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.mc-st__plate { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mc-st__l { position: absolute; display: block; height: auto; max-width: none; }
[data-stage].is-layered > picture,
[data-stage].is-layered > .mc-flat,
[data-stage].is-layered > .mc-swap__img,
[data-stage].is-layered > .mc-swap__edge { visibility: hidden; }

/* hero: sized in px by mc.js to match the flat image's crop; restrained pointer depth */
.mc-st--hero { inset: auto; }
.mc-st--hero .mc-st__l, .mc-st--hero .mc-st__plate { transition: translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mc-hero__media::after { z-index: 2; }
.mc-hero__top { z-index: 3; }
.mc-hero__rule { z-index: 3; }

/* breakdown: the frame assembles as you read */
.mc-st--build [data-g="lockup"] { clip-path: inset(0 100% 0 0); }
/* step 1 shows the stage alone: veil the plate's filled-in centre so no reconstructed pixels are read as artwork */
.mc-st--build::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 46% at 44% 62%, rgba(14, 13, 18, 0.92), rgba(14, 13, 18, 0.55) 60%, transparent 85%);
  opacity: 0; transition: opacity 0.7s var(--mc-ease); }
.mc-st--build:not([data-build~="prize"])::after { opacity: 1; }
.mc-st--build .mc-st__l { z-index: 1; }
.mc-st--build[data-build~="lockup"] [data-g="lockup"] { clip-path: inset(0 0 0 0); }
.mc-st--build [data-g="prize"], .mc-st--build [data-g="fig"] { opacity: 0; transform: translateY(22%) scale(0.92); transition: opacity 0.5s var(--mc-ease), transform 0.8s var(--mc-ease-io); transition-delay: 0s; }
.mc-st--build[data-build~="prize"] [data-g="prize"],
.mc-st--build[data-build~="prize"] [data-g="fig"] { opacity: 1; transform: none; transition-delay: calc(var(--k) * 90ms); }
.mc-st--build [data-g="gold"] { opacity: 0; transform: scale(0.35) rotate(-25deg); }
.mc-st--build[data-build~="gold"] [data-g="gold"] { opacity: 1; transform: none; transition-delay: calc(var(--k) * 80ms); }
.mc-anat__window { z-index: 2; }
.mc-anat__tag { z-index: 3; }

/* ---------- 03 · system: anatomy ---------- */
.mc-anat {
  margin-top: clamp(36px, 4.5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px);
}
.mc-anat__sticky { position: sticky; top: 96px; align-self: start; }
.mc-anat__stage { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #121016; }
.mc-anat__cam { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform 1.05s var(--mc-ease-io); will-change: transform; }
.mc-anat__cam > .mc-flat { width: 100%; height: 100%; object-fit: cover; }
.mc-anat__window {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  box-shadow: 0 0 0 200vmax rgba(14, 13, 18, 0.66);
  outline: 1px solid rgba(244, 240, 234, 0.55); outline-offset: -1px;
  transition: left 1.05s var(--mc-ease-io), top 1.05s var(--mc-ease-io), width 1.05s var(--mc-ease-io), height 1.05s var(--mc-ease-io), opacity 0.6s;
  opacity: 0; pointer-events: none;
}
.mc-anat.is-live .mc-anat__window { opacity: 1; }
.mc-anat.is-live .mc-anat__stage[data-step="5"] .mc-anat__window { opacity: 0; }
.mc-anat__tag {
  position: absolute; left: 14px; bottom: 14px; display: none; align-items: center; gap: 10px;
  background: rgba(14, 13, 18, 0.82); padding: 8px 12px; border-radius: 3px;
  font-family: var(--mc-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.mc-anat.is-live .mc-anat__tag { display: inline-flex; }
.mc-anat__tag-n { color: var(--mc-red-hi); }
.mc-anat__dots { display: flex; gap: 6px; margin-top: 14px; }
.mc-anat__dots button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
}
.mc-anat__dots button::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 1.5px solid var(--mc-meta); transform: rotate(45deg); transition: background 0.3s, border-color 0.3s;
}
.mc-anat__dots button[aria-current="true"]::before { background: var(--mc-red); border-color: var(--mc-red); }
.mc-anat__dots button:hover::before { border-color: var(--mc-ink); }
.mc-anat__steps { list-style: none; }
.mc-anat__step {
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0; border-top: 1px solid var(--mc-line);
  transition: opacity 0.5s var(--mc-ease);
}
.mc-anat__step:first-child { border-top: 0; }
.mc-anat__step:last-child { min-height: 70vh; }
.mc-anat.is-live .mc-anat__step { opacity: 0.32; }
.mc-anat.is-live .mc-anat__step.is-on { opacity: 1; }
.mc-anat__step h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 14px; display: flex; align-items: baseline; gap: 14px; }
.mc-anat__step h3 span { font-family: var(--mc-display); font-weight: 400; font-size: 0.9em; color: var(--mc-red-hi); letter-spacing: 0.04em; }
.mc-anat__step p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--mc-mut); max-width: 42ch; }

.mc-kit {
  margin-top: clamp(56px, 7vw, 112px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--mc-line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px);
}
.mc-swatches { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mc-swatches li { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.mc-swatches__chip { grid-row: span 2; width: 56px; height: 56px; border-radius: 4px; background: var(--c); }
.mc-swatches__chip--line { box-shadow: inset 0 0 0 1px rgba(244, 240, 234, 0.3); }
.mc-swatches b { font-size: 14px; font-weight: 600; align-self: end; }
.mc-swatches code { font-family: var(--mc-mono); font-size: 12px; color: var(--mc-meta); align-self: start; }
.mc-kit__type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-content: start; }
.mc-kit__type .mc-label { grid-column: 1 / -1; margin-bottom: 4px; }
.mc-kit__crop { margin: 0; max-width: 300px; }
.mc-kit__crop--lockup { max-width: none; grid-column: 1 / -1; }
.mc-kit__crop.mc-kit__crop--lockup img { aspect-ratio: auto; object-fit: contain; background: none; border-radius: 0; padding: 18px 0; }
.mc-kit__crop img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #000; }
.mc-kit__crop figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--mc-mut); }

/* ---------- 04 · formats ---------- */
.mc-fmt { margin-top: clamp(32px, 4vw, 56px); }
.mc-fmt__tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 2px 18px; margin: 0 -2px;
  scroll-snap-type: x proximity;
}
.mc-fmt__tabs::-webkit-scrollbar { display: none; }
.mc-fmt__tabs [role="tab"] {
  flex: 0 0 auto; scroll-snap-align: start; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 56px; padding: 10px 18px; border-radius: 6px;
  border: 1px solid var(--mc-line); background: none;
  font-size: 15px; font-weight: 600; color: var(--mc-mut); text-align: left;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.mc-fmt__tabs [role="tab"] small { font-family: var(--mc-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mc-meta); }
.mc-fmt__tabs [role="tab"]:hover { color: var(--mc-ink); border-color: rgba(244, 240, 234, 0.3); }
.mc-fmt__tabs [role="tab"][aria-selected="true"] { color: var(--mc-ink); border-color: var(--mc-red); background: rgba(218, 27, 52, 0.12); }
.mc-fmt__panels {
  position: relative; border-radius: 6px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #241b22 0%, var(--mc-bg-2) 55%);
  padding: clamp(20px, 4vw, 64px);
  transition: height 0.55s var(--mc-ease);
}
.mc-fmt__panel[hidden] { display: none; }
.mc-motion .mc-fmt__panel.is-entering { animation: mcFmtIn 0.6s var(--mc-ease) both; }
@keyframes mcFmtIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.mc-fmt__fig { margin: 0 auto; }
.mc-fmt__fig img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.mc-fmt__fig figcaption { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--mc-mut); max-width: 60ch; }
.mc-fmt__fig figcaption b { color: var(--mc-ink); font-weight: 600; }
.mc-fmt__fig--kv { max-width: 1040px; }
.mc-fmt__fig--lt { max-width: 960px; }
.mc-fmt__fig--pz { max-width: 520px; text-align: center; }
.mc-fmt__fig--pz img { box-shadow: 0 0 120px rgba(234, 120, 40, 0.18); }
.mc-fmt__fig--pz figcaption { margin-left: auto; margin-right: auto; }

.mc-post { display: grid; grid-template-columns: minmax(0, 537px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1100px; margin: 0 auto; }
.mc-post__caption { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--mc-ink); max-width: 44ch; }
.mc-post__caption span { color: #8fb4ff; }
.mc-post__head {
  margin-top: 22px; padding: 16px 18px; border-radius: 6px; background: #000;
  font-size: 15px; font-weight: 600; line-height: 1.4; max-width: 34ch;
}

.mc-car { position: relative; }
.mc-car__track {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px);
}
.mc-car__card { position: relative; container-type: inline-size; }
.mc-car__card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; transition: filter 0.6s var(--mc-ease); }
.mc-car__card p {
  background: #000; padding: 12px 14px; font-size: 13px; font-weight: 600; line-height: 1.4; min-height: 64px;
}
/* the trace: an overlay on each card's own rule, extended across the gap */
.mc-car__card::after {
  content: ''; position: absolute; left: 0; top: 24.85cqw; height: max(3px, 1.15cqw); margin-top: calc(max(3px, 1.15cqw) / -2);
  width: calc(100% + clamp(8px, 1vw, 14px));
  background: #ff3248; box-shadow: 0 0 16px 2px rgba(255, 50, 72, 0.8);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s linear;
}
.mc-car__card:last-child::after { width: 100%; }
.mc-car.is-tracing .mc-car__card img { filter: brightness(0.45); }
.mc-car.is-tracing .mc-car__card::after { transform: scaleX(1); }
.mc-car.is-tracing .mc-car__card:nth-child(2)::after { transition-delay: 0.5s; }
.mc-car.is-tracing .mc-car__card:nth-child(3)::after { transition-delay: 1s; }
.mc-car.is-tracing .mc-car__card:nth-child(4)::after { transition-delay: 1.5s; }
.mc-car__bar { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mc-car__bar .mc-label { margin: 0; }
.mc-car__caption { margin-top: 18px; }

/* ---------- 06 · close ---------- */
.mc-close { margin-top: clamp(96px, 12vw, 176px); background: var(--mc-brand); color: #fff; }
.mc-close__inner {
  padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(56px, 7vw, 96px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.mc-close__mark { width: min(420px, 76vw); height: auto; }
.mc-close__rule { display: block; width: min(720px, 86vw); height: 3px; background: #fff; margin: clamp(32px, 4vw, 52px) 0 22px; transform-origin: 50% 50%; }
.mc-motion .mc-close__rule { transform: scaleX(0); transition: transform 1.3s var(--mc-ease-io) 0.2s; }
.mc-motion .mc-close.is-in .mc-close__rule { transform: scaleX(1); }
.mc-close__line { font-family: var(--mc-display); font-size: clamp(30px, 3.6vw, 48px); letter-spacing: 0.04em; line-height: 1; }
.mc-close__line span { color: var(--ink); padding: 0 0.2em; }
.mc-close__legal {
  padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  font-family: var(--mc-mono); font-size: 12px; letter-spacing: 0.03em; line-height: 1.6; color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 18px;
}
.mc-close__legal p { max-width: 62ch; }

.mc-next { padding-bottom: clamp(56px, 7vw, 96px); }
.mc-next .pp__next { border-top-color: var(--mc-line); color: var(--mc-ink); }
.mc-next .pp__next-label { color: var(--mc-meta); font-size: 12px; }
.mc-next .pp__next:hover .pp__next-name { color: var(--mc-red-hi); }

/* reveal for blocks as they enter (only when motion is on) */
.mc-motion .mc-rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--mc-ease), transform 0.9s var(--mc-ease); }
.mc-motion .mc-rv.is-in { opacity: 1; transform: none; }


/* ---------- prize ticker: the campaign's own lines at billboard scale ---------- */
.mc-ticker {
  margin-top: clamp(64px, 8vw, 112px); background: var(--mc-brand); color: #fff; overflow: hidden;
  padding: clamp(14px, 2vw, 26px) 0; display: grid; gap: clamp(2px, 0.6vw, 8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.mc-ticker__row { overflow: hidden; white-space: nowrap; }
.mc-ticker__track {
  display: inline-flex; align-items: center; gap: 0.32em; padding-right: 0.32em;
  font-family: var(--mc-display); font-size: clamp(54px, 9vw, 148px); line-height: 0.92; letter-spacing: 0.005em; text-transform: uppercase;
  animation: mcTick 42s linear infinite; will-change: transform;
}
.mc-ticker__track b { font-weight: 400; color: var(--mc-gold); text-shadow: 0 2px 0 rgba(90, 0, 12, 0.55), 0 0 28px rgba(255, 190, 60, 0.35); }
.mc-ticker__track i { font-style: normal; font-size: 0.34em; color: var(--ink); transform: translateY(-0.12em); }
.mc-ticker__row--rev .mc-ticker__track { animation-direction: reverse; animation-duration: 54s; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9); }
.mc-ticker__row--rev .mc-ticker__track b { -webkit-text-stroke: 0; }
.mc-ticker:hover .mc-ticker__track { animation-play-state: paused; }
@keyframes mcTick { to { transform: translateX(-50%); } }

/* ---------- the objective as one word, filled with the key visual ---------- */
.mc-reach { margin-top: clamp(8px, 2vw, 24px); }
.mc-reach__word {
  font-family: var(--mc-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(132px, 30vw, 470px); line-height: 0.8; letter-spacing: 0;
  margin: 0 0 clamp(14px, 2vw, 26px) -0.035em; color: var(--mc-gold);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .mc-reach__word span {
    background-image: url('assets/kv-a-1280.webp'); background-size: 135% auto;
    background-position: 50% var(--mc-reach-y, 30%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: 1px rgba(255, 92, 108, 0.55);
  }
}
.mc-reach__copy { max-width: 54ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--mc-mut); }
.mc-jobs-wrap { margin-top: clamp(48px, 6vw, 84px); }

/* ---------- spoilt for choice: the prize stage ---------- */
.mc-pick__stage {
  --sh: clamp(440px, 46vw, 660px);
  position: relative; margin-top: clamp(28px, 3.5vw, 48px); overflow: hidden;
  height: var(--sh);
  background: radial-gradient(60% 75% at 50% 64%, #3d0c18 0%, #1b0a11 46%, var(--mc-bg) 82%);
}
.mc-pick__word {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  font-family: var(--mc-display); font-size: clamp(120px, 25vw, 400px); line-height: 1; letter-spacing: 0.01em;
  text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(218, 27, 52, 0.8);
  transform: translateY(-6%);
}
.mc-pick__word span { display: block; }
.mc-pick__word.is-swap span { animation: mcWord 0.7s var(--mc-ease-io) both; }
@keyframes mcWord { from { clip-path: inset(0 100% 0 0); transform: translateX(-3%); } to { clip-path: inset(0 0 0 0); transform: none; } }
.mc-pick__glow {
  position: absolute; left: 50%; top: 60%; width: 64%; height: 46%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(218, 27, 52, 0.6), rgba(218, 27, 52, 0) 100%); pointer-events: none;
}
.mc-pick__items { position: absolute; inset: 0; }
.mc-pick__item {
  --z: 1.45; position: absolute; left: 50%; top: 56%; margin: 0;
  width: min(calc(var(--w) * var(--z) * 1px), 84%, calc(var(--sh) * 0.74 * var(--ar, 1.6)));
  transform: translate(-50%, -50%) translateY(60px) scale(0.6) rotate(-4deg); opacity: 0;
  transition: opacity 0.3s var(--mc-ease), transform 0.45s var(--mc-ease);
}
.mc-pick__item.is-on {
  opacity: 1; transform: translate(-50%, -50%);
  transition: opacity 0.35s var(--mc-ease) 0.1s, transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s;
}
.mc-pick__item img { width: 100%; height: auto; filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.65)); }
.mc-motion .mc-pick__item.is-on img { animation: mcFloat 4.8s ease-in-out 1s infinite alternate; }
@keyframes mcFloat { to { transform: translateY(-10px) rotate(0.6deg); } }
.mc-pick__confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mc-pick__confetti i {
  position: absolute; top: -24px; left: var(--x, 50%); width: 9px; height: 15px; border-radius: 1px;
  background: var(--mc-gold); opacity: 0;
}
.mc-pick__confetti i:nth-child(3n) { background: var(--mc-red); }
.mc-pick__confetti i:nth-child(4n) { width: 6px; height: 10px; }
.mc-pick__stage.is-burst .mc-pick__confetti i { animation: mcConf var(--d, 1.6s) cubic-bezier(0.25, 0.6, 0.4, 1) var(--dl, 0s) both; }
@keyframes mcConf {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--fall, 560px)) rotate(var(--rot, 520deg)); }
}
.mc-pick__meta {
  position: absolute; left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); bottom: 22px;
  display: flex; align-items: baseline; gap: 14px; margin: 0;
}
.mc-pick__ver { font-family: var(--mc-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mc-gold); }
.mc-pick__name { font-family: var(--mc-display); font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: 0.02em; }
.mc-pick__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mc-pick__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 18px 6px 8px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--mc-line); background: none;
  font-size: 14px; font-weight: 600; color: var(--mc-mut); transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.mc-pick__btn img { width: 48px; height: 38px; object-fit: contain; }
.mc-pick__btn:hover { border-color: var(--mc-gold); color: var(--mc-ink); }
.mc-pick__btn[aria-pressed="true"] { background: var(--mc-gold); border-color: var(--mc-gold); color: #000; }

/* ---------- hero burst: the stage assembles from the layers (desktop, motion on) ---------- */
.mc-hero.is-burst .mc-hero__img { animation: none !important; visibility: hidden; }
.mc-st--burst::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 48% at 46% 62%, rgba(14, 13, 18, 0.95), rgba(14, 13, 18, 0.6) 60%, transparent 86%);
  animation: mcVeil 2.1s linear calc(var(--t0) - 0.1s) both;
}
.mc-st--burst .mc-st__l { z-index: 1; }
.mc-st--burst .mc-st__plate { animation: mcPlate 0.9s var(--mc-ease) var(--t0) both; }
.mc-st--burst [data-g="lockup"] { animation: mcWrite 0.75s var(--mc-ease-io) calc(var(--t0) + 0.4s) both; }
.mc-st--burst [data-g="prize"], .mc-st--burst [data-g="fig"] { animation: mcPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--t0) + 0.85s + var(--k) * 85ms) both; }
.mc-st--burst [data-g="gold"] { animation: mcDrop 0.85s cubic-bezier(0.34, 1.4, 0.64, 1) calc(var(--t0) + 1.25s + var(--k) * 70ms) both; }
@keyframes mcVeil { 0%, 55% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes mcPlate { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes mcWrite { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mcPop { from { opacity: 0; transform: translateY(38%) scale(0.55); } to { opacity: 1; transform: none; } }
@keyframes mcDrop { from { opacity: 0; transform: translateY(-160%) rotate(-40deg) scale(0.6); } to { opacity: 1; transform: none; } }

/* the swap runs wider than the text column */
.mc-swap.wrap { max-width: 1680px; }

@media (max-width: 700px) {
  .mc-pick__stage { --sh: 380px; }
  .mc-pick__item { --z: 0.82; top: 52%; }
  .mc-pick__meta { bottom: 16px; }
  .mc-pick__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .mc-pick__list::-webkit-scrollbar { display: none; }
  .mc-pick__btn { flex: 0 0 auto; }
  .mc-ticker__track { font-size: 58px; }
  .mc-reach__word { font-size: 46vw; }
}


/* ---------- hero slot machine: the reels spin, land on 4 4 4, then dock ---------- */
.mc-hero__flip {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  clip-path: inset(0 100% 0 0);
}
.mc-hero__edge {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: 4px; margin-left: -2px; opacity: 0; pointer-events: none;
  background: var(--mc-red); box-shadow: 0 0 24px 4px rgba(218, 27, 52, 0.75);
}
/* jackpot shower: the same confetti as section 03, across the whole frame */
.mc-hero__conf { z-index: 3; }
.mc-motion .mc-hero__conf i { animation: mcConf var(--d, 2s) cubic-bezier(0.25, 0.6, 0.4, 1) calc(1.75s + var(--dl, 0s)) both; }
.mc-hero__conf i { width: 10px; height: 16px; }
.mc-hero__conf i:nth-child(4n) { width: 7px; height: 11px; }
.mc-hero__conf i:nth-child(5n) { width: 8px; height: 8px; border-radius: 50%; }
/* two identical keyframes, alternated, so every jackpot restarts the shower */
.mc-hero__media[data-shower="1"] .mc-hero__conf i { animation: mcRain1 var(--d, 2s) cubic-bezier(0.25, 0.6, 0.4, 1) var(--dl, 0s) both; }
.mc-hero__media[data-shower="2"] .mc-hero__conf i { animation: mcRain2 var(--d, 2s) cubic-bezier(0.25, 0.6, 0.4, 1) var(--dl, 0s) both; }
@keyframes mcRain1 {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--fall, 560px)) rotate(var(--rot, 520deg)); }
}
@keyframes mcRain2 {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--fall, 560px)) rotate(var(--rot, 520deg)); }
}
.mc-slot { display: none; }
.mc-motion .mc-slot, .mc-slot[data-ready] { display: block; }
.mc-slot__reels {
  --h: clamp(92px, 9.2vw, 148px); --g: 8px; --s: 0.5; --R: clamp(16px, 2.4vw, 36px); --B: clamp(64px, 7vw, 112px);
  position: absolute; z-index: 3; display: flex; gap: var(--g); padding: 10px;
  left: calc(100% - var(--R)); top: calc(100% - var(--B));
  transform: translate(-100%, -100%) scale(var(--s)); transform-origin: 100% 100%;
  background: rgba(10, 8, 12, 0.78); border: 1.5px solid var(--mc-gold); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 0 34px rgba(218, 27, 52, 0.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* the payline is the campaign's rule */
.mc-slot__reels::after {
  content: ''; position: absolute; left: -14px; right: -14px; top: 50%; height: 3px; margin-top: -1.5px; pointer-events: none;
  background: var(--mc-red); box-shadow: 0 0 14px rgba(218, 27, 52, 0.9); opacity: 0.9;
}
.mc-slot__reel {
  --p: 0; display: block; width: var(--h); height: calc(var(--h) * 1.3); border-radius: 8px;
  background: #0b090d url('assets/slot-reel.webp') repeat-y;
  background-size: var(--h) calc(var(--h) * 9);
  background-position: 50% calc(var(--h) * (0.15 + var(--p)));
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  transition: background-position 1s cubic-bezier(0.15, 0.72, 0.28, 1.04), filter 0.3s;
}
.mc-slot__reel.is-spin { filter: blur(1.6px) brightness(1.15); }
.mc-slot__conf { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.mc-slot__conf i {
  position: absolute; left: -4px; top: -6px; width: 8px; height: 12px; border-radius: 1px; background: var(--mc-gold); opacity: 0;
}
.mc-slot__conf i:nth-child(3n) { background: var(--mc-red); }
.mc-slot__conf i:nth-child(4n) { width: 6px; height: 6px; border-radius: 50%; }
.mc-slot.is-win .mc-slot__conf i { animation: mcBurst var(--d, 1.1s) cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.mc-slot.is-win .mc-slot__reels { animation: mcJack 0.9s ease-out both; }
@keyframes mcBurst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1.2); }
  100% { opacity: 0; transform: translate(var(--dx, 80px), var(--dy, -80px)) rotate(var(--rot, 360deg)) scale(0.8); }
}
@keyframes mcJack {
  0% { border-color: var(--mc-gold); }
  20% { border-color: #ff5c6c; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 70px 6px rgba(218, 27, 52, 0.7), inset 0 0 50px rgba(218, 27, 52, 0.5); }
  100% { border-color: var(--mc-gold); }
}
.mc-slot__ui {
  position: absolute; z-index: 3; right: calc(var(--R, 24px) + (var(--hh) * 1.5 + 22px) + 16px); bottom: var(--B);
  --R: clamp(16px, 2.4vw, 36px); --B: clamp(64px, 7vw, 112px); --hh: clamp(92px, 9.2vw, 148px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right;
  padding: 12px 14px; border-radius: 12px; background: rgba(10, 8, 12, 0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mc-slot__read { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.mc-slot__ver { font-family: var(--mc-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mc-gold); }
.mc-slot__name { font-family: var(--mc-display); font-size: clamp(26px, 2.4vw, 36px); line-height: 1; letter-spacing: 0.03em; color: var(--mc-ink); }
.mc-slot__spin {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px 0 16px; border-radius: 999px;
  border: 1.5px solid var(--mc-gold); background: rgba(10, 8, 12, 0.7); color: var(--mc-gold);
  font: 600 14px/1 var(--mc-sans, inherit); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.mc-slot__spin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .mc-slot__spin:hover { background: var(--mc-gold); color: #000; } }
.mc-slot__spin:active { transform: scale(0.96); }
.mc-slot__spin[aria-disabled="true"] { cursor: progress; }
.mc-slot__spin[aria-disabled="true"] svg { animation: mcTurn 0.7s linear infinite; }
@keyframes mcTurn { to { transform: rotate(360deg); } }
.mc-slot__ui { display: none; }
.mc-slot__again { display: none; }
.mc-slot__spin.is-again .mc-slot__again { display: inline; }
.mc-slot__ver, .mc-slot__name { white-space: nowrap; }
.mc-slot[data-ready] .mc-slot__ui { display: flex; }

/* the opening: reels spin in the centre of the frame on the lockup's rule, land on 4 4 4, then dock */
.mc-motion .mc-slot__reels { animation: mcDock 0.8s var(--mc-ease-io) calc(var(--t0) + 0.3s) backwards, mcIn 0.35s var(--mc-ease) 0s backwards, mcJack 0.9s ease-out 1.7s; }
.mc-motion .mc-slot__reel { animation: mcSpin calc(0.95s + var(--r) * 0.3s) cubic-bezier(0.2, 0.62, 0.3, 1.03) 0.2s backwards, mcBlur calc(0.95s + var(--r) * 0.3s) linear 0.2s; }
.mc-motion .mc-slot__conf i { animation: mcBurst var(--d, 1.1s) cubic-bezier(0.2, 0.7, 0.3, 1) 1.72s both; }
.mc-motion .mc-slot__ui { animation: mcRise 0.7s var(--mc-ease) calc(var(--t0) + 0.75s) both; }
@keyframes mcIn { from { opacity: 0; } }
@keyframes mcDock {
  from { left: 50%; top: 34.9%; transform: translate(-50%, -50%) scale(1); }
}
@keyframes mcSpin { from { background-position: 50% calc(var(--h) * (0.15 - 27 - var(--r) * 9)); } }
@keyframes mcBlur { 0%, 70% { filter: blur(1.8px) brightness(1.2); } 100% { filter: none; } }


@media (max-width: 700px) {
  /* phones: the machine docks into a bar along the bottom of the artwork, clear of the faces */
  .mc-slot__reels { --h: 72px; --g: 6px; --s: 0.5; left: calc(12px + (3 * 72px + 12px + 19px) * 0.5); top: calc(100% - 10px); padding: 8px; }
  .mc-slot__ui {
    left: calc(12px + (3 * 72px + 12px + 19px) * 0.5 + 8px); right: 12px; bottom: 10px; top: auto;
    height: calc((72px * 1.3 + 19px) * 0.5); padding: 0 6px 0 12px;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; text-align: left;
  }
  .mc-slot__read { align-items: flex-start; min-width: 0; overflow: hidden; }
  .mc-slot__ver, .mc-slot__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mc-slot__spin.is-again .mc-slot__again { display: none; }
  .mc-slot__spin { flex: 0 0 auto; }
  .mc-slot__spin { padding: 0 14px 0 12px; font-size: 13px; }
  .mc-slot__name { font-size: 22px; }
  .mc-slot__ver { font-size: 11px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .mc-intro__grid { grid-template-columns: 1fr; }
  .mc-plan { grid-template-columns: 1fr; }
  .mc-anat { grid-template-columns: 1fr; gap: 0; }
  .mc-anat__sticky { top: 64px; z-index: 3; background: var(--mc-bg); padding: 10px 0 4px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
  .mc-anat__dots { margin-top: 4px; }
  .mc-anat__step { min-height: 46vh; }
  .mc-anat__step:last-child { min-height: 50vh; }
  .mc-kit { grid-template-columns: 1fr; }
  .mc-post { grid-template-columns: 1fr; }
  .mc-post .mc-fmt__fig--post { max-width: 537px; }
  .mc-swap__stat { margin-left: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  .mc-hero, .mc-intro, .mc-sec, .mc-close, .mc-next { --pad: 20px; }
  .mc-hero__media { aspect-ratio: 4 / 5; max-height: calc(100svh - 250px); min-height: 340px; }
  .mc-hero__img { object-position: 50% 30%; }
  .mc-hero__text { margin-top: 16px; }
  .mc-facts { grid-template-columns: 1fr 1fr; }
  .mc-sec__head { flex-direction: column; gap: 14px; }
  .mc-num { transform: none; }
  .mc-jobs { grid-template-columns: 1fr; }
  .mc-mech__steps { grid-template-columns: 1fr; gap: 0; padding-left: 34px; }
  .mc-mech__steps::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--mc-red), var(--mc-red) 75%, var(--mc-gold)); transform-origin: 50% 0; }
  .mc-motion .mc-mech__steps::before { transform: scaleY(0); }
  .mc-motion .mc-mech.is-in .mc-mech__steps::before { transform: scaleY(1); }
  .mc-mech__steps li { padding: 0 0 22px; max-width: none; }
  .mc-mech__steps li::before { left: -34px; top: 2px; }
  .mc-swap { padding-left: 0; padding-right: 0; }
  .mc-swap__frame { border-radius: 0; }
  .mc-swap__cap, .mc-swap__bar { padding-left: var(--pad); padding-right: var(--pad); }
  .mc-seg { width: 100%; }
  .mc-seg__btn { flex: 1; }
  .mc-toggle { width: 100%; justify-content: center; }
  .mc-swap__zone span { font-size: 11px; padding: 4px 7px; }
  .mc-anat__sticky { top: 60px; }
  .mc-anat__step { min-height: 40vh; }
  .mc-anat__step p { font-size: 16px; }
  .mc-swatches { grid-template-columns: 1fr; }
  .mc-kit__type { grid-template-columns: 1fr 1fr; }
  .mc-fmt { padding-left: 0; padding-right: 0; }
  .mc-fmt__tabs { padding-left: var(--pad); padding-right: var(--pad); margin: 0; scroll-padding-left: var(--pad); }
  .mc-fmt__panels { border-radius: 0; padding: 24px var(--pad) 28px; }
  /* the carousel becomes a real swipe, so the rule runs off the edge */
  .mc-car__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding-left: var(--pad); gap: 8px;
  }
  .mc-car__track::-webkit-scrollbar { display: none; }
  .mc-car__card { flex: 0 0 80%; scroll-snap-align: start; }
  .mc-car__card::after { width: calc(100% + 8px); }
  .mc-close__legal { flex-direction: column; }
}

/* ---------- reduced motion: everything visible, cuts instead of moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .mc *, .mc *::before, .mc *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .mc-swap__edge { display: none; }
}
