/* ==========================================================================
   Matinno Living — Content blocks
   Page rhythm: stacked blocks (quiet text column → 3:4 media grids with
   captions → wide media → tinted band → downloads → outline CTA → overview
   cards), styled to the Matinno Brandbook v1:
     · Titles Figtree (page h1 and section headings in regular)
     · Subtitles Figtree Bold uppercase +75 · Text Figtree Regular
     · Buttons Figtree Bold · Ink #2C2E35 · Palette #D5A286 / #5C88DA / #9EA2A2
   ========================================================================== */

:root {
  --mt-ink: #2c2e35;
  --mt-ink-soft: #5d6066;
  --mt-grey: #9ea2a2;
  --mt-terracotta: #d5a286;
  --mt-blue: #5c88da;
  --mt-white: #ffffff;
  --mt-tint: #f2f3f3;           /* brand grey at ~13%, for tinted bands */
  --mt-rule: rgba(44, 46, 53, 0.14);

  --mt-font: "Figtree", Helvetica, Arial, sans-serif; /* one family for text and titles */
  --mt-font-display: var(--mt-font);

  /* Layout: blocks are capped at 1920px and centred, with 120px side padding (7.2vw under 1392px, 20px under 760px) — so
     the content column itself tops out at 1920 - 240 = 1680px. Media grids use a
     30px gutter, leaving their outer edges on the same rule as the text. */
  --mt-page-max: 1680px;
  --mt-page-pad: 120px;
  --mt-item-gap: 30px;

  /* Vertical rhythm: small / medium / medium-large / large */
  --mt-space-s: 30px;
  --mt-space-m: 60px;
  --mt-space-ml: 90px;
  --mt-space-l: 120px;
}

/* The same values scale with the viewport below 1392px … */
@media (max-width: 1391.98px) {
  :root {
    --mt-page-pad: 7.2vw;
    --mt-space-s: 1.8vw;
    --mt-space-m: 3.6vw;
    --mt-space-ml: 5.4vw;
    --mt-space-l: 7.2vw;
  }
}

/* … and pins them to small fixed steps below 1000px. */
@media (max-width: 999.98px) {
  :root {
    --mt-space-s: 10px;
    --mt-space-m: 20px;
    --mt-space-ml: 30px;
    --mt-space-l: 40px;
  }
}

@media (max-width: 759.98px) {
  :root {
    --mt-page-pad: 20px;
    --mt-item-gap: 20px;
  }
}

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

body {
  margin: 0;
  padding-top: var(--mt-header-offset, 109px);
  font-family: var(--mt-font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--mt-ink);
  background: var(--mt-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--mt-blue);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Block shell
   -------------------------------------------------------------------------- */

.mt-block {
  padding: 0 var(--mt-page-pad);
}

.mt-block--tint {
  background: var(--mt-tint);
}

.mt-block > * {
  max-width: var(--mt-page-max);
  margin-inline: auto;
}

.pt-s { padding-top: var(--mt-space-s); }
.pt-m { padding-top: var(--mt-space-m); }
.pt-ml { padding-top: var(--mt-space-ml); }
.pt-l { padding-top: var(--mt-space-l); }
.pb-s { padding-bottom: var(--mt-space-s); }
.pb-m { padding-bottom: var(--mt-space-m); }
.pb-ml { padding-bottom: var(--mt-space-ml); }
.pb-l { padding-bottom: var(--mt-space-l); }

/* --------------------------------------------------------------------------
   Text
   -------------------------------------------------------------------------- */

/* Body text runs the full padded width; only forms keep a tighter measure */
.mt-text > * {
  max-width: none;
}

.mt-title {
  margin: 0;
  font-family: var(--mt-font-display);
  /* Page title in regular, not bold */
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.mt-heading {
  margin: 0 0 18px;
  font-family: var(--mt-font-display);
  /* Section headings in regular too */
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
}

.mt-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.mt-text p {
  margin: 0;
}

.mt-text p + p {
  margin-top: 1em;
}

.mt-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--mt-terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.15s linear;
}

@media (hover: hover) {
  .mt-link:hover {
    color: var(--mt-grey);
  }
}

/* Numbered steps (How it works) */
.mt-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 30px;
  max-width: none !important;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.mt-steps li {
  padding-top: 18px;
  border-top: 1px solid var(--mt-rule);
  counter-increment: step;
}

.mt-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  color: var(--mt-terracotta);
}

.mt-steps h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.mt-steps p,
.mt-steps ul {
  margin: 0;
  font-size: 15px;
  color: var(--mt-ink-soft);
}

.mt-steps ul {
  padding-left: 18px;
}

/* --------------------------------------------------------------------------
   Media grids
   -------------------------------------------------------------------------- */

.mt-media {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 30px var(--mt-item-gap);
}

.mt-media--3 {
  --cols: 3;
}

.mt-figure {
  margin: 0;
}

.mt-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--mt-tint);
}

.mt-frame img,
.mt-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mt-frame--wide {
  aspect-ratio: 16 / 9;
}

.mt-block--tint .mt-frame {
  background: #e4e6e6;
}

.mt-caption {
  padding-top: 10px;
  font-size: 15px;
  line-height: 1.35;
}

.mt-caption strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.mt-caption p {
  margin: 0;
  color: var(--mt-ink-soft);
}

.mt-caption ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--mt-ink-soft);
}

.mt-caption li + li {
  margin-top: 3px;
}

/* Wide media is full-bleed (it opts out of the 1920 cap) */
.mt-block--wide {
  padding-inline: 0;
}

.mt-block--wide > * {
  max-width: none;
}

.mt-block--wide .mt-frame {
  aspect-ratio: 1205 / 652;
}

/* Video play / pause (autoplaying media needs a pause control) */
.mt-video-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--mt-ink);
  cursor: pointer;
  transition: background-color 0.15s linear;
}

.mt-video-toggle svg {
  width: 12px;
  height: 12px;
}

.mt-video-toggle .i-play,
.mt-video-toggle[aria-pressed="true"] .i-pause {
  display: none;
}

.mt-video-toggle[aria-pressed="true"] .i-play {
  display: block;
}

@media (hover: hover) {
  .mt-video-toggle:hover {
    background: var(--mt-white);
  }
}

/* --------------------------------------------------------------------------
   Combined media (tinted band): large image + text column
   -------------------------------------------------------------------------- */

.mt-combined {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.mt-combined .mt-frame {
  aspect-ratio: 910 / 732;
}

.mt-combined__body {
  padding-left: 48px;
}

.mt-ticks {
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
}

.mt-ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--mt-rule);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.mt-ticks li:first-child {
  border-top: 1px solid var(--mt-rule);
}

.mt-ticks li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mt-terracotta);
}

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

.mt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mt-buttons--center {
  justify-content: center;
}

