/*
 * Moving Types Façade (/work/moving-types-facade/).
 * Shared building blocks (hero padding, eyebrow, facts, reflection, credits,
 * next teaser) come from case-base.css; this file only holds the exhibits.
 * Project accent: the LED turquoise of the façade plan of 5 Aug 2011
 * (#58c0c8), used for exhibits only. Prefix mf-.
 */

:root {
  --mf-night: #1d2429;
  --mf-panel: #24272b;
  --mf-led: #58c0c8;
  --mf-led-bright: #bdf3f6;
  --mf-pink: #e0338f;
  --mf-grey: #ececec;
  --mf-body: #44494d;
  --mf-on-dark: rgba(255, 255, 255, 0.78);
  --mf-caption-on-dark: rgba(255, 255, 255, 0.72);
}

.mf-page {
  margin: 0;
  background: #fff;
  color: var(--case-ink);
  font-family: var(--case-font);
  overflow-x: hidden;
}

.mf-page *,
.mf-page *::before,
.mf-page *::after {
  box-sizing: border-box;
}

.mf-page img,
.mf-page video,
.mf-page canvas {
  display: block;
  max-width: 100%;
}

.mf-page video {
  width: 100%;
  height: auto;
}

.mf-wrap {
  width: min(100% - 96px, 1344px);
  margin-inline: auto;
}

@media (max-width: 1023px) {
  .mf-wrap {
    width: calc(100% - 48px);
  }
}

@media (max-width: 639px) {
  .mf-wrap {
    width: calc(100% - 32px);
  }
}

.mf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

/* !important: the global link rule in custom.css sets display and colour on
   every link with a much higher specificity. */
.mf-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 16px/1.3 var(--case-font);
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mf-button--light {
  background: #fff;
  color: var(--case-ink) !important;
}

.mf-button--light:hover {
  background: var(--mf-grey);
}

.mf-button--solid {
  background: var(--portfolio-blue);
  color: #fff;
}

.mf-button--solid:hover {
  background: #2c33c9;
}

.mf-button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.mf-button--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mf-button--ghost-dark {
  min-height: 44px;
  padding: 10px 20px;
  background: #fff;
  border-color: var(--case-line);
  color: var(--case-ink);
  font-size: 14px;
}

.mf-button--ghost-dark:hover {
  border-color: var(--portfolio-blue);
  color: var(--portfolio-blue);
}

/* ---------- Hero ---------- */

.mf-hero {
  position: relative;
  min-height: max(720px, 100svh);
  background: #0f1316;
  color: #fff;
  overflow: hidden;
}

/* The film sits on the right, so the glowing bridge (top left in the frame)
   stays visible next to the title instead of behind it. */
.mf-hero .mf-hero__video {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: 14% 35%;
}

