/*
 * Moving Types case study (/work/moving-types/).
 * Shared building blocks (facts, eyebrows, reflection, credits, teaser) come
 * from case-base.css; this file only holds the page layout and the exhibits.
 * Project colours (logo letters red, blue, yellow) appear only inside G05.
 */

:root {
  --mt-grey: #ececec;
  --mt-dark: #1d2429;
  --mt-night: #14191d;
  --mt-body: #3f4447;
  --mt-on-dark: rgba(255, 255, 255, 0.78);
  --mt-on-dark-muted: rgba(255, 255, 255, 0.72);
  --mt-line-dark: rgba(255, 255, 255, 0.14);
  --mt-red: #e42225;
  --mt-blue: #497dae;
  --mt-yellow: #fecd0b;
}

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

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

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

/* :where() keeps the reset weak, so component margins (G04, G05) win. */
:where(.mt-page) figure {
  margin: 0;
}

.mt-page figcaption,
.mt-note {
  margin: 12px 0 0;
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mt-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mt-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

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

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

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

/* !important: the global link rule in custom.css sets display and colour on
   every link with a much higher specificity. */
.mt-button {
  display: inline-flex !important;
  align-items: 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;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mt-button--light {
  background: #fff;
  color: var(--portfolio-blue) !important;
}

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

.mt-button--outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff !important;
}

.mt-button--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.mt-button--blue {
  background: var(--portfolio-blue);
  color: #fff !important;
}

.mt-button--blue:hover {
  background: #2c33c9;
}

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

.mt-hero {
  position: relative;
  min-height: 720px;
  height: 100svh;
  max-height: 1100px;
  overflow: hidden;
  background: var(--mt-night);
  color: #fff;
}

.mt-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.mt-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 15, 18, 0.82) 0%, rgba(12, 15, 18, 0.45) 50%, rgba(12, 15, 18, 0.1) 100%),
    linear-gradient(0deg, rgba(12, 15, 18, 0.92) 0%, rgba(12, 15, 18, 0.2) 48%, rgba(12, 15, 18, 0.35) 100%);
}

.mt-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-block: 120px 28px;
}

.mt-hero__main {
  max-width: 900px;
}

.mt-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;
}

.mt-hero__lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.55;
}

.mt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.mt-hero .case-facts {
  margin-top: clamp(40px, 6vh, 72px);
}

.mt-hero__credit {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

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

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

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

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

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

.mt-section--dark figcaption,
.mt-note--on-dark {
  color: var(--mt-on-dark-muted);
}

.mt-head {
  margin-bottom: clamp(48px, 6vw, 88px);
}

.mt-h2 {
  max-width: 920px;
  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;
}

.mt-head__intro {
  max-width: 560px;
  margin: var(--case-intro-copy-gap, 32px) 0 0;
  color: var(--mt-body);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.65;
}

.mt-section--dark .mt-head__intro {
  color: var(--mt-on-dark);
}

@media (min-width: 1024px) {
  .mt-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: end;
  }

  .mt-head--split .case-eyebrow {
    grid-column: 1 / -1;
  }

  .mt-head--split .mt-head__intro {
    margin-top: 0;
  }
}

.mt-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--mt-body);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
}

.mt-copy p + p {
  margin-top: 22px;
}

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

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