.mt-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 26px;
  border: 1px solid var(--mt-ink);
  background: transparent;
  color: var(--mt-ink);
  font-family: var(--mt-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s linear, color 0.15s linear, border-color 0.15s linear;
}

/* Bullet button: a small dot leads the label */
.mt-button::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mt-terracotta);
}

.mt-button--solid {
  background: var(--mt-ink);
  color: var(--mt-white);
}

@media (hover: hover) {
  .mt-button:hover {
    background: var(--mt-ink);
    color: var(--mt-white);
  }

  .mt-button--solid:hover {
    background: var(--mt-grey);
    border-color: var(--mt-grey);
    color: var(--mt-ink);
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.mt-faq {
  max-width: none;
  margin-top: 26px;
  border-top: 1px solid var(--mt-rule);
}

.mt-faq details {
  border-bottom: 1px solid var(--mt-rule);
}

.mt-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s linear;
}

.mt-faq summary::-webkit-details-marker {
  display: none;
}

.mt-faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 0.2s ease;
}

.mt-faq details[open] summary::after {
  transform: rotate(45deg);
}

@media (hover: hover) {
  .mt-faq summary:hover {
    color: var(--mt-grey);
  }
}

.mt-faq details p {
  margin: -4px 0 0;
  padding: 0 40px 22px 0;
  color: var(--mt-ink-soft);
}

/* --------------------------------------------------------------------------
   Downloads
   -------------------------------------------------------------------------- */

.mt-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  max-width: none !important;
  margin-top: 16px;
}

.mt-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mt-font-display);
  font-size: 20px;
  /* PDF links in regular, like the headings */
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s linear;
}

.mt-download svg {
  width: 14px;
  height: 14px;
  color: var(--mt-terracotta);
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .mt-download:hover {
    color: var(--mt-grey);
  }

  .mt-download:hover svg {
    transform: translateY(2px);
  }
}

/* --------------------------------------------------------------------------
   Overview cards
   -------------------------------------------------------------------------- */

.mt-overview {
  /* Three quarter-width cards, centred in the content column */
  display: grid;
  grid-template-columns: repeat(3, calc((100% + var(--mt-item-gap)) / 4 - var(--mt-item-gap)));
  gap: var(--mt-item-gap);
  justify-content: center;
}

.mt-card {
  display: block;
  text-decoration: none;
}

.mt-card .mt-frame img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mt-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  font-family: var(--mt-font-display);
  font-size: 18px;
  font-weight: 700;
}

.mt-card__title svg {
  width: 14px;
  height: 10px;
  flex: none;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .mt-card:hover .mt-frame img {
    transform: scale(1.03);
  }

  .mt-card:hover .mt-card__title svg {
    transform: translateX(4px);
  }
}

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

/* Three-up rows drop to two per row under 1000px, and pairs to one under 760px */
@media (max-width: 999.98px) {
  .mt-media--3 {
    --cols: 2;
  }
}

@media (max-width: 759.98px) {
  .mt-media {
    --cols: 1;
  }

  .mt-media--3 {
    --cols: 2;
  }
}

@media (max-width: 959.98px) {
  .mt-title {
    font-size: 26px;
  }

  .mt-media {
    row-gap: 24px;
  }

  .mt-block--wide {
    padding-inline: 0;
  }

  .mt-combined {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .mt-combined__body {
    padding-left: 0;
  }

  .mt-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 699.98px) {
  body {
    font-size: 16px;
  }

  /* 3-up grids become a swipeable row; 2-up grids stay paired */
  .mt-media--3,
  .mt-overview {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--mt-page-pad) * -1) !important;
    padding-inline: var(--mt-page-pad);
  }

  .mt-media--3::-webkit-scrollbar,
  .mt-overview::-webkit-scrollbar {
    display: none;
  }

  .mt-media--3 > *,
  .mt-overview > * {
    scroll-snap-align: start;
  }

  .mt-caption {
    font-size: 14px;
  }

  .mt-faq details p {
    padding-right: 0;
  }

  .mt-download {
    font-size: 18px;
  }
}

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

/* --------------------------------------------------------------------------
   Finish comparer (outdoor kitchen) — two renders under a draggable divider
   -------------------------------------------------------------------------- */

.mt-compare {
  /* aligns with the page rule; controls sit directly under the stage */
}

.mt-compare__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 26px;
}

.mt-swatch-group {
  border-top: 1px solid var(--mt-rule);
  padding-top: 14px;
}

.mt-swatch-group + .mt-swatch-group {
  margin-top: 18px;
}

.mt-swatch-group__label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--mt-ink-soft);
}

.mt-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mt-swatch {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--mt-rule);
  background-color: var(--mt-tint);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: box-shadow 0.15s linear;
}

.mt-swatch__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mt-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--mt-white), 0 0 0 4px var(--mt-terracotta);
}

@media (hover: hover) {
  .mt-swatch:hover {
    box-shadow: 0 0 0 2px var(--mt-white), 0 0 0 4px var(--mt-grey);
  }
}

.mt-swatch-readout {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--mt-ink-soft);
}

.mt-swatch-readout strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--mt-ink);
}

/* Stage */
.mt-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mt-tint);
  touch-action: pan-y;
  user-select: none;
}

.mt-stage__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.mt-stage__layer--top {
  clip-path: inset(0 50% 0 0);
}

.mt-stage__label {
  position: absolute;
  top: 16px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.mt-stage__label--left { left: 16px; }
.mt-stage__label--right { right: 16px; }

.mt-stage__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--mt-white);
  pointer-events: none;
}

.mt-stage__handle {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mt-white);
  color: var(--mt-ink);
  cursor: ew-resize;
  box-shadow: 0 2px 10px rgba(44, 46, 53, 0.25);
}

.mt-stage__handle svg {
  width: 18px;
  height: 10px;
}

.mt-stage__hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: opacity 0.2s linear;
}

.mt-stage.is-dragged .mt-stage__hint {
  opacity: 0;
}

/* Side switch */
.mt-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.mt-switch span {
  margin-right: 8px;
  color: var(--mt-ink-soft);
}

.mt-switch button {
  padding: 9px 16px;
  border: 1px solid var(--mt-rule);
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--mt-ink);
  cursor: pointer;
  transition: background-color 0.15s linear, color 0.15s linear;
}

.mt-switch button[aria-pressed="true"] {
  background: var(--mt-ink);
  border-color: var(--mt-ink);
  color: var(--mt-white);
}

/* --------------------------------------------------------------------------
   Resource cards (icon + title + description)
   -------------------------------------------------------------------------- */

.mt-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--mt-item-gap);
  margin-top: 26px;
}

.mt-resource {
  display: block;
  padding: 20px 0 22px;
  border-top: 1px solid var(--mt-rule);
  text-decoration: none;
  transition: color 0.15s linear;
}

.mt-resource img {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left;
}

.mt-resource strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mt-font-display);
  font-size: 17px;
}

