:root {
  --m6-page-bg: #fff;
  --m6-ink: #0d0f12;
  --m6-muted: #62666d;
}

.m6-page {
  overflow: clip;
  width: 100%;
  background: var(--m6-page-bg);
  color: var(--m6-ink);
}

.m6-hero,
.m6-highlights__panel {
  position: relative;
  min-height: 100svh;
}

.m6-picture,
.m6-picture img,
.m6-video {
  display: block;
  width: 100%;
  height: 100%;
}

.m6-picture img,
.m6-video {
  object-fit: cover;
}

.m6-hero > .m6-picture {
  position: absolute;
  inset: 0;
}

.m6-hero__copy,
.m6-highlights__copy {
  position: absolute;
  z-index: 1;
  top: clamp(7rem, 13vh, 10rem);
  left: 50%;
  width: min(90vw, 72rem);
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 14px rgb(0 0 0 / 45%);
}

.m6-hero__copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 500;
}

.m6-hero__copy p,
.m6-highlights__copy p {
  margin: .5rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
}

.m6-localnav {
  position: sticky;
  z-index: 20;
  top: var(--site-header-height, 64px);
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1rem 4vw;
  border-bottom: 1px solid rgb(0 0 0 / 10%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(16px);
}

.m6-localnav a {
  color: inherit;
  text-decoration: none;
}

.m6-highlights__panel[hidden] {
  display: none;
}

.m6-highlights__panel > .m6-picture,
.m6-highlights__panel > .m6-video {
  position: absolute;
  inset: 0;
}

.m6-highlights__controls {
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding: 1.25rem;
}

.m6-highlights__controls button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: .5rem;
  background: transparent;
  color: var(--m6-muted);
}

.m6-highlights__controls button[aria-selected="true"] {
  border-bottom-color: currentColor;
  color: var(--m6-ink);
}

.m6-chapter {
  background: #fff;
}

.m6-module {
  padding: clamp(4rem, 4vw, 6rem) max(4vw, calc((100vw - 1720px) / 2));
}

.m6-module__heading {
  margin: 0 auto clamp(2rem, 5vw, 5rem);
  text-align: center;
}

.m6-module__heading h2,
.m6-module__copy h2,
.m6-module__copy h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 450;
  line-height: 1.12;
}

.m6-module__heading p,
.m6-module__copy p {
  max-width: 48rem;
  margin: 1rem auto 0;
  color: var(--m6-muted);
  font-size: clamp(.95rem, 1.2vw, 1.25rem);
  line-height: 1.7;
}

.m6-module__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: min(72vw, 930px);
  background: #f4f4f4;
}

.m6-module__media,
.m6-module__media > .m6-picture,
.m6-module__media > .m6-video {
  width: 100%;
  height: 100%;
}

.m6-module__media {
  position: absolute;
  inset: 0;
}

.m6-module__copy {
  position: absolute;
  z-index: 2;
  top: clamp(2rem, 5vw, 5rem);
  left: 50%;
  width: min(88%, 70rem);
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 14px rgb(0 0 0 / 45%);
}

.m6-module__copy p {
  color: inherit;
}

.m6-module__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem clamp(.75rem, 1.8vw, 2rem);
  width: min(88%, 72rem);
  margin: 1.5rem auto 0;
  border-bottom: 1px solid rgb(13 15 18 / 20%);
}

.m6-module__description {
  width: min(88%, 64rem);
  margin: 1.5rem auto 0;
  color: var(--m6-muted);
  font-size: clamp(.95rem, 1.2vw, 1.25rem);
  line-height: 1.7;
  text-align: center;
}

.m6-module__description:empty {
  display: none;
}

.m6-module__description p {
  margin: 0;
}

.m6-state-button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: .6rem .2rem;
  background: transparent;
  color: var(--m6-muted);
  cursor: pointer;
}

.m6-state-button[aria-selected="true"] {
  border-bottom-color: currentColor;
  color: var(--m6-ink);
  font-weight: 600;
}