.mt-start {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.mt-groups {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  background: var(--mt-grey);
}

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

.mt-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mt-groups li {
  position: relative;
  padding: 16px 0;
  border-bottom: 1px solid var(--case-line);
}

.mt-groups li span {
  display: block;
  color: var(--case-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.mt-groups li strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.mt-groups li.is-own {
  margin-inline: -16px;
  padding-inline: 16px;
  border-radius: 12px;
  border-bottom-color: transparent;
  background: #fff;
  box-shadow: inset 3px 0 0 var(--portfolio-blue);
}

.mt-groups li.is-own span {
  color: var(--portfolio-blue);
}

.mt-groups li em {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--portfolio-blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 02 Cube field: G02 ---------- */

.mt-g02 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 20px clamp(28px, 4vw, 56px);
  align-items: center;
}

.mt-g02__svg {
  display: block;
  width: 100%;
  height: auto;
}

.mt-g02__bg {
  fill: var(--mt-night);
  stroke: var(--mt-line-dark);
}

.mt-g02__wires line {
  stroke: #3b454c;
  stroke-width: 1;
}

.mt-g02__face {
  fill: #f7f7f2;
}

.mt-g02__code {
  fill: none;
  stroke: #9aa0a6;
  stroke-width: 1.4;
  stroke-dasharray: 1.6 1.2;
}

.mt-g02__tier {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  transition: opacity 0.3s ease;
}

.mt-g02__people {
  fill: #59646c;
}

.mt-g02[data-active] .mt-g02__tier {
  opacity: 0.16;
}

.mt-g02[data-active="stories"] .mt-g02__tier[data-tier="stories"],
.mt-g02[data-active="exhibits"] .mt-g02__tier[data-tier="exhibits"],
.mt-g02[data-active="kids"] .mt-g02__tier[data-tier="kids"] {
  opacity: 1;
}

.mt-g02__kicker {
  margin: 0 0 16px;
  color: var(--portfolio-blue-on-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mt-g02__tiers {
  display: grid;
  gap: 10px;
}

.mt-g02__tiers button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 2px 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--mt-line-dark);
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font-family: var(--case-font);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mt-g02__tiers button:hover,
.mt-g02__tiers button[aria-pressed="true"] {
  border-color: var(--portfolio-blue-on-dark);
  background: rgba(170, 178, 255, 0.1);
}

.mt-g02__tiers span {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border: 2px solid var(--portfolio-blue-on-dark);
  border-radius: 50%;
  color: var(--portfolio-blue-on-dark);
  font-size: 13px;
  font-weight: 700;
}

.mt-g02__tiers button[aria-pressed="true"] span {
  background: var(--portfolio-blue-on-dark);
  color: var(--mt-dark);
}

.mt-g02__tiers strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.mt-g02__tiers small {
  color: var(--mt-on-dark);
  font-size: 14px;
  line-height: 1.45;
}

.mt-g02__cats {
  margin: 20px 0 0;
  color: var(--mt-on-dark);
  font-size: 13px;
  line-height: 1.6;
}

.mt-g02__cats span {
  display: block;
  margin-bottom: 4px;
  color: var(--portfolio-blue-on-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-g02 > figcaption {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* Cubes pop in once, tier by tier, when the graphic comes into view. */
.mt-motion .mt-g02 use {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.mt-motion .mt-g02.is-played use {
  animation: mt-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes mt-pop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 02 Cube field: photos ---------- */

.mt-field-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  margin-top: clamp(64px, 8vw, 120px);
}

.mt-field-media__wide {
  grid-column: 1 / -1;
}

.mt-field-media__wide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 45%;
}

.mt-field-media > figure:not(.mt-field-media__wide) img,
.mt-field-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--mt-night);
}

.mt-photo img,
.mt-photo video {
  border-radius: 16px;
}

/* ---------- Key insight ---------- */

.mt-insight {
  max-width: 820px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-left: 28px;
  border-left: 3px solid var(--portfolio-blue);
}

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

.mt-insight p:not(.mt-insight__label) {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.mt-insight--on-dark {
  border-left-color: var(--portfolio-blue-on-dark);
}

.mt-insight--on-dark .mt-insight__label {
  color: var(--portfolio-blue-on-dark);
}

.mt-section--dark .mt-note {
  max-width: 640px;
  margin-top: 32px;
}

/* ---------- 03 Visitor journey: G01 ---------- */

.mt-visit__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.mt-visit__steps::before {
  content: "";
  position: absolute;
  top: 22px;
  right: calc(100% / 12);
  left: calc(100% / 12);
  height: 2px;
  background: rgba(58, 65, 228, 0.25);
}

.mt-visit__steps button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 4px 12px;
  border: 0;
  background: transparent;
  color: var(--case-ink);
  font-family: var(--case-font);
  text-align: center;
  cursor: pointer;
}

.mt-visit__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--portfolio-blue);
  border-radius: 50%;
  background: var(--mt-grey);
  color: var(--portfolio-blue);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mt-visit__steps strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.mt-visit__steps button:hover .mt-visit__num {
  background: #fff;
}

.mt-visit__steps button.is-active .mt-visit__num {
  background: var(--portfolio-blue);
  color: #fff;
}

.mt-visit__steps button.is-active strong {
  color: var(--portfolio-blue);
}

.mt-visit__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-top: 32px;
}

.mt-visit__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--mt-dark);
}

.mt-visit__video,
.mt-visit__image {
  width: 100%;
  height: 100%;
}

.mt-visit__video {
  object-fit: cover;
}

.mt-visit__image {
  padding: 4% 14%;
  object-fit: contain;
}

.mt-visit__image[hidden],
.mt-visit__video[hidden],
.mt-visit__toggle[hidden] {
  display: none;
}

.mt-visit__toggle,
.mt-g05__toggle {
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  font: 600 13px/1.2 var(--case-font);
  cursor: pointer;
}

.mt-visit__toggle {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(20, 25, 29, 0.78);
  color: #fff;
}

.mt-visit__toggle:hover {
  background: rgba(20, 25, 29, 0.95);
}

.mt-visit__count {
  margin: 0;
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mt-visit__copy {
  margin: 16px 0 0;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.mt-visit__source {
  margin: 20px 0 0;
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mt-film {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--case-line);
}

.mt-film__label {
  margin: 0;
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-film__text {
  max-width: 560px;
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

/* ---------- 04 App: design decisions ---------- */

.mt-decision {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 56px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--case-line);
}

.mt-decision:last-child {
  border-bottom: 1px solid var(--case-line);
}

.mt-decision__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--portfolio-blue);
  border-radius: 50%;
  color: var(--portfolio-blue);
  font-size: 13px;
  font-weight: 700;
}

.mt-decision__label {
  margin: 0;
  color: var(--portfolio-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.mt-pair {
  margin: 24px 0 0;
  border-top: 1px solid var(--case-line);
}

.mt-pair > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--case-line);
}

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

.mt-pair div:last-child dt {
  color: var(--portfolio-blue);
}

.mt-pair dd {
  margin: 6px 0 0;
  color: var(--mt-body);
  font-size: 16px;
  line-height: 1.6;
}

.mt-decision__after {
  margin: 18px 0 0;
  color: var(--case-muted);
  font-size: 15px;
  line-height: 1.6;
}

.mt-decision__media img {
  width: 100%;
  border: 1px solid var(--case-line);
  border-radius: 12px;
}

/* ---------- 04 App: G05 code to film ---------- */

.mt-g05 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr);
  gap: 24px clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 120px);
  padding: clamp(20px, 4vw, 56px);
  border-radius: 16px;
  background: var(--mt-grey);
}

