.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.dm-shell {
  width: var(--content);
  margin: 0 auto;
}

.dm-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.42;
  pointer-events: none;
}

.dm-film-track {
  position: relative;
  height: 190svh;
}

.dm-film-track-hero {
  height: 230svh;
}

.dm-film-track-interface {
  height: 200svh;
}

.dm-film-track-showreel {
  height: 620svh;
}

.dm-film-track-close {
  height: 210svh;
}

.dm-film-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 680px;
  overflow: clip;
  isolation: isolate;
}

.dm-film-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  background: var(--paper-warm);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.dm-film-media video,
.dm-interface-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dm-hero .dm-film-media {
  background-image: url("./assets/imagery/web-motion/design-media/primus-design-media-hero-poster.webp");
}

.dm-evolution .dm-film-media {
  background-image: url("./assets/imagery/web-motion/design-media/primus-traditional-to-digital-poster.webp");
}

.dm-interface-media {
  background-image: url("./assets/imagery/web-motion/design-media/primus-interface-motion-film-poster.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.dm-showreel .dm-film-media {
  background-color: var(--ink);
  background-image: url("./assets/imagery/web-motion/design-media/primus-motion-showreel-poster.webp?v=20260730-4");
  background-size: contain;
}

.dm-showreel .dm-film-media video {
  object-fit: contain;
  object-position: center;
}

.dm-close .dm-film-media {
  background-image: url("./assets/imagery/web-motion/design-media/primus-design-media-close-poster.webp");
}

.dm-hero-wash {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      oklch(0.985 0.006 120 / 0.98) 0%,
      oklch(0.985 0.006 120 / 0.88) 27%,
      oklch(0.985 0.006 120 / 0.24) 57%,
      transparent 76%
    );
  pointer-events: none;
}

.dm-hero-copy {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 100px);
  padding-top: calc(var(--header-height) + 11svh);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.dm-hero-copy h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(72px, 10vw, 156px);
  font-weight: 780;
  line-height: var(--display-leading);
}

.dm-hero-statement {
  max-width: 720px;
  margin: 44px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 720;
  line-height: var(--heading-leading);
}

.dm-hero-intro {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.dm-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.dm-actions .button-primary,
.dm-close-copy .button-primary {
  background: var(--ink);
  color: var(--paper);
}

.dm-actions .button-primary:hover,
.dm-actions .button-primary:focus-visible,
.dm-close-copy .button-primary:hover,
.dm-close-copy .button-primary:focus-visible {
  background: var(--coral);
}

.dm-hero-index {
  position: relative;
  margin: 0 24px 24px;
  z-index: 3;
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.dm-hero {
  height: auto;
  min-height: 100svh;
}

.dm-identity,
.dm-cross-media {
  position: relative;
  padding: 150px 0;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    var(--canvas);
  background-size: calc(100vw / 12) 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dm-section-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: start;
}

.dm-section-heading h2,
.dm-film-copy h2,
.dm-interface-copy h2,
.dm-showreel-copy h2,
.dm-close-copy h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 94px);
  font-weight: 760;
  line-height: var(--heading-leading);
}

.dm-section-heading > div > p,
.dm-film-copy > p:last-child,
.dm-interface-copy > p {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}

.dm-proof-frame {
  position: relative;
  margin-top: 80px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow:
    18px 18px 0 var(--surface-sage),
    var(--shadow-spatial);
}

.dm-proof-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -7px;
  right: 11%;
  width: 118px;
  height: 14px;
  background: oklch(0.86 0.16 125 / 0.68);
  transform: rotate(1.5deg);
}

.dm-proof-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.dm-proof-rail {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.dm-proof-rail span {
  min-height: 76px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.dm-proof-rail span:last-child {
  border-right: 0;
}

.dm-evolution-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      oklch(0.19 0.035 190 / 0.92) 0%,
      oklch(0.19 0.035 190 / 0.56) 42%,
      transparent 72%
    );
}

