/* =========================================================
   MemeCore case study — Figma 6730:105200 (1920 frame)
   ========================================================= */

.mc-page {
  --mc-text:        #121213;
  --mc-summary:     #2f323a;
  --mc-label:       #565860;
  --mc-divider:     #d3d7db;
  --mc-value:       #76777d;
  --mc-box-bg:      #f9fafb;
  --mc-white:       #ffffff;
  --mc-tl-date:     #a096b7;
  --mc-tl-glow:     rgba(153, 110, 255, 0.4);

  /* Cover scene */
  --mc-purple-0:    rgb(29, 0, 82);
  --mc-purple-1:    rgb(82, 41, 171);
  --mc-sky-50:      rgba(96, 172, 255, 0.5);
  --mc-navy-50:     rgba(5, 21, 80, 0.5);
  --mc-navy:        rgb(5, 21, 80);
  --mc-shade-0:     rgba(33, 33, 36, 0);
  --mc-shade-1:     rgba(33, 33, 36, 0.04);
  --mc-shade-2:     rgba(33, 33, 36, 0.4);
  --mc-browser-sky: #81bdff;
  --mc-frame:       #fff9f9;
  --mc-shadow:      rgba(23, 64, 96, 0.25);

  /* Story sections */
  --mc-accent:        #996eff;
  --mc-accent-bg:     #f0eaff;
  --mc-body:          #424751;
  --mc-quote:         #31353a;
  --mc-quote-by:      #7e889c;
  --mc-accent-text:   #7443df;
  --mc-chip-dark:     #616773;
  --mc-panel-top:     #f3f6f9;
  --mc-card-shadow:   rgba(129, 133, 143, 0.2);
  --mc-heading:       #111111;
  --mc-chip-ink:      #4f555f;
  --mc-chip-muted:    #9aa1ae;
  --mc-accent-strong: #8f55ff;
  --mc-accent-soft:   #b292ff;
  --mc-accent-deep:   #842cff;
  --mc-goal-label:    #e8dfff;
  --mc-nav-desc:      rgba(57, 58, 63, 0.9);
  --mc-meta:          #6c7180;
  --mc-num:           #8b96a1;
  --mc-num-shadow:    rgba(139, 150, 161, 0.2);
  --mc-stat-label:    #616773;
  --mc-black:         #000000;
  --mc-accent-box:    #8749ff;
  --mc-clip-shadow:   rgba(0, 0, 0, 0.45);
  --mc-beam-dim:      rgba(0, 0, 0, 0.55);
}

/* Shared content column: 1360 frame − 40px side padding = 1280 */
.mc-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── 1. Hero (6730:105201) ── */
.mc-hero {
  background: var(--mc-white);
  padding: 240px 0 80px;
}

.mc-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Cover card — 1280×774, scaled proportionally via container units */
.mc-cover {
  container-type: inline-size;
  width: 100%;
}

.mc-scene {
  --u: calc(100cqw / 1280);
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 774;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(-0.01deg, var(--mc-sky-50) 3.207%, var(--mc-navy-50) 22.456%, var(--mc-navy) 43.995%),
    linear-gradient(47.92deg, var(--mc-purple-0) -14.072%, var(--mc-purple-1) 60.269%);
}

.mc-scene img,
.mc-scene video {
  display: block;
  max-width: none;
}

.mc-scene__logo {
  position: absolute;
  top: calc(var(--u) * 69);
  left: 50%;
  width: calc(var(--u) * 407.274);
  height: calc(var(--u) * 64);
  transform: translateX(-50%);
}

.mc-scene__shade {
  position: absolute;
  top: calc(var(--u) * 397);
  left: 50%;
  width: calc(var(--u) * 1920);
  height: calc(var(--u) * 377);
  transform: translateX(-50%);
  mix-blend-mode: overlay;
  background: linear-gradient(180deg, var(--mc-shade-0) -21.429%, var(--mc-shade-1) 21.071%, var(--mc-shade-2) 100%);
  pointer-events: none;
}

.mc-browser {
  position: absolute;
  top: calc(var(--u) * 216);
  left: 50%;
  width: calc(var(--u) * 1050);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--mc-browser-sky);
  border-radius: calc(var(--u) * 24) calc(var(--u) * 24) 0 0;
  /* Figma stroke 4px OUTSIDE + drop shadow (-4, 2, 30) */
  box-shadow:
    0 0 0 calc(var(--u) * 4) var(--mc-frame),
    calc(var(--u) * -4) calc(var(--u) * 2) calc(var(--u) * 30) 0 var(--mc-shadow);
}

.mc-browser__header {
  width: calc(var(--u) * 800);
  height: calc(var(--u) * 36.8);
}

.mc-browser__main {
  position: relative;
  width: 100%;
  height: calc(var(--u) * 521.6);
  padding: calc(var(--u) * 80) calc(var(--u) * 16) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--mc-browser-sky);
}