.mt-g05 > figcaption {
  grid-column: 1 / -1;
  margin-top: 0;
}

.mt-g05__device {
  padding: clamp(10px, 1.6vw, 20px);
  border-radius: clamp(20px, 2.6vw, 32px);
  background: var(--mt-dark);
}

.mt-g05__screen {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #2b3034;
  perspective: 1400px;
}

.mt-g05__camera {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.5) 0 2.4%, transparent 4.5%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.45) 0 3%, transparent 5.5%),
    radial-gradient(circle at 76% 72%, rgba(255, 255, 255, 0.4) 0 2.6%, transparent 5%),
    radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.35) 0 3.2%, transparent 6%),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.3) 0 1.8%, transparent 4%),
    linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, 0.06) 9% 9.3%, transparent 9.3% 31%, rgba(255, 255, 255, 0.06) 31% 31.3%, transparent 31.3% 69%, rgba(255, 255, 255, 0.06) 69% 69.3%, transparent 69.3% 91%, rgba(255, 255, 255, 0.06) 91% 91.3%, transparent 91.3%),
    #262b2f;
  filter: blur(1.5px);
  transition: opacity 0.6s ease;
}

.mt-g05__card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1);
}

.mt-g05__front,
.mt-g05__back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mt-g05__back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f4f4f4;
  color: var(--case-ink);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600;
  transform: rotateY(180deg);
}