.m6-state-button__swatch {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid rgb(0 0 0 / 16%);
  border-radius: 50%;
  background: var(--state-swatch);
  box-shadow: 0 0 0 3px #fff;
}

.m6-module--colour-selector .m6-module__stage {
  min-height: min(62vw, 820px);
}

.m6-module--full-bleed {
  padding-top: 0;
}

.m6-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  max-width: 1560px;
  margin: 0 auto;
}

.m6-feature-grid__item {
  overflow: hidden;
  background: #f5f5f5;
}

.m6-feature-grid__media {
  aspect-ratio: 768 / 550;
}

.m6-feature-grid__media .m6-picture img {
  object-fit: cover;
}

.m6-feature-grid__copy {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.m6-feature-grid__copy h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2.1rem);
  font-weight: 500;
}

.m6-feature-grid__copy p {
  margin: .8rem 0 0;
  color: var(--m6-muted);
  line-height: 1.65;
}

.m6-module__metrics {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.m6-module__metrics li {
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 400;
}

.m6-configuration {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-height: 48vw;
  padding: 3.5vw 9.2vw 6vw;
  background: #555563;
  color: #fff;
}

.m6-footnotes > h2 {
  text-align: center;
}

.m6-configuration > header {
  width: 36vw;
  text-align: left;
}

.m6-configuration > header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.75rem);
  font-weight: 450;
  line-height: 1.2;
}

.m6-configuration__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1vw 2vw;
  width: 36vw;
  margin-top: 2vw;
}

.m6-configuration__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 0;
}

.m6-configuration__item h3 {
  margin: 0;
  padding: .2em .5em;
  border-radius: 3px;
  background: rgb(240 240 245 / 66%);
  color: #101115;
  font-size: clamp(.8rem, 1.05vw, 1.3rem);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.m6-configuration__item p {
  margin: auto 0 .25em;
  padding-top: .7em;
  color: #fff;
  font-size: clamp(.8rem, 1.05vw, 1.3rem);
  line-height: 1.4;
}

.m6-configuration__item strong {
  color: #fff;
  font-size: clamp(1.5rem, 2.1vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.m6-configuration__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  margin: 0;
}

.m6-configuration__media img {
  object-position: right center;
}

.m6-footnotes {
  padding: clamp(4rem, 8vw, 8rem) max(5vw, calc((100vw - 1440px) / 2));
  background: #f7f7f7;
  color: #777b82;
}

.m6-footnotes h2 {
  color: var(--m6-ink);
}

.m6-footnotes ol {
  margin: 2.5rem 0 0;
  padding-left: 1.6rem;
}

.m6-footnotes li {
  margin-top: .7rem;
  font-size: .78rem;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .m6-localnav {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .m6-hero__copy,
  .m6-highlights__copy {
    top: 6.5rem;
  }

  .m6-module {
    padding: 5rem 0;
  }

  .m6-module__heading {
    padding: 0 1.25rem;
  }

  .m6-module__stage,
  .m6-module--colour-selector .m6-module__stage {
    min-height: 118vw;
  }

  .m6-module__copy {
    top: 2rem;
  }

  .m6-module__copy h2,
  .m6-module__copy h3 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .m6-module__controls {
    width: auto;
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .m6-module__description {
    width: auto;
    margin-right: 1.25rem;
    margin-left: 1.25rem;
  }

  .m6-module__metrics {
    gap: .8rem;
  }

  .m6-feature-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .m6-configuration {
    min-height: 150vw;
    padding: 2rem 1.25rem 3rem;
  }

  .m6-configuration::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgb(26 28 40 / 55%), rgb(26 28 40 / 65%));
  }

  .m6-configuration > header {
    width: 100%;
  }

  .m6-configuration__grid {
    width: 100%;
    gap: 1.25rem 1rem;
    margin-top: 1.5rem;
  }

  .m6-configuration__media img {
    object-position: center;
  }

  .m6-footnotes {
    padding: 4rem 1.25rem;
  }
}