.mc-browser__title {
  position: relative;
  width: calc(var(--u) * 1018);
  height: calc(var(--u) * 150);
}

.mc-browser__video {
  position: absolute;
  top: calc(var(--u) * 229.6);
  left: 50%;
  width: calc(var(--u) * 1536);
  height: calc(var(--u) * 292);
  transform: translateX(-50%);
  object-fit: cover;
}

/* Hero text */
.mc-hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
}

.mc-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mc-hero__tags .tag {
  /* Figma stroke is INSIDE → 1px border + 1px/9px padding = 25px tall */
  padding: 1px 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: -0.28px;
  color: var(--mc-black);
}

.mc-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mc-hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.36px;
  color: var(--mc-text);
}

.mc-hero__summary {
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: var(--mc-summary);
}

/* ── 2. Role / Timeline / Team / Tools (6730:105238) ── */
.mc-overview {
  background: var(--mc-white);
  padding: 40px 0 90px;
}

.mc-overview__box {
  display: flex;
  justify-content: space-between;
}

/* 1px divider centered in each gap (gap is at least 60px, as before) */
.mc-overview__divider {
  flex: 1 1 60px;
  position: relative;
}

.mc-overview__divider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--mc-divider);
}

/* Figma: first column hugs its text at the left; the other three sit centered in 206px frames */
.mc-overview__col {
  flex: none;
  width: 206px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mc-overview__col:first-child { width: auto; align-items: flex-start; }

.mc-overview__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  white-space: nowrap;
}

.mc-overview__label {
  font-size: 16px;
  font-weight: 800;
  line-height: 22.4px;
  letter-spacing: -0.16px;
  color: var(--mc-label);
}

.mc-overview__value {
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
  color: var(--mc-value);
}
.mc-overview__value--tight { letter-spacing: -0.16px; }

/* ── Story sections: shared text styles ── */
.mc-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 800;
  line-height: 19.6px;
  color: var(--mc-accent);
}

.mc-label--spaced { letter-spacing: 0.42px; }

.mc-label--chip {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--mc-accent-bg);
}

.mc-label__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ABOUT MEMECORE → memecore.com : text + icon together are the click area (Figma hug, gap 2) */
.mc-label--link {
  align-self: flex-start;
  gap: 2px;
  cursor: pointer;
}
.mc-label--link .mc-label__text { text-decoration: underline; }

.mc-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 128%;
  color: var(--mc-text);
}

.mc-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--mc-body);
}

.mc-body strong { font-weight: 600; }

/* Label → title 14px, head → body 20px */
.mc-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mc-text__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mc-text__head--16 { gap: 16px; }
.mc-text--20 { gap: 20px; }

.mc-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.mc-media > img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── 3. Overview (6730:105257) ── */
.mc-intro {
  background: var(--mc-white);
  padding: 40px 0 100px;
}

.mc-intro__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.mc-intro__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
}

.mc-intro__text .mc-body { letter-spacing: -0.24px; }

.mc-intro__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Three mobile screens (Figma export, 1280×420) */
.mc-showcase {
  border-radius: 24px;
  overflow: hidden;
}

.mc-showcase > img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── 4–6. Split sections (6753:72219) ── */
.mc-split {
  background: var(--mc-white);
  padding: 40px 0 100px;
}

.mc-split--last { padding-bottom: 100px; }

.mc-split__row {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.mc-split__row > * {
  /* equal columns (Figma 610 + 60 gap + 610) — basis includes padding so the Feedback panel doesn't grow */
  flex: 1 1 calc((100% - 60px) / 2);
  min-width: 0;
}

/* About MemeCore: 60px gap, top-aligned, text starts 80px down */
.mc-split__row--about {
  gap: 60px;
  align-items: flex-start;
}



/* About scene — GIF clip laid over the static export (610×400) */
.mc-media__anim {
  position: absolute;
  left: 4.918%;
  top: 3.25%;
  width: 90.164%;
  height: 93.5%;
  object-fit: cover;
}

/* Key Feedbacks panel (610×462) */
.mc-feedback {
  height: 448px;
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--mc-panel-top) -8.7%, var(--mc-white) 138.1%);
}

.mc-feedback__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mc-feedback__chip { font-family: 'Inter', sans-serif; }
.mc-feedback__quote { font-family: 'Pretendard', 'Manrope', sans-serif; }