.mt-resource strong svg {
  width: 14px;
  height: 10px;
  flex: none;
  transition: transform 0.2s ease;
}

.mt-resource p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--mt-ink-soft);
}

@media (hover: hover) {
  .mt-resource:hover strong svg {
    transform: translateX(4px);
  }
}

/* Partner tiles: brand logo above a short spec note */
.mt-brand {
  height: 30px;
  margin: 14px 0 8px;
  object-fit: contain;
  object-position: left;
}

.mt-frame--contain {
  background: var(--mt-tint);
}

.mt-frame--contain img {
  object-fit: contain;
}

@media (max-width: 959.98px) {
  .mt-compare__controls {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mt-resources {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 699.98px) {
  .mt-stage {
    aspect-ratio: 4 / 3;
  }

  .mt-stage__label {
    font-size: 10px;
    padding: 6px 9px;
  }
}

/* --------------------------------------------------------------------------
   Single centred image (closing block)
   -------------------------------------------------------------------------- */

.mt-single {
  /* A single half-width image, centred */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 50% !important;
}

/* Quarter width, the size of one four-up card */
.mt-single--small {
  max-width: calc((100% + var(--mt-item-gap)) / 4 - var(--mt-item-gap)) !important;
}

@media (max-width: 699.98px) {
  .mt-single {
    max-width: none !important;
  }

  .mt-single--small {
    max-width: 50% !important;
  }
}

/* --------------------------------------------------------------------------
   Forms (dealer search) — quiet rules and uppercase labels, per Brandbook §6
   -------------------------------------------------------------------------- */

.mt-form {
  max-width: 1680px;
}

.mt-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 30px;
  max-width: 820px;
}

.mt-field {
  display: block;
}

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

.mt-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--mt-ink-soft);
}

.mt-field__label em {
  font-style: normal;
  color: var(--mt-terracotta);
}

.mt-field input,
.mt-field textarea,
.mt-field select {
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--mt-rule);
  border-radius: 0;
  background: transparent;
  font-family: var(--mt-font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--mt-ink);
  transition: border-color 0.15s linear;
}

.mt-field select {
  /* native arrow varies; keep the control flat and draw our own chevron */
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%, currentColor 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, currentColor 43%, currentColor 50%, transparent 50%);
  background-position: right 9px center, right 2px center;
  background-size: 7px 7px;
  background-repeat: no-repeat;
  padding-right: 24px;
}

.mt-field input:focus,
.mt-field textarea:focus,
.mt-field select:focus {
  outline: 0;
  border-bottom-color: var(--mt-ink);
}

.mt-field input:focus-visible,
.mt-field textarea:focus-visible,
.mt-field select:focus-visible {
  outline: 2px solid var(--mt-blue);
  outline-offset: 3px;
}

.mt-field input:user-invalid {
  border-bottom-color: #b3453a;
}

.mt-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 820px;
  margin: 34px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mt-ink-soft);
}

.mt-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--mt-ink);
}

.mt-form .mt-buttons {
  margin-top: 30px;
}

.mt-form__note {
  max-width: 820px;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--mt-ink-soft);
}