.mt-g05__back .mt-qr {
  width: 42%;
}

.mt-qr {
  display: block;
  width: 100%;
  height: auto;
  fill: #1d2429;
}

.mt-g05__code {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32%;
  border-radius: 4px;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%);
  transition: transform 0.8s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.5s ease 0.2s;
}

.mt-g05__film {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.04em;
  background: #101316;
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.5s ease 0.35s;
}

/* The logo idea: three coloured letters drift apart and add up to white
   where they overlap. */
.mt-g05__type {
  display: inline-grid;
}

.mt-g05__type b {
  grid-area: 1 / 1;
  font-weight: inherit;
  mix-blend-mode: screen;
}

@supports (mix-blend-mode: plus-lighter) {
  .mt-g05__type b {
    mix-blend-mode: plus-lighter;
  }
}

.mt-g05__type b:nth-child(1) {
  color: var(--mt-red);
}

.mt-g05__type b:nth-child(2) {
  color: var(--mt-blue);
}

.mt-g05__type b:nth-child(3) {
  color: var(--mt-yellow);
}

.mt-g05__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.mt-g05__frame i {
  position: absolute;
  width: 22%;
  height: 22%;
  border: 3px solid #fff;
}

.mt-g05__frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.mt-g05__frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-bottom: 0;
  border-left: 0;
}

.mt-g05__frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-top: 0;
  border-right: 0;
}

.mt-g05__frame i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-top: 0;
  border-left: 0;
}

.mt-g05__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 4%;
  height: 13%;
  padding-inline: 5%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mt-g05__play {
  flex: none;
  width: 0;
  height: 0;
  border-top: 0.55em solid transparent;
  border-bottom: 0.55em solid transparent;
  border-left: 0.9em solid #fff;
  font-size: clamp(10px, 1.2vw, 16px);
}

.mt-g05__progress {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff 0 38%, rgba(255, 255, 255, 0.3) 38%);
}