.mc-feedback__chip {
  padding: 10px 14px;
  border-radius: 50px;
  background: var(--mc-chip-dark);
  color: var(--mc-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: -0.28px;
}

.mc-feedback__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-feedback__card {
  width: 464px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 18.7px;
  padding: 16px 16px 16px 20px;
  border-radius: 14.96px;
  background: var(--mc-white);
  box-shadow: 0.94px 3.74px 14.96px 0 var(--mc-card-shadow);
}

.mc-feedback__card:nth-child(3) { gap: 22.44px; }


.mc-feedback__avatar {
  width: 67.5px;
  height: 60px;
  flex-shrink: 0;
}

.mc-feedback__quote {
  flex: 1 1 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: -0.28px;
  color: var(--mc-quote);
}

.mc-feedback__by {
  display: block;
  color: var(--mc-quote-by);
}

/* ── 7. Data Analysis & Challenges (6730:105368) ── */
.mc-challenge {
  background: var(--mc-white);
  padding: 40px 0 100px;
}

.mc-challenge__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.mc-challenge__text { max-width: 1100px; }

.mc-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: -0.18px;
  color: var(--mc-summary);
}

.mc-lead strong { font-weight: 600; }

.mc-body--tight { letter-spacing: -0.16px; }
.mc-body--tighter { letter-spacing: -0.24px; }
.mc-body--n010 { letter-spacing: -0.1px; }

.mc-challenge__cards {
  display: flex;
  gap: 28px;
}

.mc-challenge__card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 40px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--mc-panel-top) 14%, var(--mc-white) 140.4%);
}

.mc-challenge__content {
  width: 546px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mc-challenge__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* Design card head is a fixed 494px frame centered over the 500px image */

.mc-challenge__chip {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--mc-chip-muted);
  color: var(--mc-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 18.2px;
  letter-spacing: 0.39px;
}

.mc-challenge__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32.8px;
  color: var(--mc-heading);
}

/* 546×297 frame; 4px white OUTSIDE stroke */
.mc-challenge__shot {
  aspect-ratio: 546 / 297;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mc-white);
  box-shadow: 0 0 0 4px var(--mc-white);
}

.mc-challenge__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ── 8–19. Story blocks (6730:105396 → 6730:107201) ── */
.mc-block {
  background: var(--mc-white);
  padding: 40px 0 100px;
}

.mc-block--hypothesis { padding: 80px 0 100px; }

.mc-block--last { padding-bottom: 100px; }

.mc-stack { display: flex; flex-direction: column; }
.mc-stack--14 { gap: 14px; }
.mc-stack--16 { gap: 16px; }
.mc-stack--28 { gap: 28px; }
.mc-stack--32 { gap: 32px; }
.mc-stack--40 { gap: 40px; }
.mc-stack--48 { gap: 48px; }
.mc-stack--60 { gap: 60px; }
.mc-stack--80 { gap: 80px; }

.mc-w-1000 { max-width: 1000px; }
.mc-w-1036 { max-width: 1036px; }
.mc-w-1100 { max-width: 1100px; }

/* 1280 frame with 40px padding → 1200 content (Trade-off / Visual world) */
.mc-container--inset { max-width: 1280px; }
.mc-tradeoff { margin-top: 100px; }

/* Trade-off head: text left, illustrator conversation right */
.mc-tradeoff__head {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.mc-tradeoff__head > * {
  flex: 1 1 calc(50% - 30px);
  min-width: 0;
}

.mc-chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
}

.mc-chat__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mc-chat__who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex: none;
  width: 66px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 14.4px;
  white-space: nowrap;
}

.mc-chat__who img { display: block; width: 48px; height: 48px; }
.mc-chat__who--me { color: var(--mc-accent-text); }
.mc-chat__who--them { width: 59px; gap: 2px; color: var(--mc-quote-by); letter-spacing: -0.24px; }

.mc-chat__bubble {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin-left: 15px;
  padding: 16px 20px;
  border-radius: 13px;
  background: var(--mc-white);
  filter: drop-shadow(0.935px 3.741px 7.481px var(--mc-card-shadow));
}

/* Figma tail: 23×39 box at the bubble's bottom-left, svg overflows by its shadow insets */
.mc-chat__tail {
  position: absolute;
  left: -15px;
  bottom: 0;
  width: calc(23px * 1.9641);
  height: calc(39px * 1.2108);
  margin-left: calc(23px * -0.5229);
  pointer-events: none;
}

.mc-chat__bubble p {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  color: var(--mc-quote);
}

.mc-title--tight { letter-spacing: -0.32px; }
.mc-title--tighter { letter-spacing: -0.48px; }
.mc-title--n064 { letter-spacing: -0.64px; }

.mc-lead--body { color: var(--mc-body); letter-spacing: 0; }
.mc-lead--tight { letter-spacing: -0.18px; }
.mc-lead--nav { font-size: 16px; line-height: 24px; letter-spacing: -0.16px; color: var(--mc-nav-desc); }

.mc-strong-800 { font-weight: 800; }
.mc-w300 { font-weight: 300; }
.mc-w400 { font-weight: 400; }