.mf-hero__scrim {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background:
    linear-gradient(90deg, #0f1316 0%, rgba(15, 19, 22, 0.55) 16%, rgba(15, 19, 22, 0) 36%),
    linear-gradient(0deg, #0f1316 0%, rgba(15, 19, 22, 0.7) 22%, rgba(15, 19, 22, 0) 46%),
    linear-gradient(180deg, rgba(15, 19, 22, 0.55) 0%, rgba(15, 19, 22, 0) 16%);
}

.mf-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(720px, 100svh);
  padding-block: 120px 24px;
}

.mf-hero__main {
  max-width: 44%;
  margin-bottom: clamp(32px, 6vh, 72px);
}

.mf-hero__title {
  margin: 0;
  font-size: var(--case-h1-size);
  font-weight: var(--case-heading-weight);
  line-height: var(--case-h1-leading);
  letter-spacing: var(--case-heading-tracking);
  text-wrap: balance;
}

.mf-hero__lead {
  max-width: 640px;
  margin: 28px 0 36px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
}

.mf-hero .case-facts {
  color: #fff;
}

.mf-hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.mf-hero__credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.mf-hero__toggle {
  flex: none;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(10, 13, 16, 0.35);
  color: #fff;
  font: 600 13px/1.2 var(--case-font);
  cursor: pointer;
}

.mf-hero__toggle:hover {
  border-color: #fff;
}

/* ---------- Sections and headings ---------- */

.mf-section {
  padding-block: clamp(88px, 10vw, 160px);
  scroll-margin-top: 72px;
}

.mf-section--white {
  background: #fff;
}

.mf-section--grey {
  background: var(--mf-grey);
}

.mf-section--dark {
  background: var(--mf-night);
  color: #fff;
}

.mf-head {
  max-width: 940px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.mf-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
  max-width: none;
}

.mf-h2 {
  margin: 0;
  font-size: var(--case-h2-size);
  font-weight: var(--case-heading-weight);
  line-height: var(--case-h2-leading);
  letter-spacing: var(--case-heading-tracking);
  text-wrap: balance;
}

.mf-h3 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mf-head__text,
.mf-head__text p {
  margin: 0;
  color: var(--mf-body);
  font-size: 17px;
  line-height: 1.65;
}

.mf-section--dark .mf-head__text,
.mf-section--dark .mf-head__text p {
  color: var(--mf-on-dark);
}

.mf-label {
  margin: 0 0 14px;
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mf-label--on-dark {
  color: var(--portfolio-blue-on-dark);
}

.mf-note {
  margin: 16px 0 0;
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mf-section--dark .mf-note {
  color: var(--mf-caption-on-dark);
}

@media (min-width: 1024px) {
  .mf-head__text,
  .mf-head__text p {
    font-size: 18px;
  }
}

/* ---------- Figures ---------- */

.mf-figure {
  margin: 0;
  min-width: 0;
}

.mf-figure figcaption {
  margin-top: 12px;
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mf-figure figcaption strong {
  color: var(--case-ink);
  font-weight: 600;
}

.mf-figure figcaption a {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.mf-section--dark .mf-figure figcaption {
  color: var(--mf-caption-on-dark);
}

.mf-section--dark .mf-figure figcaption strong {
  color: #fff;
}

.mf-figure img,
.mf-figure video {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.mf-figure--card {
  padding: 16px;
  border: 1px solid var(--case-line);
  border-radius: 16px;
  background: #fff;
}

.mf-figure--card img {
  border-radius: 6px;
}

.mf-figure--light img {
  padding: clamp(10px, 1.6vw, 20px);
  border-radius: 16px;
  background: #fff;
}

.mf-figure--film video {
  background: #111;
}

.mf-figure--plain img {
  border-radius: 0;
}

/* ---------- 01 Starting point ---------- */

.mf-start {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.mf-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--mf-body);
  font-size: 17px;
  line-height: 1.65;
}

.mf-copy .mf-copy__lead {
  color: var(--case-ink);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.mf-start__aside {
  display: grid;
  gap: 24px;
}

.mf-quote {
  margin: 0;
  padding: 28px;
  border-radius: 16px;
  background: #f4f4fb;
}

.mf-quote blockquote {
  margin: 0;
}

.mf-quote blockquote p {
  margin: 0;
  color: var(--case-ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.mf-quote figcaption {
  margin-top: 14px;
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mf-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--case-line);
}

.mf-stats li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--case-line);
}

.mf-stats strong {
  color: var(--portfolio-blue);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.mf-stats span {
  color: var(--mf-body);
  font-size: 15px;
  line-height: 1.4;
}

.mf-related {
  display: grid !important;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--case-line);
  border-radius: 16px;
  color: var(--case-ink) !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease;
}

.mf-related:hover {
  border-color: var(--portfolio-blue);
}

.mf-related span {
  color: var(--case-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mf-related strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.mf-related em {
  color: var(--portfolio-blue);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
}

/* ---------- 02 Site ---------- */

.mf-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mf-step;
}

.mf-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 24px;
  border: 1px solid var(--case-line);
  border-radius: 16px;
  background: #fff;
  counter-increment: mf-step;
}

.mf-step::before {
  content: counter(mf-step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--portfolio-blue);
  border-radius: 50%;
  color: var(--portfolio-blue);
  font-size: 11px;
  font-weight: 700;
}

.mf-step__date {
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mf-step__icon {
  width: 88px;
  height: 70px;
  margin: 22px 0 18px;
  color: var(--portfolio-blue);
}

.mf-step__icon--muted {
  color: #6b6b6b;
}

.mf-led-fill {
  fill: var(--mf-led);
}

.mf-led-stroke {
  stroke: var(--mf-led);
}

.mf-pink-stroke {
  stroke: var(--mf-pink);
}

.mf-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.mf-step p {
  margin: 0;
  color: var(--mf-body);
  font-size: 14px;
  line-height: 1.55;
}

.mf-decision {
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--case-line);
  border-radius: 16px;
  background: #fff;
}

.mf-decision__title {
  max-width: 820px;
  margin: 0 0 32px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mf-decision__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 64px);
}

.mf-decision__grid p {
  margin: 12px 0 0;
  color: var(--mf-body);
  font-size: 16px;
  line-height: 1.65;
}

.mf-decision__tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1.5px solid var(--portfolio-blue);
  border-radius: 999px;
  color: var(--portfolio-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mf-decision__tag--no {
  border-color: #b3261e;
  color: #b3261e;
}

.mf-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}

/* ---------- 03 Encoding ---------- */

.mf-exhibit {
  margin: 0;
  padding: clamp(16px, 2.4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: var(--mf-panel);
}

.mf-exhibit--light {
  border-color: var(--case-line);
  background: #f6f6f6;
}

.mf-exhibit > figcaption {
  margin-top: 18px;
  color: var(--mf-caption-on-dark);
  font-size: 13px;
  line-height: 1.5;
}

.mf-exhibit--light > figcaption {
  color: var(--case-muted);
}

.mf-facade__stage {
  position: relative;
}

.mf-facade__canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 470;
}

.mf-facade__badge {
  position: absolute;
  top: 8px;
  left: 50%;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mf-led);
  color: #0f2427;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.mf-facade__badge.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mf-facade__controls {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mf-field label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mf-field__row {
  display: flex;
  gap: 10px;
}

.mf-field input[type="text"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: #14181b;
  color: #fff;
  font: 600 16px/1.2 var(--case-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mf-field__hint {
  margin: 8px 0 0;
  color: var(--mf-caption-on-dark);
  font-size: 12px;
  line-height: 1.4;
}

.mf-field--range input {
  width: 100%;
  min-height: 48px;
  accent-color: var(--mf-led);
}

.mf-field--range {
  padding-bottom: 22px;
}

.mf-facade__controls > .mf-button {
  margin-bottom: 22px;
}

.mf-insight {
  max-width: 900px;
  margin: clamp(48px, 6vw, 80px) 0;
  padding-left: 28px;
  border-left: 3px solid var(--portfolio-blue-on-dark);
}

.mf-insight__text {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.mf-arrangement {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.mf-plans {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

/* ---------- 04 Score ---------- */

.mf-score {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.mf-score__canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 400;
}

.mf-score__stage {
  position: relative;
}

.mf-score__toggle {
  position: absolute;
  top: 12px;
  right: 12px;
}

.mf-window__screen.is-paused span,
.mf-window__screen.is-offscreen span {
  animation-play-state: paused;
}

.mf-score__facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-score__facts li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--case-line);
}

.mf-score__facts li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mf-led);
}

.mf-score__facts strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.mf-score__facts span {
  color: var(--mf-body);
  font-size: 14px;
  line-height: 1.5;
}

.mf-touch {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(72px, 9vw, 128px);
}

.mf-touch__copy > p:not(.mf-label) {
  margin: 20px 0 0;
  color: var(--mf-body);
  font-size: 17px;
  line-height: 1.65;
}

.mf-touch__list {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.mf-touch__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.mf-touch__dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mf-led);
}

.mf-touch__dot--colour {
  background: conic-gradient(var(--mf-led), var(--mf-pink), #f2c230, var(--mf-led));
}

/* Four photos of one evening. Without JS they sit in a 2 × 2 grid; the
   script turns them into one large photo with colour buttons. */
.mf-colours {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(72px, 9vw, 128px);
}

.mf-colours__stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mf-colours__frame {
  position: relative;
  margin: 0;
}

.mf-colours__frame img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.mf-colours__frame figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 13, 16, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mf-colours.is-stepper .mf-colours__stage {
  display: block;
  position: relative;
  aspect-ratio: 1400 / 933;
}

.mf-colours.is-stepper .mf-colours__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mf-colours.is-stepper .mf-colours__frame.is-active {
  opacity: 1;
}

.mf-colours.is-stepper .mf-colours__frame img {
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.mf-colours__copy > p:not(.mf-label):not(.mf-note) {
  margin: 16px 0 0;
  color: var(--mf-body);
  font-size: 16px;
  line-height: 1.65;
}

.mf-colours__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.mf-colours__buttons[hidden] {
  display: none;
}

.mf-colours__buttons button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--case-line);
  border-radius: 999px;
  background: #fff;
  color: var(--case-ink);
  font: 600 14px/1.2 var(--case-font);
  cursor: pointer;
}

.mf-colours__buttons button span {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}

.mf-colours__buttons [data-colour="white"] span { background: #f4f7ff; }
.mf-colours__buttons [data-colour="violet"] span { background: #9b6cf0; }
.mf-colours__buttons [data-colour="pink"] span { background: #e64fc0; }
.mf-colours__buttons [data-colour="red"] span { background: #e0353d; }

.mf-colours__buttons button[aria-pressed="true"] {
  border-color: var(--portfolio-blue);
  color: var(--portfolio-blue);
  box-shadow: inset 0 0 0 1px var(--portfolio-blue);
}

.mf-wide {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.mf-wide img {
  border-radius: 16px;
}

/* ---------- 05 Build ---------- */

.mf-built {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: clamp(64px, 8vw, 112px);
}

.mf-built__intro > p:not(.mf-label) {
  margin: 16px 0 0;
  color: var(--mf-body);
  font-size: 16px;
  line-height: 1.65;
}

/* Column widths follow the films' aspect ratios (1280 × 540 and 1280 × 720),
   so both play at the same height. */
.mf-models {
  display: grid;
  grid-template-columns: minmax(0, 2.37fr) minmax(0, 1.78fr);
  gap: 24px;
  align-items: start;
}

.mf-square {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: clamp(64px, 8vw, 112px);
}

.mf-square__intro > p:not(.mf-label) {
  margin: 16px 0 0;
  color: var(--mf-body);
  font-size: 16px;
  line-height: 1.65;
}

.mf-figure--plan {
  margin-top: clamp(48px, 6vw, 80px);
}

.mf-figure--plan img {
  padding: clamp(10px, 1.6vw, 24px);
  border: 1px solid var(--case-line);
  border-radius: 16px;
  background: #fff;
}

/* ---------- 06 Four venues ---------- */

.mf-venues {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-venue {
  padding: 16px 16px 24px;
  border: 1px solid var(--case-line);
  border-radius: 16px;
  background: #fff;
}

.mf-venue__art {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 10px;
  background: #f6f6f6;
}

.mf-venue__date,
.mf-venue h3,
.mf-venue p {
  padding-inline: 8px;
}

.mf-venue__date {
  display: block;
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mf-venue h3 {
  margin: 8px 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.mf-venue p {
  margin: 0;
  color: var(--mf-body);
  font-size: 14px;
  line-height: 1.55;
}

.mf-prediger {
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 6vw, 80px);
}

.mf-hashtag {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(72px, 9vw, 128px);
}

.mf-hashtag__intro > p:not(.mf-label) {
  margin: 20px 0 0;
  color: var(--mf-body);
  font-size: 17px;
  line-height: 1.65;
}

.mf-hashtag__title {
  margin: 0 0 16px;
  color: var(--case-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mf-code {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.mf-code__hash {
  align-self: center;
  padding-right: 4px;
  color: var(--case-muted);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300;
  line-height: 1;
}

.mf-digit {
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.mf-digit label {
  color: var(--case-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  hyphens: manual;
}

.mf-digit__box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 14px;
  background: #fff;
}

.mf-digit__box input {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  padding: 10px 0 6px;
  border: 0;
  background: transparent;
  color: var(--case-ink);
  font: 300 clamp(40px, 4.4vw, 60px)/1 var(--case-font);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.mf-digit__box input::-webkit-outer-spin-button,
.mf-digit__box input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.mf-digit__box input:focus-visible {
  outline-offset: -3px;
  box-shadow: none;
}

.mf-digit__step {
  grid-row: 2;
  min-height: 36px;
  border: 0;
  border-top: 1px solid var(--case-line);
  background: #fafafa;
  color: var(--portfolio-blue);
  font: 600 18px/1 var(--case-font);
  cursor: pointer;
}

.mf-digit__step + input + .mf-digit__step,
.mf-digit__step:last-child {
  border-left: 1px solid var(--case-line);
}

.mf-digit__step:hover {
  background: #f4f4fb;
}

.mf-digit output {
  color: var(--portfolio-blue);
  font-size: 14px;
  font-weight: 700;
}

.mf-window {
  margin-top: 24px;
  padding: 14px;
  border-radius: 16px;
  background: var(--mf-panel);
}

.mf-window__screen {
  display: flex;
  align-items: center;
  aspect-ratio: 2.4 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #d9343c;
  transition: background-color 0.4s ease;
}

.mf-window__text {
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: var(--mf-size, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--mf-spacing, 0);
  white-space: nowrap;
  text-shadow: 0 0 14px currentColor;
  transition: color 0.4s ease, font-size 0.4s ease, letter-spacing 0.4s ease;
}

.mf-window__text span {
  display: inline-block;
  padding-left: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .mf-window__text span {
    animation: mf-ticker var(--mf-speed, 9s) linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-window__text span {
    padding-left: 4%;
  }
}

@keyframes mf-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.mf-hashtag__message {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.mf-hashtag__message span:first-child {
  color: var(--portfolio-blue);
}

.mf-hashtag__translation {
  color: var(--case-muted);
  font-weight: 400;
}

.mf-hashtag__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mf-hashtag__legend {
  margin: 18px 0 0;
  color: var(--mf-body);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 07 What remains ---------- */

.mf-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-outcomes li {
  padding: 22px 0 24px;
  border-top: 1px solid rgba(35, 35, 35, 0.18);
}

.mf-outcomes strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.mf-outcomes p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--mf-body);
  font-size: 15px;
  line-height: 1.6;
}

.mf-outcomes a {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

#what-remains .case-reflection {
  margin-top: clamp(40px, 5vw, 64px);
}

/* ---------- Reveal (only with JS and without reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .mf-motion-ready .mf-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .mf-motion-ready .mf-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .mf-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mf-venues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .mf-hero .mf-hero__video,
  .mf-hero__scrim {
    width: 100%;
    height: min(58svh, 560px);
  }

  .mf-hero .mf-hero__video {
    object-position: 16% 30%;
  }

  .mf-hero__scrim {
    background:
      linear-gradient(0deg, #0f1316 0%, rgba(15, 19, 22, 0.6) 30%, rgba(15, 19, 22, 0) 62%),
      linear-gradient(180deg, rgba(15, 19, 22, 0.6) 0%, rgba(15, 19, 22, 0) 22%);
  }

  .mf-hero__content {
    padding-top: calc(min(58svh, 560px) - 96px);
  }

  .mf-hero__main {
    max-width: 720px;
  }

  .mf-head--split,
  .mf-start,
  .mf-score,
  .mf-touch,
  .mf-hashtag {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-head--split {
    align-items: start;
  }

  .mf-facade__controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .mf-facade__controls > .mf-button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: 0;
  }

  .mf-colours {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-square,
  .mf-built {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-built__intro {
    grid-column: 1 / -1;
    max-width: 680px;
  }

  .mf-square__intro {
    grid-column: 1 / -1;
    max-width: 680px;
  }

  .mf-score__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
}

@media (max-width: 767px) {
  .mf-hero__foot {
    flex-wrap: wrap;
  }

  .mf-evidence,
  .mf-arrangement,
  .mf-plans,
  .mf-models,
  .mf-square,
  .mf-prediger,
  .mf-outcomes,
  .mf-decision__grid,
  .mf-facade__controls,
  .mf-score__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-field--range {
    padding-bottom: 0;
  }

  .mf-facade__canvas {
    aspect-ratio: 760 / 470;
  }

  .mf-score__canvas {
    aspect-ratio: 600 / 400;
  }

  .mf-code {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .mf-code__hash {
    display: none;
  }

  .mf-score__toggle {
    position: static;
    margin-top: 12px;
  }

  .mf-facade__badge {
    top: 0;
    padding: 4px 10px;
    font-size: 10px;
  }

  .mf-digit label {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .mf-digit output {
    font-size: 12px;
  }

  .mf-insight {
    padding-left: 20px;
  }
}

@media (max-width: 479px) {
  .mf-steps,
  .mf-venues {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-stats li {
    grid-template-columns: 96px 1fr;
  }

  .mf-stats strong {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-button,
  .mf-related,
  .mf-colours.is-stepper .mf-colours__frame,
  .mf-facade__badge,
  .mf-window__screen,
  .mf-window__text {
    transition: none;
  }
}