.dm-film-copy {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dm-film-copy-bottom {
  padding-bottom: 10svh;
  justify-content: flex-end;
  color: var(--paper);
}

.dm-film-copy-bottom .feature-index,
.dm-film-copy-bottom > p:last-child {
  color: oklch(0.95 0.018 105 / 0.82);
}

.dm-film-copy-bottom h2 {
  max-width: 920px;
}

.dm-interface {
  display: flex;
  align-items: center;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    var(--paper-warm);
  background-size: calc(100vw / 12) 100%;
}

.dm-interface-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}

.dm-interface-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  box-shadow:
    -18px 18px 0 oklch(0.67 0.14 235 / 0.2),
    var(--shadow-spatial);
}

.dm-interface-media::after {
  content: "INTERFACE / MOTION / RESPONSIVE";
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
}

.dm-interface-copy h2 {
  margin-top: 20px;
  font-size: clamp(46px, 5vw, 78px);
}

.dm-output-list {
  margin-top: 44px;
  border-top: 1px solid var(--line-strong);
}

.dm-output-list span {
  min-height: 46px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.dm-showreel {
  background: var(--ink);
  color: var(--paper);
}

.dm-showreel-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      oklch(0.16 0.035 190 / 0.92) 0%,
      oklch(0.16 0.035 190 / 0.62) 35%,
      transparent 68%
    ),
    linear-gradient(0deg, oklch(0.16 0.035 190 / 0.45), transparent 44%);
}

.dm-showreel-copy {
  position: relative;
  z-index: 2;
  min-height: 100%;
  padding-top: calc(var(--header-height) + 9svh);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dm-showreel-copy .feature-index {
  color: oklch(0.95 0.018 105 / 0.72);
}

.dm-showreel-copy h2 {
  max-width: 780px;
  margin-top: 18px;
}

.dm-chapter-status {
  width: min(560px, 90vw);
  margin-top: auto;
  margin-bottom: 12svh;
  padding-top: 18px;
  border-top: 1px solid oklch(0.975 0.008 120 / 0.42);
}

.dm-chapter-status span {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
}

.dm-chapter-status strong {
  margin-top: 12px;
  display: block;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.12;
}

.dm-chapter-status p {
  max-width: 520px;
  margin: 14px 0 0;
  color: oklch(0.95 0.018 105 / 0.82);
  font-size: 15px;
  line-height: 1.55;
}

.dm-chapter-rail {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  z-index: 3;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid oklch(0.975 0.008 120 / 0.3);
  list-style: none;
}

.dm-chapter-rail li {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-right: 1px solid oklch(0.975 0.008 120 / 0.22);
  color: oklch(0.95 0.018 105 / 0.62);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.dm-chapter-rail li:last-child {
  border-right: 0;
}

.dm-chapter-rail li.is-active {
  background: var(--lime);
  color: var(--ink);
}

.dm-section-heading-compact h2 {
  max-width: 900px;
}

.dm-cross-media-frame {
  box-shadow:
    18px 18px 0 oklch(0.7 0.16 35 / 0.19),
    var(--shadow-spatial);
}

.dm-close {
  background: var(--paper);
}

.dm-close-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      oklch(0.985 0.006 120 / 0.96) 0%,
      oklch(0.985 0.006 120 / 0.78) 38%,
      transparent 70%
    );
}

.dm-close-copy {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition: opacity 180ms linear;
}

.dm-close-copy h2 {
  max-width: 960px;
  margin-top: 20px;
  font-size: clamp(48px, 6vw, 92px);
}

.dm-close-copy .button {
  margin-top: 36px;
}