/* Exported artwork + clips positioned in Figma px (scaled via container units) */
.mc-art {
  container-type: inline-size;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.mc-art > img {
  display: block;
  width: 100%;
  height: auto;
}

.mc-art--bleed {
  margin: -5px;
  width: calc(100% + 10px);
  border-radius: 0;
  overflow: visible;
}

.mc-art__clip {
  --u: calc(100cqw / var(--aw));
  position: absolute;
  left: calc(var(--u) * var(--x));
  top: calc(var(--u) * var(--y));
  width: calc(var(--u) * var(--w));
  height: calc(var(--u) * var(--h));
  border-radius: calc(var(--u) * var(--r));
  object-fit: cover;
  display: block;
}

.mc-panel {
  border-radius: 24px;
  background: linear-gradient(180deg, var(--mc-panel-top) -8.7%, var(--mc-white) 138.1%);
}

.mc-pair {
  display: flex;
  gap: 28px;
}

.mc-pair > * {
  flex: 1 1 0;
  min-width: 0;
}

/* Goal */
.mc-goal {
  height: 560px;
  padding: 60px 0 80px;
  display: flex;
  align-items: center;
  background: var(--mc-accent-strong);
}

.mc-goal > .mc-container { width: 100%; }

.mc-goal__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mc-goal__label {
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: 0.6px;
  color: var(--mc-goal-label);
}

.mc-goal__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 56px;
  letter-spacing: -0.2px;
  color: var(--mc-white);
}

/* Tags */
.mc-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 6px;
  color: var(--mc-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 18.2px;
  letter-spacing: 0.39px;
}

.mc-tag--muted { padding: 4px 8px; background: var(--mc-chip-muted); }

.mc-tag--before,
.mc-tag--after {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 18.2px;
  letter-spacing: 0.26px;
}

.mc-tag--before { background: var(--mc-chip-ink); }
.mc-tag--after { background: var(--mc-accent-strong); }

/* Hypothesis cards */
.mc-card {
  display: flex;
  flex-direction: column;
  padding: 56px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--mc-panel-top) -8.7%, var(--mc-white) 138.1%);
}

.mc-card--hyp { gap: 36px; padding: 52px; }

.mc-card__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mc-card__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 39px;
  color: var(--mc-text);
}

.mc-card__title--tight { letter-spacing: -0.26px; }

/* Timeline phases */
.mc-phases {
  display: flex;
  gap: 28px;
}

.mc-phase {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 52px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--mc-panel-top) 14%, var(--mc-white) 140.4%);
}

.mc-phase__head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mc-phase__num {
  width: 49px;
  height: 49px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mc-white);
  box-shadow: 0 2.1px 21.4px 0 var(--mc-num-shadow);
  font-size: 22px;
  font-weight: 700;
  line-height: 30.8px;
  color: var(--mc-num);
}

.mc-phase__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mc-phase__release {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.mc-phase__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: 0.48px;
  color: var(--mc-accent);
}

.mc-phase__dot,
.mc-phase__date {
  font-size: 13px;
  line-height: 15.6px;
  letter-spacing: -0.13px;
  color: var(--mc-meta);
}

.mc-phase__dot { font-weight: 600; }
.mc-phase__date { font-weight: 500; }
.mc-phase__date--wide { letter-spacing: 0.39px; }

.mc-phase__sub {
  font-size: 16px;
  font-weight: 600;
  line-height: 22.4px;
  color: var(--mc-body);
}

.mc-phase__list {
  color: var(--mc-body);
  font-weight: 400;
}

.mc-phase__list li {
  position: relative;
  padding-left: 22px;
}

.mc-phase__list li::before {
  content: "•";
  position: absolute;
  left: 9px;
}

.mc-phase__list--a { font-size: 15px; line-height: 27px; }
.mc-phase__list--b { font-size: 15px; line-height: 22.5px; letter-spacing: -0.15px; }
.mc-phase__list--b li + li { margin-top: 5px; }
.mc-phase__list--c { font-size: 16px; line-height: 28.8px; }

/* Design Improvement 1 — navigation releases */
.mc-navs { padding: 52px 60px; }

.mc-navs__inner {
  max-width: 901px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mc-navs__item,
.mc-navs__top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-navs__item--split { gap: 20px; }

.mc-navs__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mc-navs__label {
  font-size: 16px;
  font-weight: 800;
  line-height: 22.4px;
  letter-spacing: 0.48px;
}

.mc-navs__label--1 { color: var(--mc-accent-soft); }
.mc-navs__label--2 { color: var(--mc-accent); }
.mc-navs__label--3 { color: var(--mc-accent-deep); }

/* Layout slot = Figma group box; image = render bounds (incl. shadows) */
.mc-navs__bar {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 900 / var(--h);
}

.mc-navs__bar img {
  position: absolute;
  left: 0;
  top: calc(var(--top, 0) * 100cqw / 900);
  width: 100%;
  height: calc(var(--img, var(--h)) * 100cqw / 900);
  max-width: none;
}

.mc-navs__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--mc-nav-desc);
}