@media (max-width: 699.98px) {
  .mt-form__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* Four-up media row (25% each, halving under 1000px) */
.mt-media--4 {
  --cols: 4;
}

@media (max-width: 999.98px) {
  .mt-media--4 {
    --cols: 2;
  }
}

/* Flat colour tile standing in for a swatch photograph */
.mt-frame--tone {
  display: grid;
  place-items: center;
  background: var(--tone);
  color: rgba(255, 255, 255, 0.9);
}

.mt-frame--tone svg {
  width: 22%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Page header + intro
     header   padding 120px → 7.2vw ≤1391px → 35px 20px ≤759px
     title    26px / 30px
     intro    padding-top 40px → 2.4vw ≤1391px → 25px ≤759px, 30px below
     text     18px / 22px, letter-spacing 0.2px
   -------------------------------------------------------------------------- */

.mt-page-header {
  padding-block: 120px;
}

.mt-page-header .mt-title {
  font-size: 26px;
  line-height: 30px;
  letter-spacing: normal;
}

.mt-intro {
  padding-top: 40px;
  padding-bottom: 30px;
}

.mt-lede {
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0.2px;
}

@media (max-width: 1391.98px) {
  .mt-page-header {
    padding-block: 7.2vw;
  }

  .mt-intro {
    padding-top: 2.4vw;
    padding-bottom: 1.8vw;
  }
}

@media (max-width: 999.98px) {
  .mt-intro {
    padding-bottom: 10px;
  }
}

@media (max-width: 759.98px) {
  .mt-page-header {
    padding-block: 35px;
  }

  .mt-intro {
    padding-top: 25px;
  }
}

/* --------------------------------------------------------------------------
   Selection overview
     item   25% wide, 30px gutters, 30px under each row
            → 50% ≤999px → 50% with 20px gutters ≤759px
     title  2rem / 2.4rem, 10px above, letter-spacing 0.2px
     text   1.6rem / 2rem, 2px above, muted
     .image-over fades in on hover
   -------------------------------------------------------------------------- */

.mt-selection {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px var(--mt-item-gap);
}

.mt-selection__over {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s linear;
}

@media (hover: hover) {
  .mt-selection__item:hover .mt-selection__over {
    opacity: 1;
  }
}

.mt-selection__title {
  margin: 0;
  padding-top: 10px;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.2px;
}

.mt-selection__text {
  margin: 0;
  padding-top: 2px;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: var(--mt-ink-soft);
}

@media (max-width: 999.98px) {
  .mt-selection {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 25px;
  }
}

@media (max-width: 759.98px) {
  .mt-selection {
    row-gap: 20px;
  }

  .mt-selection__title {
    font-size: 16px;
    line-height: 19.2px;
  }

  .mt-selection__text {
    font-size: 12.8px;
    line-height: 16px;
  }
}

/* --------------------------------------------------------------------------
   Block padding
   A page is spaced in two layers:
     1. every block carries its own padding by type (below) — set here on the
        section's inner element, so it never fights layer 2;
     2. the section adds a small/medium/medium-large/large step (30/60/90/120)
        — the .pt-* / .pb-* utilities on the <section>.
   .mt-flush-top / .mt-flush-bottom zero layer 1 only.
     text                    40 / 0
     media grid              30 / 45, plus 30 under every row of items
     media pair / single     30 / 45
     overview cards          30 / 30, plus 30 under every row of cards
     page header, downloads,
     button row              120 / 120
     wide media              0 / 0
   -------------------------------------------------------------------------- */

:root {
  --mt-b-text: 40px;
  --mt-b-media-t: 30px;
  --mt-b-media-b: 45px;
  --mt-b-row: 30px;
  --mt-b-ov: 30px;
  --mt-b-big: 120px;
}

@media (max-width: 1391.98px) {
  :root {
    --mt-b-text: 2.4vw;
    --mt-b-media-t: 1.8vw;
    --mt-b-media-b: 2.7vw;
    --mt-b-ov: 1.8vw;
    --mt-b-big: 7.2vw;
  }
}

@media (max-width: 999.98px) {
  :root {
    --mt-b-row: 25px;
  }
}

@media (max-width: 759.98px) {
  :root {
    --mt-b-text: 25px;
    --mt-b-media-t: 20px;
    --mt-b-media-b: 20px;
    --mt-b-row: 20px;
    --mt-b-ov: 20px;
  }
}

/* Text */
.mt-block > .mt-text {
  padding-top: var(--mt-b-text);
}

/* page header and intro keep their own section padding */
.mt-page-header > .mt-text,
.mt-intro > .mt-text {
  padding-top: 0;
}

/* Media grid: every row of items, the last included, has 30px beneath it */
.mt-block > .mt-media,
.mt-block > .mt-selection {
  row-gap: var(--mt-b-row);
  padding-top: var(--mt-b-media-t);
  padding-bottom: calc(var(--mt-b-media-b) + var(--mt-b-row));
}

/* Media pairs and single images have no item margin */
.mt-block > .mt-media--two,
.mt-block > .mt-single {
  padding-bottom: var(--mt-b-media-b);
}

/* overview cards */
.mt-block > .mt-overview {
  row-gap: var(--mt-b-row);
  padding-top: var(--mt-b-ov);
  padding-bottom: calc(var(--mt-b-ov) + var(--mt-b-row));
}

/* Button row */
.mt-block > .mt-buttons {
  padding-block: var(--mt-b-big);
}

/* Downloads: "Download" label, then the links 30px below */
.mt-block > .mt-text:has(> .mt-downloads) {
  padding-block: var(--mt-b-big);
}

.mt-text > .mt-eyebrow:has(+ .mt-downloads) {
  margin-bottom: 0;
}

.mt-downloads {
  margin-top: 30px;
  row-gap: 0;
}

/* Download links under a section title (door pages): the title block carries
   the 60px gap, so the list starts flush, with no margin of its own */
.mt-flush-top > .mt-text > .mt-downloads:first-child {
  margin-top: 0;
}

/* .mt-simple-title sets its own padding-top (layer 1), so the section step
   (padding-top-medium) is added outside it */
.mt-simple-title.pt-m {
  margin-top: var(--mt-space-m);
}

/* pdf-button: 1.5rem under each link (rows of links wrap on that margin) */
.mt-download {
  margin-bottom: 1.5rem;
}

@media (max-width: 759.98px) {
  .mt-block > .mt-buttons {
    padding-block: 30px;
  }

  .mt-block > .mt-text:has(> .mt-downloads) {
    padding-block: 40px;
  }

  .mt-downloads {
    margin-top: 25px;
  }
}

.mt-flush-top > * {
  padding-top: 0 !important;
}

.mt-flush-bottom > * {
  padding-bottom: 0 !important;
}

/* A heading is separated from its text, and paragraphs from each other,
   with one empty line (22px) */
.mt-heading {
  margin-bottom: 2.2rem;
}

.mt-text p + p {
  margin-top: 2.2rem;
}

/* Body-size headings on a taller, 30px line instead of 22px */
.mt-heading.mt-heading--tall {
  line-height: 3rem;
}

/* image-caption: 10px above, 2px below (8px above on phones) */
.mt-caption {
  padding-top: 10px;
  padding-bottom: 2px;
}

@media (max-width: 759.98px) {
  .mt-caption {
    padding-top: 8px;
  }
}

/* Button: 1.1rem / 2.7rem padding around a 1.9rem line */
.mt-button {
  min-height: 0;
  padding: 1.1rem 2.7rem;
}

/* One empty line after the text, which pushes the next block one line
   further down */
.mt-block > .mt-text--trail {
  padding-bottom: 2.2rem;
}

/* An intro that sits straight under the page title */
.mt-intro.mt-flush-top {
  padding-top: 0;
}

/* Inspiration gallery: landscape project cards, two per row (one under 760px).
   Cards without a project page are <figure>s, so drop the UA figure margin. */
.mt-gallery > figure.mt-card {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Downloads library
   The whole page sits on the tint. Blocks, in order:
     anchor row      grey links, 7rem apart, 2rem under each;
                     nothing above, 120 under (+ section padding-bottom-small)
     stroke          1px rule, full bleed
     section title   65 above the 26/30 section title, nothing below
     overview        30 / 30, four cards per row with 30 under every row
                     (two per row under 1000px)
   -------------------------------------------------------------------------- */

.mt-anchors {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: var(--mt-b-big);
}

.mt-anchors a {
  margin: 0 7rem 2rem 0;
  font-size: 2rem;
  line-height: 2.4rem;
  letter-spacing: 0.2px;
  color: #999;
  text-decoration: none;
  transition: color 0.15s linear;
}

.mt-anchors a:last-child {
  margin-right: 0;
}

@media (hover: hover) {
  .mt-anchors a:hover {
    color: var(--mt-ink);
  }
}

.mt-stroke {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mt-section-title {
  margin: 0 auto; /* keep the centred column (.mt-block > *) on wide screens */
  padding-top: 65px;
  font-family: var(--mt-font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 3rem;
  letter-spacing: 0;
}

/* anchor jumps clear the fixed header */
.mt-library [id] {
  scroll-margin-top: var(--mt-header-offset, 109px);
}

.mt-doc-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--mt-b-row) var(--mt-item-gap);
  padding-top: var(--mt-b-ov);
  padding-bottom: calc(var(--mt-b-ov) + var(--mt-b-row));
}

.mt-doc {
  display: block;
  text-decoration: none;
}

.mt-doc .mt-frame img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}


.mt-doc__title {
  display: block;
  padding-top: 10px;
  font-size: 2rem;
  line-height: 2.4rem;
  letter-spacing: 0.2px;
}

.mt-doc__text {
  display: block;
  padding-top: 2px;
  font-size: 1.6rem;
  line-height: 2rem;
  letter-spacing: 0.2px;
  color: var(--mt-ink-soft);
}

@media (hover: hover) {
  .mt-doc:hover .mt-frame img {
    transform: scale(1.03);
  }

  .mt-doc:hover .mt-doc__text {
    color: var(--mt-ink);
  }
}

@media (max-width: 1391.98px) {
  .mt-section-title {
    padding-top: 3.9vw;
  }
}

@media (max-width: 999.98px) {
  .mt-anchors a {
    margin-right: 50px;
  }

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

@media (max-width: 759.98px) {
  .mt-anchors {
    padding-bottom: 40px;
  }

  .mt-anchors a {
    margin: 0 25px 10px 0;
  }

  .mt-section-title {
    padding-top: 35px;
  }
}

/* --------------------------------------------------------------------------
   Text + media side by side
     block        flex, media on the right, centred vertically;
                  padding 30 / 90 (1.8vw / 5.4vw ≤1391), 20 ≤759
     halves       50% each, 15px gutter on the inside edge of each
     text         2rem / 2.4rem, 40px above (2.4vw ≤1391, 15px ≤999);
                  the h1 is body-sized with two empty lines under it, and
                  paragraphs are one empty line apart
     ≤759         stacked, media first, text 10px below
   -------------------------------------------------------------------------- */

.mt-block > .mt-split {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding-block: var(--mt-b-media-t) var(--mt-space-ml);
}

.mt-split__media {
  width: 50%;
  padding-left: calc(var(--mt-item-gap) / 2);
}

.mt-split__body {
  width: 50%;
  padding-right: calc(var(--mt-item-gap) / 2);
}

.mt-split__text {
  margin-top: var(--mt-b-text);
  font-size: 2rem;
  line-height: 2.4rem;
  letter-spacing: 0.2px;
}

.mt-split__text h1 {
  margin: 0 0 4.8rem;
  font-family: var(--mt-font-display);
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: inherit;
}

.mt-split__text p {
  margin: 0;
}

.mt-split__text p + p {
  margin-top: 2.4rem;
}

@media (max-width: 999.98px) {
  .mt-split__text {
    margin-top: 15px;
  }
}

@media (max-width: 759.98px) {
  .mt-block > .mt-split {
    flex-direction: column;
    padding-block: 20px;
  }

  .mt-split__media,
  .mt-split__body {
    width: 100%;
    padding: 0;
  }

  .mt-split__body {
    padding-top: 10px;
  }
}

/* --------------------------------------------------------------------------
   Embedded booking calendar (Zoho Bookings)
   -------------------------------------------------------------------------- */

.mt-embed {
  max-width: 1000px;
}

.mt-embed iframe {
  display: block;
  width: 100%;
  height: 750px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Sustainability
   VOC comparison: one series, horizontal bars on a shared 0–100% scale.
   Matinno finishes solid sage #94AB9A, the traditional-wood
   baseline hatched in neutral #9EA2A2 grey;
   values are direct-labelled in ink, so colour is never the only cue.
   -------------------------------------------------------------------------- */

.mt-bars {
  max-width: 820px;
  margin: 4.4rem 0 0;
}

.mt-bars__title {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  line-height: 1.8rem;
  color: var(--mt-ink-soft);
}

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

.mt-bars__row {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr) 5rem;
  align-items: center;
  gap: 2rem;
  min-height: 4.4rem;
}

.mt-bars__label {
  font-size: 1.6rem;
  line-height: 1.8rem;
}

.mt-bars__label small {
  display: block;
  font-size: 1.6rem;
  color: var(--mt-ink-soft);
}

.mt-bars__track {
  height: 1.6rem;
  border-left: 1px solid var(--mt-rule);
}

.mt-bars__fill {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: #94ab9a; /* Pantone 422 UP pushed toward the sage it prints as */
}

.mt-bars__row--base .mt-bars__fill {
  background: repeating-linear-gradient(135deg, var(--mt-grey) 0 1.5px, transparent 1.5px 5px);
  box-shadow: inset 0 0 0 1px var(--mt-grey);
}

.mt-bars__value {
  font-size: 1.8rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* the CARB 2 mark, shown at its own small size instead of a photo slot */
.mt-badge {
  margin-top: 4.4rem;
}

.mt-badge img {
  display: block;
  width: 240px;
  height: auto;
}

@media (max-width: 759.98px) {
  .mt-bars__row {
    grid-template-columns: 11rem minmax(0, 1fr) 4.5rem;
    gap: 1.2rem;
  }

  .mt-badge img {
    width: 180px;
  }
}

/* --------------------------------------------------------------------------
   Design catalog (index.html = Kitchen ▸ Design), content of
   matinnoliving.com/designs/: filter links reuse .mt-anchors, the grid reuses
   the .mt-doc overview cards at six per row (three ≤999, two ≤759); the door
   swatches are shown whole at their native 177:300 rather than cropped to 3:4
   -------------------------------------------------------------------------- */

.mt-anchors[data-mt-filter] a[aria-pressed="true"] {
  color: var(--mt-ink);
}

.mt-design-count {
  margin: 0 auto; /* keep the centred column (.mt-block > *) on wide screens */
  padding-top: var(--mt-b-ov);
  font-size: 1.6rem;
  line-height: 2rem;
  letter-spacing: 0.2px;
  color: var(--mt-ink-soft);
}

.mt-design-count:empty {
  display: none;
}

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

.mt-design .mt-frame {
  aspect-ratio: 177 / 300;
}

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

#designs {
  scroll-margin-top: var(--mt-header-offset, 109px);
}

@media (max-width: 999.98px) {
  .mt-designs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759.98px) {
  .mt-designs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mt-design-count:not(:empty) + .mt-designs {
  padding-top: 15px;
}

/* --------------------------------------------------------------------------
   Kitchen structure (kitchen-structure.html) — every section uses the
   selection overview (.mt-selection, 3:4 cards).
     doors    600×800 kitchen photo + full-bleed hover detail
     box, drawers  600×800 studio shots (plain cards)
   The door cards link to collection-<name>.html.
   -------------------------------------------------------------------------- */

a.mt-selection__item {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Kitchen collection (collection-<name>.html), in the same blocks as
   design.html. Finishes are grouped by family: a body-size
   section header (family name, then one line with the finish count and
   that collection's characteristics) over the six-up design grid.
   -------------------------------------------------------------------------- */

.mt-family .mt-section-title {
  padding-top: 45px;
  font-size: 2rem;
  line-height: 2.4rem;
  letter-spacing: 0.2px;
}

.mt-section-head__count {
  font-size: 1.6rem;
  line-height: 2rem;
  letter-spacing: 0.2px;
  color: var(--mt-ink-soft);
  white-space: nowrap;
}

.mt-family__text {
  margin-block: 10px var(--mt-b-row);
  font-size: 1.8rem;
  line-height: 2.2rem;
  letter-spacing: 0.2px;
  color: var(--mt-ink-soft);
}

/* door cut-outs (transparent PNGs) sit inside the tint, never touching its edges */
.mt-frame--cutout img {
  padding: 8%;
}

@media (max-width: 759.98px) {
  .mt-family .mt-section-title {
    padding-top: 30px;
  }
}

/* --------------------------------------------------------------------------
   Claim form extras — details textarea, photo upload, warranty text
   -------------------------------------------------------------------------- */

.mt-field textarea {
  min-height: 140px;
  resize: vertical;
}

.mt-field input[type="file"] {
  padding: 12px 0;
  border-bottom: 0;
  font-size: 14px;
}

.mt-field input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 9px 16px;
  border: 1px solid var(--mt-ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--mt-font);
  font-size: 13px;
  color: var(--mt-ink);
  cursor: pointer;
}

.mt-field__hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--mt-ink-soft);
}

.mt-faq details ul,
.mt-faq details ol {
  margin: -4px 0 0;
  padding: 0 40px 22px 20px;
  color: var(--mt-ink-soft);
}

.mt-faq details li + li {
  margin-top: 6px;
}

/* Gallery card meta: photo count + expand icon, right-aligned; the icon doesn't slide on hover */
.mt-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--mt-ink-soft);
}

.mt-gallery .mt-card__title svg {
  width: 14px;
  height: 14px;
}

@media (hover: hover) {
  .mt-gallery .mt-card:hover .mt-card__title svg {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Lightbox (native <dialog>, driven by assets/js/lightbox.js)
   -------------------------------------------------------------------------- */

.mt-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--mt-ink);
  font-family: var(--mt-font);
}

.mt-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.mt-lightbox::backdrop {
  background: #fff;
}

body:has(.mt-lightbox[open]) {
  overflow: hidden;
}

.mt-lightbox__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
}

