.m01 {
  --m01-silver: #e2e5eb;
  --m01-gold: #f5c880;
  --m01-gutter: clamp(16px, 4.2vw, 84px);
  --m01-title-size: clamp(34px, 5.1vw, 88px);
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  padding: clamp(108px, 11vh, 146px) var(--m01-gutter) clamp(36px, 5vw, 74px);
  text-align: center;
  background:
    linear-gradient(180deg, transparent 55%, #090a0c 100%),
    radial-gradient(ellipse 63% 52% at 7% 17%, #6671844b, transparent 82%),
    radial-gradient(ellipse 58% 61% at 96% 20%, #976d3c4a, transparent 81%),
    linear-gradient(180deg, #1a1b1f, #111217 56%, #090a0c);
}

.m01-editorial {
  display: grid;
  justify-items: center;
  gap: clamp(15px, 2.3vh, 26px);
  width: min(100%, 1260px);
}

html:lang(en) .m01-editorial { width: min(100%, 1320px); }

.m01 .m01-title {
  width: 100%;
  font-size: var(--m01-title-size);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.046em;
  color: var(--m01-silver);
}

.m01-title-line {
  display: block;
  text-wrap: balance;
}

.m01-title-line + .m01-title-line {
  margin-top: .075em;
  font-size: .81em;
  letter-spacing: -.033em;
}

.m01-prefix, .m01-gold {
  display: inline-block;
  white-space: nowrap;
}

.m01-gold { color: var(--m01-gold); }

@supports (background-clip: text) {
  .m01-title-line {
    background: linear-gradient(168deg, #fafafa 10%, #c4cbd6 62%, #ecedf0 93%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .m01-prefix {
    background: linear-gradient(168deg, #fafafa 10%, #c4cbd6 62%, #ecedf0 93%);
    background-clip: text;
  }

  .m01-gold {
    background:
      linear-gradient(111deg, transparent 38%, #ffe0a894 45%, #fff9e8 49% 51%, #ffe1a8b0 54%, transparent 62%) 100% 0 / 245% 100% no-repeat,
      linear-gradient(161deg, #ffe6b4 12%, #dbaa63 58%, #f3c684 90%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .m01-tagline {
    background:
      linear-gradient(110deg, transparent 38%, #fafcff 49%, #c6d3e9ad 54%, transparent 63%) 100% 0 / 225% 100% no-repeat,
      linear-gradient(167deg, #fff 8%, #c6cdd8 65%, #e0e3ea 93%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.m01 .m01-action {
  justify-content: center;
  min-height: 50px;
  padding: 11px clamp(20px, 3.2vw, 40px);
  border: 1px solid #f3d6a3;
  border-radius: 8px;
  background: linear-gradient(151deg, #e8e4da 3%, #f2d6a3 31%, #d9a968 64%, #eed1a0 95%);
  color: #211911;
  box-shadow: inset 0 1px #fff1ce, inset 0 -2px #895a3966, 0 3px #61432e, 0 10px 24px #0008;
  transform: translate(calc(var(--tx) * .26), calc(var(--ty) * .4));
}

.m01 .m01-action span,
.m01 .m01-action:is(:hover, :focus-visible) span {
  font-size: clamp(.88rem, 1.5vw, 1rem);
  line-height: 1.24;
  transform: none;
}

.m01 .m01-action::before {
  background: radial-gradient(ellipse 50% 105% at 50% 0, #fffef5e6, #e1ebf0a3 29%, transparent 78%);
  transform: translateX(-112%);
}

.m01 .m01-action:is(:hover, :focus-visible) {
  box-shadow: inset 0 1px #fff1ce, inset 0 -2px #895a3966, 0 3px #61432e, 0 9px 25px #0009;
}

.m01 .m01-action:is(:hover, :focus-visible)::before { transform: translateX(112%); }
.m01 .m01-action:active { transform: translateY(2px); }

.m01-film {
  --m01-frame-bleed: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, clamp(760px, 112svh, 1160px));
  margin-top: clamp(15px, 2.15vh, 24px);
}

.m01-film::before {
  position: absolute;
  z-index: -1;
  inset: -6% -8%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse 49% 49% at 21% 44%, #6c7b932c, transparent 96%),
    radial-gradient(ellipse 51% 47% at 80% 48%, #ac7a3c27, transparent 96%);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 65%, transparent);
}

.m01-frame {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  justify-self: stretch;
  margin-inline: calc(-1 * var(--m01-frame-bleed));
  aspect-ratio: 16 / 9;
  border-radius: clamp(5px, .85vw, 14px);
}

.m01-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 17px 3px #101116ac;
}

@supports (mask-composite: intersect) {
  .m01-frame {
    --edge-x: clamp(7px, 2.2vw, 29px);
    --edge-y: clamp(5px, 1.3vw, 19px);
    mask-image:
      linear-gradient(90deg, transparent, #000 var(--edge-x), #000 calc(100% - var(--edge-x)), transparent),
      linear-gradient(180deg, transparent, #000 var(--edge-y), #000 calc(100% - var(--edge-y)), transparent);
    mask-composite: intersect;
  }

  .m01-frame::after { display: none; }
}

.m01-video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.m01-controls {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  z-index: 1;
  display: flex;
  margin-inline-start: calc(clamp(6px, 1vw, 14px) - var(--m01-frame-bleed));
  margin-block-end: clamp(5px, .9vw, 12px);
}

.m01-control {
  --m01-control-border: #c1cce144;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e5e8ed;
  transition: color .2s;
}

.m01-control::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7.25px;
  border: 1px solid var(--m01-control-border);
  border-radius: 6px;
  background: linear-gradient(157deg, #30333a, #1b1c21 80%);
  transition: border-color .2s;
}

.m01-play span,
.m01[data-audible] .m01-sound span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.m01-sound { --m01-control-border: #d5b27b66; color: #f7d9a7; }
.m01:not([data-audible]) .m01-sound {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding-inline: 13px;
  font: 700 .82rem/1.2 var(--ui);
  white-space: nowrap;
}

.m01-control:is(:hover, :focus-visible) { color: #ffe6ba; }
.m01-control:is(:hover, :focus-visible)::before { border-color: #f0c17e; }
.m01-action, .m01-control { -webkit-tap-highlight-color: #efc69032; }
.m01-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m01[data-playing] .m01-play-icon,
.m01:not([data-playing]) .m01-pause-icon,
.m01[data-audible] .m01-mute-icon,
.m01:not([data-audible]) .m01-waves { display: none; }

.m01 .m01-status {
  margin: 8px 0 0 auto;
  font-size: .85rem;
  text-align: end;
}

.m01 .m01-tagline {
  margin-top: clamp(15px, 2.45vh, 28px);
  color: #edeef1;
  font: 500 clamp(23px, 2.9vw, 43px)/1.18 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}

@media (width > 900px) {
  .m01 {
    --m01-desktop-gap: calc(clamp(15px, 2.15vh, 24px) * .9);
    /* Keep 60% of the previous gap from the navigation underline to the title. */
    padding-top: calc(clamp(108px, 11vh, 146px) * .45 + (66px - var(--m01-title-size) * .156) * .55);
    /* The gap to the next rule also includes the MC01 section's top padding. */
    padding-bottom: calc(clamp(36px, 5vw, 74px) * .6 - clamp(34px, 4.6vw, 82px) * .4 - .5px);
  }

  /* The title's line box extends below the visible capital letters. */
  .m01-editorial { gap: calc(var(--m01-desktop-gap) - var(--m01-title-size) * .132); }
  .m01-film { margin-top: var(--m01-desktop-gap); }
}

@media (min-width: 1200px) {
  .m01-film { width: min(calc(100vw - 340px), clamp(760px, 112svh, 1160px)); }
}

@media (max-width: 670px) {
  .m01 { padding-top: clamp(90px, 11vh, 112px); }
  .m01 .m01-title { font-size: clamp(29px, 6.4vw, 43px); }
  .m01-film { --m01-frame-bleed: calc(var(--m01-gutter) / 2); }
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .page-home:not(.motion-off) .m01-tagline:not([data-m01-revealed]) { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home:not(.motion-off) .m01-title-line {
    animation: none;
  }

  .page-home:not(.motion-off) .m01-title-line:first-child { background: none; }

  .page-home:not(.motion-off) .m01-prefix {
    animation: m01-review-open 1.35s cubic-bezier(.28,.67,.16,1) both;
  }

  .page-home:not(.motion-off) .m01-gold {
    animation: m01-review-open 1.3s .18s cubic-bezier(.28,.67,.16,1) both,
      m01-review-sheen 4s .82s ease-in-out infinite;
  }

  .page-home:not(.motion-off) .m01-title-line + .m01-title-line {
    animation: m01-review-answer 1.6s .43s cubic-bezier(.29,.62,.13,1) both;
  }

  .page-home:not(.motion-off) .m01-tagline[data-m01-revealed] {
    animation: m01-review-signature 1.45s .10s var(--ease) both,
      m01-review-sheen 2.1s .4s ease-out both;
  }
}

@keyframes m01-review-open {
  0% {
    clip-path: polygon(-8% 112%, -8% 112%, -8% 112%, -8% 112%);
    transform: perspective(900px) translate(-.16em, .32em) rotateX(-19deg);
    filter: blur(.085em);
    opacity: 0;
  }
  55% { opacity: 1; }
  100% {
    clip-path: polygon(-8% -15%, 117% -15%, 105% 115%, -8% 115%);
    transform: none;
    filter: none;
    opacity: 1;
  }
}

@keyframes m01-review-answer {
  from {
    clip-path: polygon(102% -15%, 113% -15%, 113% 115%, 112% 115%);
    transform: perspective(1100px) translate(.18em, .28em) rotateX(-13deg);
    filter: blur(.08em);
    opacity: .2;
  }
  to {
    clip-path: polygon(-17% -15%, 113% -15%, 113% 115%, -7% 115%);
    transform: none;
    filter: none;
    opacity: 1;
  }
}

@keyframes m01-review-sheen {
  0%, 5% { background-position: 100% 0, 0 0; }
  47%, 100% { background-position: 0 0, 0 0; }
}

@keyframes m01-review-signature {
  from {
    clip-path: inset(0 13% 95% round 40%);
    transform: translateY(.35em) scale(.96);
    filter: blur(.075em);
    opacity: .22;
  }
  to {
    clip-path: inset(-15%);
    transform: none;
    filter: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m01 .m01-action, .m01 .m01-action::before, .m01-control, .m01-control::before { transition: none; }
}

@media (forced-colors: active) {
  .m01-title-line, .m01-gold, .m01-prefix, .m01-tagline { -webkit-text-fill-color: CanvasText; }
  .m01 .m01-action, .m01-control { color: ButtonText; }
  .m01 .m01-action, .m01-control::before { border-color: ButtonText; }
  .m01-control::before { background: ButtonFace; }
}