.mc-navs__desc strong { font-weight: 600; }
.mc-navs__desc--lg { font-size: 18px; line-height: 27px; }

/* Design Improvement 2 — before / after */
.mc-card--shot { gap: 28px; padding: 40px; }

.mc-card__shot-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mc-card__shot-top > .mc-tag { align-self: flex-start; }

.mc-frame {
  position: relative;
  overflow: hidden;
  background: var(--mc-white);
}

.mc-frame--5 {
  aspect-ratio: 514 / 274;
  border-radius: 13px;
  box-shadow: 0 0 0 5px var(--mc-white);
}

/* DS2 before/after: 546×274; 5px white OUTSIDE stroke */
.mc-frame--di2 {
  aspect-ratio: 546 / 274;
  border-radius: 13px;
  box-shadow: 0 0 0 5px var(--mc-white);
}

/* 546×293; 6px white OUTSIDE stroke */
.mc-frame--6 {
  aspect-ratio: 546 / 293;
  border-radius: 13px;
  box-shadow: 0 0 0 6px var(--mc-white);
}

.mc-frame__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-subhead {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-subhead__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 38.4px;
  color: var(--mc-text);
}

.mc-subhead__num { color: var(--mc-accent); }

/* Scroll-interaction cards: recording on top, caption below */
.mc-zone {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
}

.mc-panel--info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
}

/* Implementation decision (6730:106708) */
.mc-impl__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 30.72px;
  color: var(--mc-text);
}

.mc-tag--sm {
  height: 26px;
  font-size: 13px;
  line-height: 18.2px;
  letter-spacing: 0.26px;
}

.mc-impl-card { padding: 40px; }

/* 546×330 content box; Figma positions are absolute inside it */
.mc-impl-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mc-impl-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.mc-impl-art {
  position: relative;
  aspect-ratio: 546 / 238;
  border-radius: 12.26px;
  overflow: hidden;
}

.mc-impl-art > img,
.mc-impl-art > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-impl-card__body--after {
  container-type: inline-size;
  display: block;
  aspect-ratio: 546 / 330;
}

.mc-impl-card__body--after > .mc-tag {
  position: absolute;
  left: 0;
  top: 0;
}

.mc-impl-art--after {
  position: absolute;
  left: 0;
  top: 27.7%;
  width: 100%;
  aspect-ratio: 546 / 238.6;
  border-radius: 11.08px;
}

.mc-impl-note {
  position: absolute;
  margin: 0;
  /* 16 / 21.12 at the 546px Figma width, scaled with the card */
  font-size: min(16px, calc(100cqw * 16 / 546));
  font-weight: 400;
  line-height: 1.32;
  color: var(--mc-body);
}

.mc-impl-boxes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--mc-accent-box);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

/* GIF recording over the phone mockup: bottom edge fades out into the card image */
.mc-impl-gif {
  -webkit-mask-image: linear-gradient(180deg, var(--mc-black) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, var(--mc-black) 55%, transparent 100%);
}

/* Cut-out assets placed at Figma coordinates; each keeps its own drop shadow */
.mc-impl-assets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mc-impl-asset {
  position: absolute;
  height: auto;
  image-rendering: pixelated;
}