.mt-lightbox__title,
.mt-lightbox__count {
  margin: 0;
}

.mt-lightbox__title {
  flex: 1;
  min-width: 0;
}

.mt-lightbox__count {
  color: var(--mt-ink-soft);
  font-variant-numeric: tabular-nums;
}

.mt-lightbox__close,
.mt-lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mt-ink);
  cursor: pointer;
}

.mt-lightbox__close {
  margin-right: -12px;
}

.mt-lightbox__close svg {
  width: 18px;
  height: 18px;
}

.mt-lightbox__stage {
  min-height: 0;
  margin: 0;
  padding: 0 100px 30px;
  touch-action: pan-y pinch-zoom;
}

.mt-lightbox__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.mt-lightbox__stage img.is-loading {
  opacity: 0;
}

.mt-lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  background: rgba(255, 255, 255, 0.85);
}

.mt-lightbox__nav svg {
  width: 18px;
  height: 13px;
}

.mt-lightbox__nav--prev {
  left: 30px;
}

.mt-lightbox__nav--prev svg {
  rotate: 180deg;
}

.mt-lightbox__nav--next {
  right: 30px;
}

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

@media (hover: hover) {
  .mt-lightbox__close:hover,
  .mt-lightbox__nav:hover {
    background: var(--mt-tint);
  }
}

