.imem-hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  z-index: -3;
}

.imem-cab-frame {
  overflow: hidden;
}

.imem-cab-frame img {
  display: block;
  width: 112%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.imem-example {
  background: var(--light);
}

.imem-example .section-heading {
  margin-bottom: 36px;
  max-width: none;
}

.imem-example h2 {
  text-wrap: balance;
}

.imem-gallery,
.imem-project-options,
.imem-example-bottom,
.imem-survey,
.imem-spec-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.imem-gallery figure,
.imem-survey-figure {
  margin: 0;
}

.imem-gallery figure {
  position: relative;
}

.imem-quick-routes {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 14px 24px;
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

@media (max-width: 600px) {
  .imem-quick-routes {
    grid-column: auto;
    grid-row: auto;
  }
}

.imem-gallery-frame {
  aspect-ratio: 4 / 3;
  background: var(--line);
}

.imem-gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.imem-gallery-frame.imem-cab-frame img {
  width: 112%;
  max-width: none;
  object-position: left center;
}

.imem-gallery figcaption,
.imem-survey-figure figcaption {
  padding: 14px 0 0;
  color: var(--text);
  font-size: 14px;
}

.imem-photo-open {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.imem-photo-open::after {
  content: '+';
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  font-size: 24px;
}

.imem-example-bottom {
  align-items: start;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.imem-example-bottom h3,
.imem-project-options h3,
.imem-survey h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font: 600 36px/1.05 var(--display);
}

.imem-example-bottom p,
.imem-project-options p {
  margin: 0 0 14px;
  color: var(--text);
}

.imem-walkthrough {
  align-self: center;
}

.imem-walkthrough-trigger {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 56px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.imem-walkthrough-trigger:hover {
  border-color: var(--blue);
}

.imem-walkthrough-trigger strong,
.imem-walkthrough-trigger small {
  display: block;
}

.imem-walkthrough-trigger small {
  color: var(--text);
}

.imem-play-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--blue);
  color: var(--white);
}

.imem-walkthrough-trigger[hidden] {
  display: none;
}

.imem-walkthrough .imem-preview-note {
  margin: 8px 0 0;
  font-size: 14px;
}

.imem-photo-dialog {
  width: min(calc(100% - 32px), 760px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border: 0;
  background: var(--white);
  color: var(--navy);
  overflow: auto;
}

.imem-photo-dialog::backdrop {
  background: rgba(2, 11, 37, .88);
}

.imem-dialog-header,
.imem-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.imem-dialog-header h3 {
  margin: 0;
  font: 600 30px/1.05 var(--display);
}

.imem-photo-dialog button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
}

.imem-photo-dialog button:hover {
  border-color: var(--blue);
}

.imem-dialog-media {
  display: grid;
  justify-items: center;
  margin: 14px 0;
  background: var(--light);
}

.imem-dialog-media .imem-gallery-frame {
  width: min(100%, 45dvh);
  aspect-ratio: 3 / 4;
}

.imem-dialog-caption {
  margin: 0;
  text-align: center;
  font-size: 14px;
}

.imem-project-options {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}

.imem-project-options li {
  padding: 24px 0;
  border-block: 1px solid var(--line);
}

.imem-survey {
  align-items: center;
  margin-top: 48px;
  padding: 36px;
  background: var(--light);
}

.imem-survey-figure figcaption {
  max-width: 420px;
  margin-inline: auto;
}

.imem-shaft-diagram {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  min-height: 214px;
  margin: auto;
  background: var(--white);
  color: var(--navy);
}

.imem-shaft-outline,
.imem-diagram-guide,
.imem-diagram-cab,
.imem-diagram-label {
  position: absolute;
}

.imem-shaft-outline {
  inset: 10% 34% 10% 34%;
  border: 2px solid var(--navy);
}

.imem-diagram-cab {
  inset: 40% 38% 29% 38%;
  border: 2px solid var(--blue);
  background: var(--sky);
}

.imem-diagram-cab::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid var(--blue);
}

.imem-diagram-guide {
  border-top: 1px solid var(--blue);
}

.imem-guide-headroom { top: 24%; left: 26%; right: 50%; }
.imem-guide-width { top: 33%; left: 34%; right: 26%; }
.imem-guide-pit { top: 81%; left: 26%; right: 50%; }
.imem-guide-access { top: 71%; left: 62%; right: 6%; }

.imem-diagram-label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.imem-label-headroom { right: 75%; top: 21%; }
.imem-label-width { left: 75%; top: 29%; }
.imem-label-pit { right: 75%; top: 78%; }
.imem-label-access { left: 70%; top: 62%; }

.imem-survey dl,
.imem-spec-list {
  margin: 24px 0 0;
}

.imem-survey dl > div,
.imem-spec-list > div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 2fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.imem-survey dt,
.imem-spec-list dt {
  color: var(--navy);
  font-weight: 600;
}

.imem-survey dd,
.imem-spec-list dd {
  margin: 0;
  color: var(--text);
}

.imem-spec-section {
  background: var(--light);
}

.imem-spec-layout {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
}

.imem-spec-layout .package-comparison {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.imem-model-preview {
  display: grid;
  align-content: center;
  grid-row: 1;
  aspect-ratio: 4 / 3;
  min-height: 214px;
  padding: 24px;
  border: 1px dashed var(--muted);
  background: var(--white);
  text-align: center;
}

.imem-model-preview p:last-child {
  margin-bottom: 0;
}

.imem-brochure-status {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.imem-brochure-status strong {
  color: var(--navy);
}

.imem-related {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 36px;
}

.imem-faq {
  margin-top: 0;
}

.imem-enquiry-steps {
  margin: 24px 0;
  color: var(--white);
}

.imem-enquiry-steps h3 {
  font: 600 30px/1.05 var(--display);
  margin: 0 0 14px;
}

.imem-enquiry-steps ol {
  margin: 0;
  padding-left: 24px;
  color: #e1e8f3;
}

.imem-enquiry-steps li + li {
  margin-top: 8px;
}

.quote-form .imem-project-help {
  margin: 0 0 14px;
}

.imem-photo-open:focus-visible,
.imem-walkthrough-trigger:focus-visible,
.imem-photo-dialog button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 800px) {
  .imem-hero-photo {
    width: 100%;
  }

  .hero.imem-hero .hero-shade {
    background: linear-gradient(90deg, rgba(2, 11, 37, .95), rgba(2, 11, 37, .7));
  }

  .imem-survey {
    padding: 24px;
  }

  .imem-spec-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .imem-model-preview {
    grid-row: auto;
    aspect-ratio: auto;
    min-height: 0;
  }

  .imem-spec-layout .package-comparison {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .imem-gallery,
  .imem-project-options,
  .imem-example-bottom,
  .imem-survey {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .imem-example .section-heading {
    margin-bottom: 24px;
  }

  .imem-photo-dialog {
    padding: 14px;
  }

  .imem-diagram-label {
    font-size: 11px;
  }

  .imem-survey {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .supply-page .hero.imem-hero h1 {
    font-size: 48px;
  }
}