/* Coins: per-coin vertical path measured from the GIF (1.28s loop) */
.mc-coin { animation: 1.28s linear infinite; }
@keyframes mc-coin-106731 { 0% { translate: 0 0px; } 12.5% { translate: 0 -1px; } 25% { translate: 0 -3px; } 37.5% { translate: 0 -6px; } 50% { translate: 0 -8px; } 62.5% { translate: 0 -8px; } 75% { translate: 0 -5px; } 87.5% { translate: 0 -3px; } 100% { translate: 0 0px; } }
.mc-coin--106731 { animation-name: mc-coin-106731; }
@keyframes mc-coin-106732 { 0% { translate: 0 -0.43px; } 6.25% { translate: 0 -1.71px; } 12.5% { translate: 0 -1.71px; } 18.75% { translate: 0 -0.85px; } 25% { translate: 0 0.43px; } 31.25% { translate: 0 1.71px; } 37.5% { translate: 0 2.99px; } 43.75% { translate: 0 4.27px; } 50% { translate: 0 5.55px; } 56.25% { translate: 0 6.83px; } 62.5% { translate: 0 7.25px; } 68.75% { translate: 0 5.97px; } 75% { translate: 0 4.69px; } 81.25% { translate: 0 3.41px; } 87.5% { translate: 0 2.13px; } 93.75% { translate: 0 0.85px; } 100% { translate: 0 -0.43px; } }
.mc-coin--106732 { animation-name: mc-coin-106732; }
@keyframes mc-coin-106733 { 0% { translate: 0 0px; } 6.25% { translate: 0 -1.28px; } 12.5% { translate: 0 -2.56px; } 18.75% { translate: 0 -4.05px; } 25% { translate: 0 -4.69px; } 31.25% { translate: 0 -4.69px; } 37.5% { translate: 0 -3.41px; } 43.75% { translate: 0 -2.13px; } 50% { translate: 0 -0.85px; } 56.25% { translate: 0 0.43px; } 62.5% { translate: 0 1.71px; } 68.75% { translate: 0 2.99px; } 75% { translate: 0 4.27px; } 81.25% { translate: 0 3.84px; } 87.5% { translate: 0 2.56px; } 93.75% { translate: 0 1.28px; } 100% { translate: 0 0px; } }
.mc-coin--106733 { animation-name: mc-coin-106733; }
@keyframes mc-coin-106734 { 0% { translate: 0 0.43px; } 6.25% { translate: 0 -0.85px; } 12.5% { translate: 0 -2.13px; } 18.75% { translate: 0 -3.41px; } 25% { translate: 0 -5.12px; } 31.25% { translate: 0 -5.12px; } 37.5% { translate: 0 -4.27px; } 43.75% { translate: 0 -2.99px; } 50% { translate: 0 -1.71px; } 56.25% { translate: 0 -0.43px; } 62.5% { translate: 0 0.85px; } 68.75% { translate: 0 2.13px; } 75% { translate: 0 3.41px; } 81.25% { translate: 0 4.27px; } 87.5% { translate: 0 2.99px; } 93.75% { translate: 0 1.71px; } 100% { translate: 0 0.43px; } }
.mc-coin--106734 { animation-name: mc-coin-106734; }
@keyframes mc-coin-106735 { 0% { translate: 0 -0.43px; } 6.25% { translate: 0 -1.71px; } 12.5% { translate: 0 -2.99px; } 18.75% { translate: 0 -4.27px; } 25% { translate: 0 -5.55px; } 31.25% { translate: 0 -7.25px; } 37.5% { translate: 0 -6.83px; } 43.75% { translate: 0 -6.4px; } 50% { translate: 0 -5.12px; } 56.25% { translate: 0 -3.84px; } 62.5% { translate: 0 -2.56px; } 68.75% { translate: 0 -1.28px; } 75% { translate: 0 0px; } 81.25% { translate: 0 1.28px; } 87.5% { translate: 0 2.13px; } 93.75% { translate: 0 0.85px; } 100% { translate: 0 -0.43px; } }
.mc-coin--106735 { animation-name: mc-coin-106735; }
@keyframes mc-coin-106736 { 0% { translate: 0 -0.43px; } 6.25% { translate: 0 0px; } 12.5% { translate: 0 -1.28px; } 18.75% { translate: 0 -2.56px; } 25% { translate: 0 -3.84px; } 31.25% { translate: 0 -5.12px; } 37.5% { translate: 0 -6.4px; } 43.75% { translate: 0 -7.68px; } 50% { translate: 0 -7.68px; } 56.25% { translate: 0 -7.68px; } 62.5% { translate: 0 -7.68px; } 68.75% { translate: 0 -6.83px; } 75% { translate: 0 -5.55px; } 81.25% { translate: 0 -4.27px; } 87.5% { translate: 0 -2.99px; } 93.75% { translate: 0 -1.71px; } 100% { translate: 0 -0.43px; } }
.mc-coin--106736 { animation-name: mc-coin-106736; }
@keyframes mc-coin-106737 { 0% { translate: 0 -0.43px; } 6.25% { translate: 0 -1.71px; } 12.5% { translate: 0 -2.99px; } 18.75% { translate: 0 -3.84px; } 25% { translate: 0 -3.84px; } 31.25% { translate: 0 -2.56px; } 37.5% { translate: 0 -1.06px; } 43.75% { translate: 0 0.43px; } 50% { translate: 0 1.71px; } 56.25% { translate: 0 2.99px; } 62.5% { translate: 0 4.27px; } 68.75% { translate: 0 5.55px; } 75% { translate: 0 4.69px; } 81.25% { translate: 0 3.41px; } 87.5% { translate: 0 2.13px; } 93.75% { translate: 0 0.85px; } 100% { translate: 0 -0.43px; } }
.mc-coin--106737 { animation-name: mc-coin-106737; }
@keyframes mc-coin-106738 { 0% { translate: 0 -0.43px; } 6.25% { translate: 0 -1.71px; } 12.5% { translate: 0 -2.56px; } 18.75% { translate: 0 -2.56px; } 25% { translate: 0 -1.28px; } 31.25% { translate: 0 0px; } 37.5% { translate: 0 1.71px; } 43.75% { translate: 0 2.99px; } 50% { translate: 0 4.27px; } 56.25% { translate: 0 5.55px; } 62.5% { translate: 0 6.83px; } 68.75% { translate: 0 5.97px; } 75% { translate: 0 4.69px; } 81.25% { translate: 0 3.41px; } 87.5% { translate: 0 2.13px; } 93.75% { translate: 0 0.85px; } 100% { translate: 0 -0.43px; } }
.mc-coin--106738 { animation-name: mc-coin-106738; }
@keyframes mc-coin-106739 { 0% { translate: 0 -0.43px; } 6.25% { translate: 0 0.85px; } 12.5% { translate: 0 2.13px; } 18.75% { translate: 0 3.41px; } 25% { translate: 0 4.69px; } 31.25% { translate: 0 5.97px; } 37.5% { translate: 0 6.83px; } 43.75% { translate: 0 5.55px; } 50% { translate: 0 4.27px; } 56.25% { translate: 0 2.99px; } 62.5% { translate: 0 1.71px; } 68.75% { translate: 0 0px; } 75% { translate: 0 -1.28px; } 81.25% { translate: 0 -2.56px; } 87.5% { translate: 0 -2.56px; } 93.75% { translate: 0 -1.71px; } 100% { translate: 0 -0.43px; } }
.mc-coin--106739 { animation-name: mc-coin-106739; }
@keyframes mc-coin-106740 { 0% { translate: 0 0px; } 6.25% { translate: 0 0.85px; } 12.5% { translate: 0 2.13px; } 18.75% { translate: 0 3.41px; } 25% { translate: 0 4.69px; } 31.25% { translate: 0 5.97px; } 37.5% { translate: 0 7.25px; } 43.75% { translate: 0 7.68px; } 50% { translate: 0 7.68px; } 56.25% { translate: 0 7.68px; } 62.5% { translate: 0 6.83px; } 68.75% { translate: 0 5.12px; } 75% { translate: 0 3.84px; } 81.25% { translate: 0 2.56px; } 87.5% { translate: 0 1.28px; } 93.75% { translate: 0 0px; } 100% { translate: 0 0px; } }
.mc-coin--106740 { animation-name: mc-coin-106740; }