.mt-lightbox :focus-visible {
  outline: 2px solid var(--mt-ink);
  outline-offset: 2px;
}

@media (max-width: 759.98px) {
  .mt-lightbox__bar {
    padding: 10px 20px;
  }

  .mt-lightbox__stage {
    padding: 0 0 70px;
  }

  /* Phones: arrows sit under the photo; swiping also works */
  .mt-lightbox__nav {
    top: auto;
    bottom: 14px;
    translate: none;
  }

  .mt-lightbox__nav--prev {
    left: 20px;
  }

  .mt-lightbox__nav--next {
    right: 20px;
  }
}

/* --------------------------------------------------------------------------
   Design detail (design.html?d=<slug>):
     wide          door shown whole on a tinted full-bleed 16:9 field
                   (8:9 ≤759) — the source only has door shots, no rooms
     description   padding 160 (9.48vw ≤1391, 60 ≤759),
                   text 3.5rem / 3.65rem (35/36.5 at 1440, 28/29.2 at 375)
     section title 75 above a 1.6rem label (4.43vw ≤1391, 45 ≤759)
     specs         overview-style grid: four facts, then characteristics
                   and formats at half width each (stacked ≤759)
     section head  label left, "See all" link right
   -------------------------------------------------------------------------- */

.mt-frame--door {
  aspect-ratio: 16 / 9;
}

.mt-frame.mt-frame--door img {
  object-fit: contain;
  padding: 4.5% 0;
}

.mt-product {
  padding-block: 160px;
}

.mt-block.mt-product > .mt-text {
  padding-top: 0;
}

.mt-text .mt-product__text {
  margin: 0;
  font-size: 3.5rem;
  line-height: 3.65rem;
  letter-spacing: 0;
}

.mt-simple-title {
  padding-top: 75px;
}

.mt-simple-title > .mt-eyebrow {
  margin: 0 auto;
}

/* the variant switcher reuses the filter-link look, as buttons */
.mt-anchors button {
  margin: 0 7rem 2rem 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 2rem;
  line-height: 2.4rem;
  letter-spacing: 0.2px;
  color: #999;
  cursor: pointer;
  transition: color 0.15s linear;
}

.mt-anchors button[aria-pressed="true"] {
  color: var(--mt-ink);
}

@media (hover: hover) {
  .mt-anchors button:hover {
    color: var(--mt-ink);
  }
}

.mt-variant-switch > .mt-anchors {
  padding-top: var(--mt-b-text);
  padding-bottom: 0;
}

.mt-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--mt-b-row) var(--mt-item-gap);
  padding-block: var(--mt-b-text) calc(var(--mt-b-ov) + var(--mt-b-row));
}

.mt-specs__item--half {
  grid-column: span 2;
}

.mt-specs__label {
  margin: 0;
  font-size: 1.6rem;
  line-height: 2rem;
  letter-spacing: 0.2px;
  color: var(--mt-ink-soft);
}

.mt-specs__value,
.mt-specs__list {
  margin: 0;
  padding-top: 4px;
  font-size: 2rem;
  line-height: 2.4rem;
  letter-spacing: 0.2px;
}

.mt-specs__list {
  padding-left: 0;
  list-style: none;
}

.mt-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.mt-section-head__link {
  font-size: 2rem;
  line-height: 2.4rem;
  letter-spacing: 0.2px;
  color: var(--mt-ink);
  text-decoration: none;
}

@media (hover: hover) {
  .mt-section-head__link:hover {
    color: #999;
  }
}

.mt-designs--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1391.98px) {
  .mt-product {
    padding-block: 9.48vw;
  }

  .mt-simple-title {
    padding-top: 4.43vw;
  }
}

@media (max-width: 999.98px) {
  .mt-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .mt-anchors button {
    margin-right: 50px;
  }
}

@media (max-width: 759.98px) {
  .mt-frame--door {
    aspect-ratio: 8 / 9;
  }

  .mt-product {
    padding-block: 60px;
  }

  .mt-simple-title {
    padding-top: 45px;
  }

  .mt-specs__item--half {
    grid-column: 1 / -1;
  }

  .mt-anchors button {
    margin: 0 25px 10px 0;
  }
}

.mt-section-head > .mt-section-title {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Locations (locations.html, and
   location.html?state=<slug> for one state)
     locale head   page header with the location details: title, body-size
                   subtitle, then 21/22 detail text 25px below; the buttons
                   sit bottom-right, level with the last line of the details
     split--left   the same split, media on the left
     states        state list, four per row (two ≤999), 1px rule over each
     sitelinks     centred 26/30 line, buttons 50px below,
                   150 above and below
   -------------------------------------------------------------------------- */

.mt-locale-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: var(--mt-item-gap);
}

