/*
 * RMI independent machine pages.
 * Load after typography.css and experience.css. Existing content, photos,
 * inquiry links and motion hooks remain in their original document order.
 */
.machine-page {
  color: var(--ink, #1d1d1f);
  background: #fff;
  font-size: 17px;
  line-height: 1.75;
}

.machine-page .machine-header {
  min-height: 76px;
  gap: 30px;
  padding-block: 12px;
  flex-wrap: nowrap;
}

.machine-page .machine-nav {
  order: initial;
  display: flex;
  align-items: center;
  flex-basis: auto;
  gap: 28px;
  margin-left: auto;
  border: 0;
  padding: 0;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}

.machine-page .machine-header > .button {
  flex-shrink: 0;
  margin-left: 0;
  padding: 12px 20px;
  font-size: 14px;
  gap: 14px;
}

.machine-page .machine-intro {
  padding-bottom: clamp(64px, 7vw, 100px);
  background: #fff;
}

.machine-page .breadcrumbs {
  padding-block: 27px 34px;
  color: var(--muted, #6e6e73);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0;
}

.machine-page .breadcrumbs ol {
  gap: 9px;
  min-width: 0;
}

.machine-page .breadcrumbs li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.machine-page .breadcrumbs li + li::before {
  color: #9b9ba0;
}

.machine-page .machine-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: center;
  gap: clamp(34px, 4.5vw, 70px);
}

.machine-page .machine-gallery,
.machine-page .machine-summary,
.machine-page .machine-detail-grid > *,
.machine-page .machine-contact > .container > * {
  min-width: 0;
}

.machine-page .machine-main-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1.1;
  width: 100%;
  min-height: 460px;
  max-height: 670px;
  overflow: hidden;
  border-radius: 36px;
  background: var(--paper, #f5f5f7);
  padding: clamp(18px, 2vw, 32px);
}

.machine-page .machine-main-photo > img {
  width: 100%;
  height: 100%;
  max-height: 590px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.machine-page .machine-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  max-width: none;
  margin-top: 15px;
}

.machine-page .machine-thumbnails > a {
  min-width: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 19px;
  background: var(--paper, #f5f5f7);
  transition: border-color 220ms ease, background-color 220ms ease;
}

.machine-page .machine-thumbnails img {
  width: 100%;
  height: 116px;
  object-fit: contain;
  padding: 12px 12px 4px;
}

.machine-page .machine-thumbnails span {
  padding: 8px 13px 11px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--muted, #6e6e73);
}

.machine-page .machine-thumbnails span span {
  padding: 0;
  font-size: 17px;
  color: var(--cyan-dark, #007f91);
}

.machine-page .machine-summary {
  padding-block: 20px;
}

.machine-page .machine-summary .eyebrow {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .07em;
  margin-bottom: 21px;
}

.machine-page .machine-summary h1 {
  font-size: clamp(42px, 4.7vw, 68px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.045em;
  margin-bottom: 26px;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.machine-page .machine-summary > p {
  max-width: 46ch;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--muted, #6e6e73);
  margin-bottom: 22px;
}

.machine-page .machine-summary .machine-lead {
  font-size: clamp(20px, 1.65vw, 23px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.018em;
  color: var(--ink, #1d1d1f);
}

.machine-page .machine-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 24px;
  margin-top: 30px;
}

.machine-page .button {
  border-radius: 999px;
  min-width: 0;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.45;
  padding: 15px 23px;
  gap: 18px;
}

.machine-page .text-link {
  min-width: 0;
  max-width: 100%;
  border-bottom: 0;
  padding-bottom: 0;
  gap: 10px;
  color: var(--cyan-dark, #007f91);
  font-size: 15px;
  line-height: 1.6;
}

.machine-page .machine-back {
  display: table;
  margin-top: 26px;
  color: var(--muted, #6e6e73);
  font-size: 13px;
  line-height: 1.6;
}

.machine-page .machine-details {
  padding-block: 0 clamp(72px, 8vw, 116px);
}

.machine-page .machine-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: stretch;
  gap: 24px;
}

.machine-page .machine-detail-grid > div:first-child,
.machine-page .machine-selection {
  border: 0;
  border-radius: 32px;
  padding: clamp(30px, 3.4vw, 48px);
  background: var(--paper, #f5f5f7);
}

.machine-page .machine-detail-grid .eyebrow {
  margin-bottom: 19px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .07em;
}

.machine-page .machine-details h2 {
  margin-bottom: 28px;
  font-size: clamp(34px, 3.7vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.037em;
  overflow-wrap: break-word;
}

.machine-page .muted-heading {
  color: var(--muted, #6e6e73);
}

.machine-page .machine-applications {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 27px;
  padding: 0;
  list-style: none;
}

.machine-page .machine-applications li {
  max-width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 9px 14px;
  background: #fff;
  color: var(--ink, #1d1d1f);
  font-size: 13px;
  line-height: 1.55;
}

.machine-page .machine-body-copy,
.machine-page .machine-spec-note {
  max-width: 52ch;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--muted, #6e6e73);
}

.machine-page .machine-spec-note {
  margin-top: 25px;
  padding-top: 25px;
  margin-bottom: 0;
  border-top: 1px solid #dedee2;
}

.machine-page .machine-selection h3 {
  max-width: 21ch;
  margin-bottom: 20px;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.machine-page .machine-selection p {
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted, #6e6e73);
  margin-bottom: 19px;
}

.machine-page .machine-selection ol {
  padding: 0;
  margin: 0 0 23px;
}

.machine-page .machine-selection li {
  padding: 19px 0 19px 40px;
  border-bottom: 1px solid #dedee2;
  font-size: 17px;
  line-height: 1.65;
}

.machine-page .machine-selection li::before {
  top: 23px;
  left: 0;
  width: 26px;
  color: var(--cyan-dark, #007f91);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .015em;
}

.machine-page .machine-specs {
  overflow-x: auto;
  border-radius: 18px;
  margin-top: 27px;
}

.machine-page .machine-specs table {
  width: 100%;
  table-layout: fixed;
  font-size: 16px;
  line-height: 1.65;
}

.machine-page .machine-specs caption {
  padding-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.machine-page .machine-specs th,
.machine-page .machine-specs td {
  padding: 15px 13px;
  overflow-wrap: anywhere;
  border-color: #dedee2;
}

.machine-page .machine-specs th {
  width: 48%;
  background: #ececef;
}

.machine-page .machine-resources {
  padding-block: 0 clamp(64px, 7vw, 100px);
}

.machine-page .machine-resources h2,
.machine-page .machine-related .section-head h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.038em;
}

.machine-page .machine-resources li {
  min-width: 0;
  padding-block: 23px;
  border-color: #e5e5e9;
}

.machine-page .machine-resources li > a {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.65;
}

.machine-page .machine-resources li > span {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.7;
}

.machine-page .machine-contact {
  padding-block: 0;
  background: transparent;
}

.machine-page .machine-contact > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: calc(100% - var(--pad) * 2);
  max-width: var(--max);
  padding: clamp(34px, 4.5vw, 64px);
  margin-inline: auto;
  border-radius: 36px;
  background: #1d1d1f;
  color: #fff;
}

.machine-page .machine-contact .eyebrow {
  color: #78dce5;
  margin-bottom: 22px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .07em;
}

.machine-page .machine-contact h2 {
  color: #fff;
  font-size: clamp(36px, 3.7vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

.machine-page .machine-contact p {
  max-width: 41ch;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.75;
  color: #b7b7bd;
  margin-bottom: 0;
}

.machine-page .machine-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}

.machine-page .machine-contact-actions .button {
  min-width: 0;
  color: #032b32;
  background: #54d0dd;
}

.machine-page .machine-email,
.machine-page .machine-whatsapp {
  max-width: 100%;
  color: #f5f5f7;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.machine-page .machine-email > span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  color: #b7b7bd;
  margin-top: 7px;
}

.machine-page .machine-email:hover,
.machine-page .machine-whatsapp:hover {
  color: #78dce5;
}

.machine-page .machine-related {
  padding-block: clamp(72px, 8vw, 116px);
}

.machine-page .machine-related .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 35px;
}

/* Product pages keep a normal grid; homepage filmstrips never spill into it. */
.machine-page .machine-related .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
  margin: 0;
}

.machine-page .machine-related .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: auto;
  max-width: 100%;
  min-height: 0;
  grid-column: auto;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: none;
  background: var(--paper, #f5f5f7);
  box-shadow: none;
}

.machine-page .machine-related .product-image {
  height: clamp(220px, 21vw, 280px);
  background: transparent;
  padding: 24px 20px 6px;
}

.machine-page .machine-related .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.machine-page .machine-related .product-number {
  font-size: 12px;
  color: #7e7e84;
  top: 17px;
  left: 21px;
}

.machine-page .machine-related .product-info {
  padding: 25px 28px 28px;
}

.machine-page .machine-related .product-category {
  color: var(--cyan-dark, #007f91);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .07em;
  margin-bottom: 11px;
}

.machine-page .machine-related .product-info h3 {
  min-height: 0;
  margin-bottom: 16px;
  font-size: clamp(22px, 1.9vw, 27px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.028em;
  overflow-wrap: break-word;
}

.machine-page .machine-related .product-info p {
  min-height: 0;
  margin-bottom: 24px;
  color: var(--muted, #6e6e73);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.machine-page .machine-related .product-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0;
  border: 0;
}

.machine-page .machine-related .product-page-link {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--cyan-dark, #007f91);
}

.machine-page .machine-footer {
  gap: 45px;
  padding-bottom: 35px;
}

.machine-page .machine-footer p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted, #6e6e73);
  margin-top: 23px;
}

.machine-page .machine-footer > div:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 35px;
  min-width: 0;
}

.machine-page .machine-footer > div:last-child > a {
  color: var(--muted, #6e6e73);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .machine-page .machine-main-photo {
    min-height: 420px;
    border-radius: 30px;
  }

  .machine-page .machine-thumbnails img {
    height: 95px;
  }

  .machine-page .machine-detail-grid > div:first-child,
  .machine-page .machine-selection {
    padding: 32px;
  }

  .machine-page .machine-related .product-grid {
    gap: 20px;
  }

  .machine-page .machine-related .product-info {
    padding-inline: 23px;
  }
}

@media (max-width: 900px) {
  .machine-page .machine-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .machine-page .machine-main-photo {
    aspect-ratio: 1.55;
    min-height: 0;
    max-height: 560px;
    padding: 28px;
  }

  .machine-page .machine-main-photo > img {
    max-height: 500px;
  }

  .machine-page .machine-thumbnails {
    max-width: 580px;
  }

  .machine-page .machine-thumbnails img {
    height: 115px;
  }

  .machine-page .machine-summary {
    padding-block: 0;
  }

  .machine-page .machine-summary h1 {
    font-size: clamp(42px, 7.1vw, 64px);
    max-width: 18ch;
    text-wrap: balance;
  }

  .machine-page .machine-summary > p {
    max-width: 62ch;
  }

  .machine-page .machine-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .machine-page .machine-detail-grid > div:first-child,
  .machine-page .machine-selection {
    padding: 40px;
  }

  .machine-page .machine-contact > .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 33px;
    padding: 44px;
  }

  .machine-page .machine-contact h2 {
    font-size: 46px;
    max-width: 24ch;
  }

  .machine-page .machine-contact p {
    max-width: 53ch;
  }

  .machine-page .machine-related .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .machine-page .machine-related .product-image {
    height: 250px;
  }

  .machine-page .machine-related .product-info h3 {
    font-size: 25px;
  }
}

@media (max-width: 600px) {
  .machine-page {
    font-size: 16px;
  }

  .machine-page .machine-header {
    min-height: 0;
    flex-wrap: wrap;
    gap: 12px 15px;
    padding-block: 14px 12px;
  }

  .machine-page .machine-header > .button {
    margin-left: auto;
    padding: 11px 16px;
    font-size: 13px;
    gap: 12px;
  }

  .machine-page .machine-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    border-top: 1px solid #e5e5e9;
    padding-top: 11px;
    font-size: 13px;
    gap: 26px;
  }

  .machine-page .machine-intro {
    padding-bottom: 52px;
  }

  .machine-page .breadcrumbs {
    padding-block: 21px 25px;
    font-size: 12px;
  }

  .machine-page .machine-hero {
    gap: 29px;
  }

  .machine-page .machine-main-photo {
    aspect-ratio: 1.13;
    min-height: 0;
    max-height: none;
    border-radius: 26px;
    padding: 15px;
  }

  .machine-page .machine-thumbnails {
    margin-top: 12px;
    gap: 9px;
  }

  .machine-page .machine-thumbnails > a {
    border-radius: 14px;
  }

  .machine-page .machine-thumbnails img {
    height: 80px;
    padding: 8px 6px 1px;
  }

  .machine-page .machine-thumbnails span {
    padding: 7px 8px 9px;
    font-size: 12px;
    gap: 3px;
  }

  .machine-page .machine-summary h1 {
    font-size: clamp(42px, 9.5vw, 54px);
    line-height: 1.08;
    letter-spacing: -.04em;
    margin-bottom: 22px;
  }

  .machine-page .machine-summary .eyebrow {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .machine-page .machine-summary > p,
  .machine-page .machine-body-copy,
  .machine-page .machine-spec-note,
  .machine-page .machine-selection p,
  .machine-page .machine-selection li,
  .machine-page .machine-contact p,
  .machine-page .machine-related .product-info p {
    font-size: 16px;
    line-height: 1.75;
  }

  .machine-page .machine-summary .machine-lead {
    font-size: 19px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .machine-page .machine-hero-actions {
    gap: 20px;
    margin-top: 27px;
  }

  .machine-page .machine-hero-actions > .button {
    font-size: 14px;
    padding: 14px 20px;
    gap: 15px;
  }

  .machine-page .text-link {
    font-size: 14px;
  }

  .machine-page .machine-back {
    font-size: 13px;
    margin-top: 23px;
  }

  .machine-page .machine-details {
    padding-bottom: 58px;
  }

  .machine-page .machine-detail-grid > div:first-child,
  .machine-page .machine-selection {
    padding: 28px 24px;
    border-radius: 26px;
  }

  .machine-page .machine-details h2 {
    font-size: clamp(33px, 8vw, 42px);
    line-height: 1.14;
    margin-bottom: 24px;
  }

  .machine-page .machine-applications li {
    font-size: 12px;
    line-height: 1.6;
    padding: 8px 12px;
  }

  .machine-page .machine-selection h3 {
    font-size: 27px;
  }

  .machine-page .machine-selection li {
    padding-block: 17px;
    padding-left: 35px;
  }

  .machine-page .machine-selection li::before {
    top: 20px;
    font-size: 12px;
  }

  .machine-page .machine-contact > .container {
    padding: 32px 25px;
    gap: 29px;
    border-radius: 28px;
  }

  .machine-page .machine-contact h2 {
    font-size: clamp(34px, 8.6vw, 43px);
    line-height: 1.15;
    margin-bottom: 21px;
  }

  .machine-page .machine-contact .eyebrow {
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: .05em;
    margin-bottom: 17px;
  }

  .machine-page .machine-contact-actions {
    gap: 23px;
  }

  .machine-page .machine-contact-actions .button {
    font-size: 14px;
    padding-inline: 19px;
    gap: 16px;
  }

  .machine-page .machine-email,
  .machine-page .machine-whatsapp {
    font-size: 15px;
  }

  .machine-page .machine-email > span {
    font-size: 13px;
  }

  .machine-page .machine-related {
    padding-block: 62px;
  }

  .machine-page .machine-related .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
  }

  .machine-page .machine-related .section-head h2,
  .machine-page .machine-resources h2 {
    font-size: 36px;
  }

  .machine-page .machine-related .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .machine-page .machine-related .product-card {
    border-radius: 26px;
  }

  .machine-page .machine-related .product-image {
    height: 260px;
    padding: 24px 24px 6px;
  }

  .machine-page .machine-related .product-info {
    padding: 24px 26px 28px;
  }

  .machine-page .machine-related .product-info h3 {
    font-size: 26px;
  }

  .machine-page .machine-footer {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 30px;
  }

  .machine-page .machine-footer > div:last-child {
    gap: 14px 22px;
  }
}

@media (max-width: 350px) {
  .machine-page .machine-header {
    gap: 11px;
  }

  .machine-page .machine-header > .button {
    padding-inline: 13px;
    gap: 9px;
  }

  .machine-page .machine-thumbnails span {
    flex-wrap: wrap;
  }

  .machine-page .machine-detail-grid > div:first-child,
  .machine-page .machine-selection {
    padding-inline: 21px;
  }

  .machine-page .machine-contact > .container {
    padding-inline: 22px;
  }

  .machine-page .machine-related .product-image {
    height: 225px;
  }

  .machine-page .machine-footer > div:last-child {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .machine-page .machine-thumbnails > a:hover {
    border-color: #b5d4d9;
    background: #eef2f4;
  }

  .machine-page .machine-related .product-card:hover {
    box-shadow: 0 10px 30px #1d1d1f08;
  }
}

@media print {
  .machine-page .machine-intro,
  .machine-page .machine-contact > .container {
    background: #fff;
    color: #000;
  }

  .machine-page .machine-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 25px;
  }

  .machine-page .machine-main-photo {
    min-height: 0;
  }

  .machine-page .machine-contact h2,
  .machine-page .machine-contact p {
    color: #000;
  }

  .machine-page .machine-detail-grid > *,
  .machine-page .machine-related .product-card {
    break-inside: avoid;
  }
}