.mt-g05__share {
  flex: none;
  width: clamp(18px, 2.4vw, 28px);
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 4px;
  background:
    linear-gradient(#fff 0 0) 22% 22% / 26% 26% no-repeat,
    linear-gradient(#fff 0 0) 78% 22% / 26% 26% no-repeat,
    linear-gradient(#fff 0 0) 22% 78% / 26% 26% no-repeat;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* States */
.mt-g05[data-state="scan"] .mt-g05__frame {
  opacity: 1;
  animation: mt-lock 1.5s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}

.mt-g05:not([data-state="scan"]) .mt-g05__camera {
  opacity: 0;
}

.mt-g05:not([data-state="scan"]) .mt-g05__code {
  opacity: 0;
  transform: translate(-50%, -50%) scale(3.2);
}

.mt-g05:not([data-state="scan"]) .mt-g05__film {
  opacity: 1;
}

.mt-g05[data-state="watch"] .mt-g05__bar,
.mt-g05[data-state="back"] .mt-g05__bar {
  opacity: 1;
}

.mt-g05[data-state="share"] .mt-g05__card {
  transform: rotateY(180deg);
}

.mt-g05[data-state="back"] .mt-g05__share {
  box-shadow: 0 0 0 4px rgba(170, 178, 255, 0.55);
}

.mt-g05:not([data-state="scan"]) .mt-g05__type b:nth-child(1) {
  animation: mt-drift-a 3.2s ease-in-out infinite alternate;
}

.mt-g05:not([data-state="scan"]) .mt-g05__type b:nth-child(3) {
  animation: mt-drift-b 3.2s ease-in-out infinite alternate;
}

.mt-g05__type:nth-child(2) b {
  animation-delay: -0.8s !important;
}

.mt-g05__type:nth-child(3) b {
  animation-delay: -1.6s !important;
}

.mt-g05__type:nth-child(4) b {
  animation-delay: -2.4s !important;
}

@keyframes mt-lock {
  from {
    width: 74%;
    opacity: 0.35;
  }

  70% {
    width: 39%;
    opacity: 1;
  }

  to {
    width: 40%;
    opacity: 1;
  }
}

@keyframes mt-drift-a {
  from {
    transform: translate(-0.09em, -0.04em);
  }

  to {
    transform: none;
  }
}

@keyframes mt-drift-b {
  from {
    transform: translate(0.08em, 0.05em);
  }

  to {
    transform: none;
  }
}

.mt-g05__kicker {
  margin: 0 0 16px;
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-g05__steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mt-g05__steps button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--case-ink);
  font-family: var(--case-font);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.mt-g05__steps button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.mt-g05__steps button[aria-pressed="true"] {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--portfolio-blue);
}

.mt-g05__steps span {
  grid-row: span 2;
  padding-top: 3px;
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

.mt-g05__steps small {
  color: var(--case-muted);
  font-size: 14px;
  line-height: 1.45;
}

.mt-g05__toggle {
  margin-top: 16px;
  background: #fff;
  color: var(--portfolio-blue);
  box-shadow: inset 0 0 0 1px var(--case-line);
}

.mt-g05__toggle[hidden] {
  display: none;
}

/* ---------- 04 App: final screens ---------- */

.mt-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(56px, 7vw, 96px);
}

.mt-screens img {
  width: 100%;
  border-radius: 12px;
}

.mt-screens__caption {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- 05 Catalogue ---------- */

.mt-catalogue-cover img {
  width: 100%;
  border-radius: 12px;
}

.mt-codes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mt-codes img {
  width: 100%;
  border: 1px solid var(--case-line);
  border-radius: 12px;
  background: #fff;
}

.mt-codes__caption {
  margin: 12px 0 0;
  color: var(--case-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mt-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(32px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 80px);
}

.mt-columns p {
  margin: 0;
  color: var(--mt-body);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
}

/* ---------- 06 Fifteen years: G03 timeline ---------- */

.mt-g03 {
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--case-line);
  border-radius: 16px;
  background: #fff;
}

.mt-g03__kicker,
.mt-g04__kicker {
  margin: 0 0 24px;
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-g03__chart {
  --label-col: 120px;
}

.mt-g03__axis {
  position: relative;
  height: 24px;
  margin-left: var(--label-col);
  border-bottom: 1px solid var(--case-line);
}

.mt-g03__axis span {
  position: absolute;
  bottom: 6px;
  left: calc((var(--s) - 2011) / 16 * 100%);
  color: var(--case-muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mt-g03__axis span::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  height: 6px;
  border-left: 1px solid rgba(35, 35, 35, 0.3);
}

.mt-g03__row {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  padding-block: 18px;
  border-bottom: 1px solid var(--case-line);
}

.mt-g03__label {
  margin: 0;
  color: var(--case-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-g03__track {
  position: relative;
  height: calc(28px + var(--lanes, 1) * 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mt-g03__track li {
  position: absolute;
  top: 0;
  left: calc((var(--s) - 2011) / 16 * 100%);
  width: max(12px, calc((var(--e) - var(--s)) / 16 * 100%));
}

.mt-g03__bar {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: #b9bcc2;
  transform-origin: left center;
}

.mt-g03__track li.is-own .mt-g03__bar {
  background: var(--portfolio-blue);
}

.mt-g03__track li.is-soft .mt-g03__bar {
  background: #aab2ff;
}

.mt-g03__track li.is-point .mt-g03__bar {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9a400;
}

.mt-g03__text {
  position: absolute;
  top: calc(20px + var(--lane, 0) * 44px);
  left: 0;
  color: var(--case-muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.mt-g03__text strong {
  display: block;
  color: var(--case-ink);
  font-size: 13px;
  font-weight: 600;
}

.mt-g03__text time {
  display: none;
}

.mt-g03__track li.is-end .mt-g03__text {
  right: 0;
  left: auto;
  text-align: right;
}

.mt-g03__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--case-muted);
  font-size: 12px;
  font-weight: 600;
}

.mt-g03__swatch {
  width: 24px;
  height: 10px;
  border-radius: 5px;
  background: var(--portfolio-blue);
}

.mt-motion .mt-g03:not(.is-played) .mt-g03__bar {
  transform: scaleX(0);
}

.mt-motion .mt-g03.is-played .mt-g03__bar {
  transition: transform 0.9s cubic-bezier(0.3, 0.8, 0.3, 1);
  transition-delay: calc((var(--s) - 2011) * 0.06s);
}

/* Below 1100 px the lanes get too narrow: the timeline becomes a list. */
@media (max-width: 1099px) {
  .mt-g03__axis {
    display: none;
  }

  .mt-g03__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mt-g03__track {
    display: grid;
    gap: 12px;
    height: auto;
  }

  .mt-g03__track li {
    position: static;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    width: auto;
  }

  .mt-g03__bar,
  .mt-g03__track li.is-point .mt-g03__bar {
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50%;
  }

  .mt-g03__text {
    position: static;
    white-space: normal;
  }

  .mt-g03__track li.is-end .mt-g03__text {
    text-align: left;
  }

  .mt-g03__text time {
    display: block;
    margin-top: 2px;
    color: var(--portfolio-blue);
    font-weight: 600;
  }
}

/* ---------- 06 Fifteen years: text and photos ---------- */

.mt-years {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(56px, 7vw, 96px);
}

.mt-years__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mt-years__photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- 06 Fifteen years: media façade teaser ---------- */

.mt-facade {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--case-line);
}

.mt-facade video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--mt-night);
}

.mt-facade__label,
.mt-platforms__label {
  margin: 0;
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.mt-facade__copy p:not(.mt-facade__label) {
  margin: 16px 0 0;
  color: var(--mt-body);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
}

/* ---------- 06 Fifteen years: G04 app generations ---------- */

.mt-g04 {
  margin-top: clamp(64px, 8vw, 120px);
  padding: clamp(20px, 3vw, 40px);
  border-radius: 16px;
  background: var(--mt-grey);
}

.mt-g04__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}

.mt-g04__meta {
  margin: 16px 0 0;
  color: var(--case-muted);
  font-size: 14px;
  line-height: 1.5;
}

.mt-g04__meta span {
  display: block;
  color: var(--portfolio-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mt-g04__meta strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--case-ink);
  font-size: 17px;
  font-weight: 600;
}

.mt-g04 > figcaption {
  margin-top: 24px;
}

.mt-phone {
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  padding: 7px;
  border-radius: 26px;
  background: var(--mt-dark);
}

.mt-phone img {
  width: 100%;
  border-radius: 20px;
}

/* Before/after slider: 2011 library on the left, 2014 redesign on the right. */
.mt-compare {
  --pad: clamp(8px, 1.2vw, 14px);
  position: relative;
  padding: var(--pad);
  border-radius: 20px;
  background: var(--mt-dark);
}

.mt-compare > img,
.mt-compare__before {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.mt-compare > img {
  object-fit: cover;
}

.mt-compare__before {
  position: absolute;
  inset: var(--pad);
  width: auto;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0);
}

.mt-compare__before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mt-compare__handle {
  position: absolute;
  top: var(--pad);
  bottom: var(--pad);
  left: calc(var(--pad) + (100% - 2 * var(--pad)) * var(--pos) / 100);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}

.mt-compare__handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--portfolio-blue);
  font-size: 18px;
  font-weight: 700;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.mt-compare__label input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.mt-compare:focus-within {
  outline: 3px solid var(--portfolio-blue);
  outline-offset: 3px;
}

.mt-compare__tag {
  position: absolute;
  top: calc(var(--pad) + 10px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 25, 29, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.mt-compare__tag--left {
  left: calc(var(--pad) + 10px);
}

.mt-compare__tag--right {
  right: calc(var(--pad) + 10px);
}

/* ---------- 06 Fifteen years: App 3.0 ---------- */

.mt-app3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 120px);
  padding: clamp(28px, 5vw, 72px);
  border-radius: 16px;
  background: var(--mt-dark);
  color: #fff;
}

.mt-app3 h3 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mt-app3__copy p:not(.case-eyebrow) {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--mt-on-dark);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
}

.mt-app3__copy .mt-button {
  margin-top: 32px;
}

.mt-app3__screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mt-app3__screens .mt-phone {
  max-width: 240px;
  background: #0c0f12;
}

.mt-app3__caption {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--mt-on-dark-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mt-platforms {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}

.mt-tablet img {
  width: 100%;
  max-width: 420px;
  padding: clamp(8px, 1vw, 12px);
  border-radius: 28px;
  background: var(--mt-dark);
}

.mt-platforms ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.mt-platforms li {
  padding: 18px 0;
  border-top: 1px solid var(--case-line);
}

.mt-platforms strong {
  font-size: 17px;
  font-weight: 600;
}

.mt-platforms li p {
  margin: 6px 0 0;
  color: var(--mt-body);
  font-size: 15px;
  line-height: 1.6;
}

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

.mt-outcome__label {
  margin: 0 0 16px;
  color: var(--portfolio-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.mt-outcome li {
  padding: 20px 0;
  border-top: 1px solid var(--case-line);
}

.mt-outcome strong {
  font-size: 18px;
  font-weight: 600;
}

.mt-outcome li p {
  margin: 8px 0 0;
  color: var(--mt-body);
  font-size: 16px;
  line-height: 1.6;
}

.mt-outcome a,
.mt-page .case-reflection a {
  color: var(--portfolio-blue) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.mt-page .case-reflection p + p {
  margin-top: 18px;
}

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

.mt-motion .mt-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

@media (max-width: 1023px) {
  .mt-start,
  .mt-years,
  .mt-app3,
  .mt-facade {
    grid-template-columns: 1fr;
  }

  .mt-g02,
  .mt-g05 {
    grid-template-columns: 1fr;
  }

  .mt-decision {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .mt-decision__media {
    grid-column: 2;
  }

  .mt-visit__panel {
    grid-template-columns: 1fr;
  }

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

  .mt-g04__item--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .mt-hero {
    height: auto;
    min-height: 100svh;
    max-height: none;
  }

  .mt-hero__photo {
    object-position: 38% 40%;
  }

  .mt-hero__scrim {
    background:
      linear-gradient(0deg, rgba(12, 15, 18, 0.96) 0%, rgba(12, 15, 18, 0.8) 60%, rgba(12, 15, 18, 0.5) 100%);
  }

  .mt-hero__content {
    padding-block: 104px 20px;
  }

  .mt-hero__lead {
    margin-top: 20px;
  }

  .mt-hero__actions {
    margin-top: 28px;
  }

  .mt-hero__credit {
    text-align: left;
  }

  .mt-visit__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 8px;
  }

  .mt-visit__steps::before {
    display: none;
  }

  .mt-visit__steps strong {
    font-size: 14px;
  }

  .mt-visit__num {
    width: 40px;
    height: 40px;
  }

  .mt-visit__image {
    padding: 3% 8%;
  }

  .mt-field-media,
  .mt-screens,
  .mt-columns,
  .mt-outcome ul,
  .mt-years__photos,
  .mt-platforms,
  .mt-platforms ul {
    grid-template-columns: 1fr;
  }

  .mt-tablet img {
    max-width: 300px;
    margin-inline: auto;
  }

  .mt-field-media__wide img {
    aspect-ratio: 3 / 2;
  }

  .mt-decision {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mt-decision__media {
    grid-column: auto;
  }

  .mt-codes {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }

  .mt-codes figure {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }

  .mt-g04__grid {
    gap: 24px 16px;
  }

  .mt-app3__screens {
    gap: 12px;
  }

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

@media (max-width: 380px) {
  .mt-hero__actions .mt-button {
    padding-inline: 20px;
  }

  .mt-visit__steps strong {
    font-size: 13px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .mt-page *,
  .mt-page *::before,
  .mt-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mt-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