.mt-locale-head__sub {
  margin: 0;
  font-size: 1.8rem;
  line-height: 2.2rem;
  letter-spacing: 0.2px;
}

.mt-locale-head__text {
  margin: 25px 0 0;
  font-size: 2.1rem;
  line-height: 2.2rem;
  letter-spacing: 0.2px;
}

.mt-locale-head__text p {
  margin: 0;
}

.mt-locale-head__text p + p {
  margin-top: 2.2rem;
}

.mt-locale-head__text a {
  color: inherit;
  text-decoration: none;
}

.mt-locale-head .mt-buttons {
  gap: 30px;
}

@media (hover: hover) {
  .mt-locale-head__text a:hover {
    text-decoration: underline;
  }
}

.mt-block > .mt-split--left {
  flex-direction: row;
}

.mt-split--left .mt-split__media {
  padding-left: 0;
  padding-right: calc(var(--mt-item-gap) / 2);
}

.mt-split--left .mt-split__body {
  padding-right: 0;
  padding-left: calc(var(--mt-item-gap) / 2);
}

.mt-split__text h2 {
  margin: 0 0 4.8rem;
  font-family: var(--mt-font-display);
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: inherit;
}

/* In-split titles are body-size lines, set off by empty lines:
   two above, one below */
.mt-split__text h3 {
  margin: 4.8rem 0 0;
  font: inherit;
  letter-spacing: inherit;
}

.mt-split__text h3 + p {
  margin-top: 2.4rem;
}

a.mt-figure {
  display: block;
}

/* product shot on white (the dealer tower display): no tint around it */
.mt-frame--white {
  background: var(--mt-white);
}

.mt-split__text .mt-bars,
.mt-split__text .mt-buttons {
  margin-top: 4.8rem;
}

.mt-split__text .mt-bars__title {
  font-size: 1.6rem;
}

.mt-doc-list--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mt-states {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--mt-item-gap);
  margin: 0 auto;
  padding: var(--mt-b-ov) 0 0;
  list-style: none;
}

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

/* The region filters sit straight on the list: no 120 under them */
.mt-anchors[data-mt-region-filter] {
  padding-bottom: 0;
}

.mt-anchors[data-mt-region-filter] a[aria-pressed="true"] {
  color: var(--mt-ink);
}

.mt-state a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0 30px;
  border-top: 1px solid var(--mt-rule);
  color: inherit;
  text-decoration: none;
}

.mt-state__name {
  font-size: 2rem;
  line-height: 2.4rem;
  letter-spacing: 0.2px;
}

.mt-state__text {
  display: block;
  padding-top: 2px;
  font-size: 1.6rem;
  line-height: 2rem;
  letter-spacing: 0.2px;
  color: var(--mt-ink-soft);
}

.mt-state svg {
  flex: none;
  width: 14px;
  height: 10px;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .mt-state a:hover .mt-state__text {
    color: var(--mt-ink);
  }

  .mt-state a:hover svg {
    transform: translateX(4px);
  }
}

.mt-sitelinks {
  padding-block: 150px;
  text-align: center;
}