/* Leftmost ant: small hop measured from the GIF (0.32s) */
.mc-impl-asset--hop { animation: mc-ant-hop 0.32s steps(1) infinite; }
@keyframes mc-ant-hop { 0% { translate: 0 0; } 25% { translate: 0 0.4px; } 50% { translate: 0 0; } 75% { translate: 0 -0.9px; } }

/* Light beam: fixed light keeps the Figma shadow; this shimmer copy pulses over the coins (1.28s loop, like the GIF) */
.mc-impl-beam {
  animation: mc-beam-pulse 1.28s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(0deg, var(--mc-beam-dim) 0%, var(--mc-beam-dim) 35%, var(--mc-black) 50%, var(--mc-beam-dim) 65%, var(--mc-beam-dim) 100%);
  mask-image: linear-gradient(0deg, var(--mc-beam-dim) 0%, var(--mc-beam-dim) 35%, var(--mc-black) 50%, var(--mc-beam-dim) 65%, var(--mc-beam-dim) 100%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
}

@keyframes mc-beam-pulse {
  0%   { opacity: 0;    -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  50%  { opacity: 0.55; }
  100% { opacity: 0;    -webkit-mask-position: 0 0;    mask-position: 0 0; }
}

/* Street ants play the original GIF frames (transparent WebM cut from it) */
.mc-impl-clip {
  position: absolute;
  height: auto;
  filter: drop-shadow(2px 1px 2px var(--mc-clip-shadow));
}

@media (prefers-reduced-motion: reduce) {
  .mc-coin,
  .mc-impl-beam,
  .mc-impl-asset--hop { animation: none; }
}

.mc-impl-line {
  position: absolute;
  height: auto;
  pointer-events: none;
}

/* Stat cards (Design result / Shipping result) */
.mc-stats { display: flex; }
.mc-stats--2 { gap: 28px; }
.mc-stats--3 { gap: 28px; }

.mc-stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 56px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--mc-panel-top) -8.7%, var(--mc-white) 188.6%);
}

.mc-stat__label {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--mc-stat-label);
}

.mc-stat__value {
  margin-top: -12px;
  font-size: 60px;
  font-weight: 600;
  line-height: 72px;
  color: var(--mc-black);
  white-space: nowrap;
}

/* Figma: leading "+" is Geist 400 80/96 */
.mc-stat__value > .mc-stat__plus { font-size: 80px; font-weight: 400; line-height: 96px; }

.mc-stat__value--row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.mc-stat__value--gap10 { gap: 10px; }