.dm-footer {
  min-height: 230px;
  padding: 64px max(48px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 80px;
  align-items: end;
  background: var(--ink);
  color: oklch(0.95 0.018 105 / 0.7);
}

.dm-footer picture {
  grid-row: 1 / span 2;
}

.dm-footer img {
  width: min(300px, 52vw);
}

.dm-footer p {
  margin: 0;
  font-size: 11px;
  text-align: right;
}

@media (max-width: 1080px) {
  .dm-film-stage {
    min-height: 620px;
  }

  .dm-interface-layout {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 44px;
  }

  .dm-interface-copy h2 {
    font-size: clamp(38px, 5vw, 58px);
  }
}

@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .dm-film-track,
  .dm-film-track-hero,
  .dm-film-track-interface,
  .dm-film-track-showreel,
  .dm-film-track-close {
    height: auto;
  }

  .dm-film-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 760px;
  }

  .dm-hero-copy {
    min-height: 780px;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 40px;
    justify-content: flex-start;
  }

  .dm-hero-copy h1 {
    font-size: clamp(62px, 16vw, 108px);
  }

  .dm-hero-wash {
    background:
      linear-gradient(
        180deg,
        oklch(0.985 0.006 120 / 0.98) 0%,
        oklch(0.985 0.006 120 / 0.78) 56%,
        oklch(0.985 0.006 120 / 0.14) 100%
      );
  }

  .dm-identity,
  .dm-cross-media {
    padding: 100px 0;
  }

  .dm-section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dm-proof-frame {
    margin-top: 54px;
    box-shadow:
      10px 10px 0 var(--surface-sage),
      var(--shadow-spatial);
  }

  .dm-proof-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .dm-proof-rail span {
    border-bottom: 1px solid var(--line);
  }

  .dm-interface {
    min-height: auto;
    padding: 100px 0;
  }

  .dm-interface-layout {
    grid-template-columns: 1fr;
  }

  .dm-interface-copy {
    order: -1;
  }

  .dm-showreel {
    min-height: 900px;
  }

  .dm-showreel-copy {
    min-height: 900px;
    padding-top: calc(var(--header-height) + 70px);
  }

  .dm-chapter-status {
    margin-bottom: 150px;
  }

  .dm-close {
    min-height: 760px;
  }
}

@media (max-width: 620px) {
  .dm-shell {
    width: min(100% - 32px, 1320px);
  }

  .dm-grid {
    background-size: 48px 48px;
  }

  .dm-hero-copy {
    min-height: 740px;
    padding-top: calc(var(--header-height) + 52px);
  }

  .dm-hero-copy h1 {
    font-size: clamp(56px, 18vw, 82px);
    line-height: var(--display-leading);
  }

  .dm-hero-statement {
    font-size: 32px;
  }

  .dm-hero-intro {
    font-size: 16px;
  }

  .dm-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .dm-hero-index {
    margin: 0 16px 10px;
  }

  .dm-hero-index span:last-child {
    display: none;
  }

  .dm-section-heading h2,
  .dm-film-copy h2,
  .dm-interface-copy h2,
  .dm-showreel-copy h2,
  .dm-close-copy h2 {
    font-size: 42px;
  }

  .dm-proof-frame {
    margin-right: 10px;
  }

  .dm-proof-rail {
    grid-template-columns: 1fr;
  }

  .dm-proof-rail span {
    min-height: 52px;
    border-right: 0;
  }

  .dm-evolution {
    min-height: 720px;
  }

  .dm-film-copy-bottom {
    padding-bottom: 70px;
  }

  .dm-interface-media {
    box-shadow:
      -10px 10px 0 oklch(0.67 0.14 235 / 0.2),
      var(--shadow-spatial);
  }

  .dm-showreel {
    min-height: 860px;
  }

  .dm-showreel-copy {
    min-height: 860px;
  }

  .dm-chapter-rail {
    right: 16px;
    bottom: 16px;
    left: 16px;
    grid-template-columns: 1fr;
  }

  .dm-chapter-rail li {
    min-height: 30px;
    border-right: 0;
    border-bottom: 1px solid oklch(0.975 0.008 120 / 0.22);
  }

  .dm-chapter-rail li:last-child {
    border-bottom: 0;
  }

  .dm-chapter-status {
    margin-bottom: 205px;
  }

  .dm-footer {
    padding: 52px 24px;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dm-footer picture {
    grid-row: auto;
  }

  .dm-footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-film-media video,
  .dm-interface-media video {
    display: none;
  }

  .dm-close-copy {
    opacity: 1 !important;
  }
}