.mt-sitelinks__title {
  margin: 0 0 50px;
  font-family: var(--mt-font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 3rem;
  letter-spacing: 0;
}

.mt-sitelinks .mt-buttons {
  justify-content: center;
  gap: 30px;
}

@media (max-width: 1391.98px) {
  .mt-sitelinks {
    padding-block: 10.8vw;
  }
}

@media (max-width: 999.98px) {
  .mt-locale-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .mt-locale-head .mt-buttons {
    margin-top: 30px;
  }

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

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

@media (max-width: 759.98px) {
  .mt-locale-head .mt-buttons {
    gap: 12px;
  }

  .mt-block > .mt-split--left {
    flex-direction: column;
  }

  .mt-split--left .mt-split__media,
  .mt-split--left .mt-split__body {
    padding: 0;
  }

  .mt-split--left .mt-split__body {
    padding-top: 10px;
  }

  .mt-doc-list--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .mt-sitelinks {
    padding-block: 60px;
  }

  .mt-sitelinks__title {
    margin-bottom: 30px;
  }

  .mt-sitelinks .mt-buttons {
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   How it works
     page header   tinted, 120 above the title, nothing below
     intro         tinted, 30 section padding + 40 block padding
     steps         tinted, three 3:4 steps (two per row under 1000px, and
                   still two on phones — no swipe row), each captioned:
                     title      2.6rem / 3rem, 10px above, 2px below
                     subtitle   2rem / 2.4rem
                     text       1.8rem / 2.2rem, 10px above
   -------------------------------------------------------------------------- */

.mt-page-header--tight {
  padding-bottom: 0;
}

.mt-block.mt-intro--steps {
  padding-top: calc(var(--mt-space-s) + var(--mt-b-text));
  padding-bottom: 0;
}

.mt-process__label {
  margin: 0;
  padding: 10px 0 2px;
  font-family: var(--mt-font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 3rem;
  letter-spacing: 0;
}

.mt-process__lead {
  margin: 10px 0 0;
  font-size: 2rem;
  line-height: 2.4rem;
  letter-spacing: 0;
}

.mt-process__body {
  padding-top: 10px;
}

.mt-process__body p {
  margin: 0;
  font-size: 1.8rem;
  line-height: 2.2rem;
  letter-spacing: 0.2px;
}

.mt-process__body p + p {
  margin-top: 2.2rem;
}

.mt-process__body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .mt-process__body a:hover {
    color: var(--mt-grey);
  }
}

@media (max-width: 759.98px) {
  .mt-process__label {
    padding-top: 8px;
  }
}

/* These steps stay a two-up grid on phones */
@media (max-width: 699.98px) {
  .mt-media--3.mt-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    overflow-x: visible;
    margin-inline: auto !important;
    padding-inline: 0;
  }
}

/* --------------------------------------------------------------------------
   Home (index.html)
     tiles           full-bleed pair of 8:9 tiles, no padding, no gap;
                     contents inset 30px: title 2.6rem/2.8rem top-left,
                     outline button top-right (20px inset ≤759, button
                     moves bottom-left, tiles stack)
     closing line    centred line + button, 200px padding (→ 80 ≤759)
   -------------------------------------------------------------------------- */

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

.mt-tile {
  position: relative;
  display: block;
  aspect-ratio: 8 / 9;
  overflow: hidden;
  background: var(--mt-tint);
  color: var(--mt-white);
  text-decoration: none;
}

.mt-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* a soft shade under the top edge keeps white type legible on light photos */
.mt-tile::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 30%;
  background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.mt-tile__body {
  position: absolute;
  inset: 30px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.mt-tile__title {
  font-size: 2.6rem;
  line-height: 2.8rem;
  letter-spacing: normal;
}

.mt-tile__button {
  flex: none;
  padding: 11px 27px;
  border: 1px solid currentColor;
  font-size: 2rem;
  line-height: 1.9rem;
  letter-spacing: 0.2px;
  transition: background-color 0.15s linear, color 0.15s linear;
}

/* Ink type on light photos, no shade */
.mt-tile--ink {
  color: var(--mt-ink);
}

.mt-tile--ink::after {
  content: none;
}

@media (hover: hover) {
  .mt-tile:hover .mt-tile__button {
    background: var(--mt-white);
    border-color: var(--mt-white);
    color: var(--mt-ink);
  }

  .mt-tile--ink:hover .mt-tile__button {
    background: var(--mt-ink);
    border-color: var(--mt-ink);
    color: var(--mt-white);
  }
}

/* The How it works band sits on the brand
   terracotta #D5A286 at 25% on white */
.mt-block--sand {
  background: #f5e8e1;
}

/* Two oversized Matinno icons, cropped by the band's edges, one tone
   darker than the sand (assets/img/home/logo-mark.svg) */
.mt-block--drawn {
  background:
    url("../img/home/logo-mark.svg") left -140px top -160px / 520px 520px no-repeat,
    url("../img/home/logo-mark.svg") right -220px bottom -300px / 720px 720px no-repeat,
    #f5e8e1;
}

@media (max-width: 759.98px) {
  .mt-block--drawn {
    /* one icon only on phones: two overlap into loose sticks */
    background-position: left -120px top -110px, right -210px center;
    background-size: 0 0, 420px 420px;
  }
}

.mt-activation {
  margin: 0 auto;
  padding-block: 200px;
  text-align: center;
}

.mt-activation .mt-buttons {
  justify-content: center;
}

@media (max-width: 1391.98px) {
  .mt-activation {
    padding-block: 14.4vw;
  }
}

@media (max-width: 759.98px) {
  .mt-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .mt-tile__body {
    inset: 15px 20px 20px;
    flex-direction: column;
  }

  .mt-tile__button {
    padding: 8.8px 21.6px;
  }

  .mt-activation {
    padding-block: 80px;
  }
}

/* Design cards: a photo of the design in a kitchen fades in on hover in place
   of the zoom, when design-hover.js finds one (.has-application) */
.mt-design__over {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s linear;
}

@media (hover: hover) {
  .mt-design.has-application:hover .mt-frame img {
    transform: none;
  }

  .mt-design.has-application:hover .mt-design__over {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Download gate: lead form in a popup before a file opens
   (markup in downloads.html, behaviour in assets/js/download-gate.js).
   The form itself is written in by the Zoho CRM script, so its own classes
   (.zcwf_*) are restyled here to match .mt-field and .mt-button--solid.
   -------------------------------------------------------------------------- */

.mt-dl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mt-dl-modal[aria-hidden="false"] {
  display: flex;
}

.mt-dl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 46, 53, 0.55);
}

.mt-dl-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px;
  background: var(--mt-white);
  color: var(--mt-ink);
}

.mt-dl-modal__panel:focus {
  outline: 0;
}

.mt-dl-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--mt-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mt-dl-modal__title {
  margin: 0 40px 8px 0;
  font-family: var(--mt-font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 3rem;
}

.mt-dl-modal__sub,
.mt-dl-modal__fine {
  margin: 0;
  font-size: 1.6rem;
  line-height: 2rem;
  letter-spacing: 0.2px;
  color: var(--mt-ink-soft);
}

.mt-dl-modal__fine {
  margin-top: 20px;
  font-size: 1.3rem;
  line-height: 1.8rem;
}

.mt-dl-modal__form {
  margin-top: 26px;
}

.mt-dl-modal .zcwf_lblLeft {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mt-dl-modal .zcwf_lblLeft .zcwf_title,
.mt-dl-modal .zcwf_lblLeft .zcwf_col_help,
.mt-dl-modal .zcwf_lblLeft input[type="reset"] {
  display: none !important;
}

.mt-dl-modal .zcwf_lblLeft .zcwf_row {
  margin: 0 0 22px;
}

.mt-dl-modal .zcwf_lblLeft .zcwf_col_lab,
.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld {
  float: none !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
}

.mt-dl-modal .zcwf_lblLeft .zcwf_col_lab,
.mt-dl-modal .zcwf_lblLeft .zcwf_col_lab label {
  margin-bottom: 4px;
  font-size: 1.6rem !important;
  line-height: 2rem;
  letter-spacing: 0.2px;
  color: var(--mt-ink-soft);
}

.mt-dl-modal .zcwf_lblLeft .zcwf_col_lab span {
  color: var(--mt-terracotta) !important;
}

.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld input[type="text"],
.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld input[type="email"],
.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld input[type="tel"],
.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld textarea,
.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld select,
.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld_slt {
  float: none !important;
  width: 100% !important;
  padding: 8px 2px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mt-rule) !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  font-family: var(--mt-font);
  font-size: 1.8rem !important;
  line-height: 2.4rem;
  color: var(--mt-ink);
}

.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld textarea {
  min-height: 80px;
}

.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld input:focus,
.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld textarea:focus,
.mt-dl-modal .zcwf_lblLeft .zcwf_col_fld select:focus {
  outline: 0;
  border-bottom-color: var(--mt-ink) !important;
}

.mt-dl-modal .zcwf_lblLeft input[type="submit"] {
  width: 100%;
  max-width: none !important;
  margin: 8px 0 0 !important;
  padding: 1.1rem 2.7rem !important;
  border: 1px solid var(--mt-ink) !important;
  border-radius: 0 !important;
  background: var(--mt-ink) !important;
  color: var(--mt-white) !important;
  font-family: var(--mt-font);
  font-size: 2rem !important;
  line-height: 1.9rem;
  letter-spacing: 0.2px;
  cursor: pointer;
}

@media (hover: hover) {
  .mt-dl-modal .zcwf_lblLeft input[type="submit"]:hover {
    background: var(--mt-grey) !important;
    border-color: var(--mt-grey) !important;
  }
}

/* after the visitor returns from the CRM thank-you page */
.mt-dl-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 40px);
  padding: 16px 20px;
  transform: translateX(-50%);
  background: var(--mt-ink);
  color: var(--mt-white);
  font-size: 1.6rem;
  line-height: 2rem;
}

.mt-dl-toast a {
  color: inherit;
  text-decoration: underline;
}

.mt-dl-toast button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 759.98px) {
  .mt-dl-modal {
    padding: 0;
    align-items: stretch;
  }

  .mt-dl-modal__panel {
    max-width: none;
    max-height: none;
    padding: 30px 20px;
  }

  .mt-dl-modal .zcwf_lblLeft .zcwf_col_fld input[type="text"],
  .mt-dl-modal .zcwf_lblLeft .zcwf_col_fld textarea,
  .mt-dl-modal .zcwf_lblLeft .zcwf_col_fld select {
    font-size: 16px !important;
  }
}