/* Figma: '92', '17x', '6%' are fixed-height 96px text boxes, vertically centered */
.mc-stat__num--96 { display: inline-flex; align-items: center; height: 96px; }

.mc-stat__arrow {
  font-size: 40px;
  font-weight: 400;
  line-height: 48px;
}

/* Shipping result / Learning rows */
.mc-split__row--result { gap: 64px; align-items: center; }
.mc-split__row--result > .mc-media--result { flex: 0 0 580px; }
.mc-split__row--learning { gap: 60px; }
.mc-split__row--learning .mc-lead { font-size: 16px; line-height: 24px; }

.mc-block--insight { padding-bottom: 120px; }
.mc-shotimg { display: block; width: 100%; height: auto; }

/* ── Timeline (Figma 6730:105453): arrow line + dots + release cards ── */
.mc-block--timeline .mc-lead { font-size: 16px; line-height: 24px; }
.mc-challenge .mc-text .mc-lead { font-size: 16px; line-height: 24px; letter-spacing: 0; }
.mc-block--result .mc-lead { font-size: 16px; line-height: 24px; }
.mc-tl { position: relative; }
.mc-tl__line { position: absolute; left: 0; top: 28.2px; width: 100%; height: 29px; }
.mc-tl__grid { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mc-tl__col { position: relative; display: flex; flex-direction: column; padding-top: 80.6px; }
.mc-tl__date { position: absolute; top: -0.4px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 15.6px; letter-spacing: 0.26px; color: var(--mc-tl-date); }
.mc-tl__date--lg { top: 1.6px; font-size: 14px; line-height: 16.8px; letter-spacing: 0.28px; }
.mc-tl__dot { position: absolute; top: 30.6px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--mc-white); box-shadow: 0 0.82px 8.17px 0 var(--mc-tl-glow); }
.mc-tl__card { flex: 1 1 auto; display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 24px; background: linear-gradient(180deg, var(--mc-panel-top) 14%, var(--mc-white) 140.4%); }
.mc-tl__col:first-child .mc-tl__card { gap: 16px; }
.mc-tl__head { display: flex; flex-direction: column; gap: 10px; }
.mc-tl__pill { display: block; padding: 4px 12px; border-radius: 6px; background: var(--mc-accent); color: var(--mc-white); font-size: 14px; font-weight: 700; line-height: 19.6px; letter-spacing: 0.42px; text-align: center; }
.mc-tl__sub { margin: 0; font-size: 16px; font-weight: 600; line-height: 22.4px; text-align: center; color: var(--mc-accent); }
.mc-tl__list { margin: 0; padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 0; color: var(--mc-body); font-weight: 400; }
.mc-tl__list--a { font-size: 15px; line-height: 27px; }
.mc-tl__list--b { font-size: 15px; line-height: 22.5px; letter-spacing: -0.22px; gap: 5px; }
.mc-tl__list--c { font-size: 15px; line-height: 27px; gap: 2.67px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .mc-overview__box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
  .mc-overview__divider { display: none; }
  .mc-overview__col { width: auto; align-items: flex-start; }

  .mc-split__row,
  .mc-split__row--about {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .mc-split__row > *,
  .mc-split__row--problem > .mc-text { flex: none; }
  .mc-split__row--about .mc-text { padding-top: 0; }
  .mc-feedback { height: auto; }
  .mc-challenge__cards { flex-direction: column; }
  .mc-challenge__card { flex: none; }
  .mc-pair,
  .mc-tradeoff__head,
  .mc-phases,
  .mc-stats { flex-direction: column; }
  .mc-pair > *,
  .mc-phase,
  .mc-stat,
  .mc-split__row--result > .mc-media--result { flex: none; width: 100%; }
  .mc-goal { height: auto; padding: 80px 0; }
  .mc-feedback__inner { align-self: stretch; }
  .mc-feedback__list { width: 100%; align-items: center; }
}

@media (max-width: 768px) {
  .mc-tl__line, .mc-tl__dot { display: none; }
  .mc-tl__grid { grid-template-columns: 1fr; gap: 16px; }
  .mc-tl__col { padding-top: 0; gap: 8px; }
  .mc-tl__date { position: static; transform: none; }
  .mc-container { padding: 0 20px; }
  .mc-feedback { padding: 32px 16px; }
  .mc-challenge__card { padding: 32px 16px; }
  .mc-card,
  .mc-zone,
  .mc-chat,
  .mc-panel--info,
  .mc-stat { padding: 32px 16px; }
  .mc-navs { padding: 32px 16px; }
  .mc-phase { padding: 32px 20px; }
  .mc-goal__title { font-size: 28px; line-height: 39.2px; }
  .mc-stat__value { font-size: 48px; }
}

@media (max-width: 560px) {
  .mc-overview__box { grid-template-columns: 1fr; }
}
