/* Bai Rundschleiftechnik GmbH – Stylesheet
   Schriften liegen lokal im Ordner /fonts (keine externen Abrufe). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --mist: #f4f6f8;
  --line: #e2e6ea;
  --ink: #12171c;
  --ink-soft: #55606b;
  --blue: #3d4f6e;        /* Blau aus dem Logo */
  --blue-deep: #2b3a55;
  --blue-tint: #edf0f5;
  --night: #0d1116;
  --ok: #1d8a4e;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { height: 52px; width: auto; flex: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.brand-text span { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.nav ul { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft); padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); border-color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .98rem;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: .55rem 1rem; font-size: .9rem; }
.btn:active { transform: translateY(1px); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 0; background: linear-gradient(180deg, var(--mist), var(--paper) 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.hero-left, .hero-right { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-media { flex: 1; border-radius: var(--radius); overflow: hidden; min-height: 240px; background: var(--mist); margin: 0; }
.hero-right .contact-card { flex: 1; display: flex; flex-direction: column; }
.hero-right .contact-card .hours { flex: 1; }
.hero-media { position: relative; }
.hero-media img { position: absolute; inset: 0; }
.hero-right .hero-actions { margin-top: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 {
  font-size: clamp(1.8rem, 2.9vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 650;
  margin: .7rem 0 .9rem;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.12rem); color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(18, 23, 28, .04), 0 18px 40px -18px rgba(18, 23, 28, .18);
  overflow: hidden;
}
.contact-card h2 { font-size: .78rem; font-family: var(--mono); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); padding: 1.1rem 1.4rem .2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.contact-rows { padding: .4rem 1.4rem 1rem; }
.contact-rows a, .contact-rows div.row {
  display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: .2rem .6rem;
  padding: .8rem 0; text-decoration: none; border-bottom: 1px solid var(--line);
}
.contact-rows > :last-child { border-bottom: 0; }
.contact-rows .ico { width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.contact-rows .ico svg { width: 1.15rem; height: 1.15rem; }
.contact-rows small { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.2; }
.contact-rows b { font-weight: 600; font-size: 1.08rem; }
.contact-rows a:hover b { color: var(--blue); }

.hours { border-top: 1px solid var(--line); background: var(--mist); padding: 1rem 1.4rem 1.2rem; }
.hours h3 { font-size: .78rem; font-family: var(--mono); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.2rem; font-size: .98rem; }
.hours dt { font-weight: 600; }
.hours dd { font-family: var(--mono); font-size: .9rem; text-align: right; }
.hours dd.todo { color: #9a5b00; }
.hours .today { color: var(--blue); }
.status { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #b3bcc5; }
.status.open { color: var(--ok); }
.status.open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(29, 138, 78, .15); }
.status[hidden] { display: none; }

/* Kennzahlen */
.facts { margin-top: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 1.6rem 1.5rem 1.5rem 0; }
.facts li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.facts .num { font-family: var(--mono); font-weight: 500; font-size: clamp(1.15rem, 2.1vw, 1.6rem); letter-spacing: -.02em; display: block; white-space: nowrap; }
.facts .lbl { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 650; margin-top: .8rem; text-wrap: balance; }
.section-head > p { color: var(--ink-soft); max-width: 34em; }
.alt { background: var(--mist); }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.service .idx { font-family: var(--mono); font-size: .8rem; color: var(--blue); }
.service h3 { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.15; }
.service p { color: var(--ink-soft); font-size: .98rem; }
.service ul { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .4rem; font-size: .95rem; }
.service li { padding-left: 1.2rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: 2px; background: var(--blue); }

.spec { margin-top: 1.25rem; background: var(--night); color: #e8edf2; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); }
.spec h3 { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: #7fc1ee; margin-bottom: 1rem; }
.spec table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec th, .spec td { text-align: left; padding: .8rem 0; border-top: 1px solid rgba(255, 255, 255, .12); vertical-align: baseline; }
.spec th { font-weight: 500; padding-right: 1.5rem; }
.spec td { font-family: var(--mono); font-size: .92rem; color: #fff; white-space: nowrap; }
.spec td:last-child { text-align: right; }

/* Maschinenpark */
.group-title { display: flex; align-items: baseline; gap: 1rem; margin: 2.5rem 0 1.1rem; }
.group-title:first-of-type { margin-top: 0; }
.group-title h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.group-title span { flex: 1; height: 1px; background: var(--line); }
.machines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.machine { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.machine button { all: unset; cursor: zoom-in; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.machines.tall .machine button { aspect-ratio: 4 / 5; }
.machine button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.machine img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.machine button:hover img { transform: scale(1.04); }
.machine-body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .45rem; }
.machine .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.machine h4 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; }
.machine p { font-size: .93rem; color: var(--ink-soft); }
.machine .data { font-family: var(--mono); font-size: .82rem; color: var(--ink); padding-top: .5rem; margin-top: .3rem; border-top: 1px solid var(--line); }
.more-equipment { margin-top: 1.5rem; color: var(--ink-soft); font-size: .98rem; }
.more-equipment b { color: var(--ink); font-weight: 600; }

/* Werkstücke */
.work { background: var(--night); color: #fff; }
.work .section-head > p { color: #a7b2bd; }
.work .eyebrow { color: #7fc1ee; }
.parts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; }
.parts figure { background: #000; grid-column: span 2; display: flex; flex-direction: column; }
.parts .pic { flex: 1; display: grid; place-items: center; padding: 1.5rem; min-height: 230px; }
.parts img { max-height: 220px; width: auto; }
.parts figcaption { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #a7b2bd; padding: .8rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.work-note { margin-top: 1.5rem; color: #a7b2bd; font-size: .98rem; max-width: 46em; }

/* Portrait */
.portrait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait-text { display: grid; gap: 1.1rem; }
.portrait-text p { color: var(--ink-soft); }
.portrait-text p.big { font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.portrait figure img { border-radius: var(--radius); width: 100%; }
.timeline { margin-top: 2rem; border-left: 2px solid var(--line); display: grid; gap: 1.5rem; }
.timeline li { padding-left: 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.timeline .year { font-family: var(--mono); font-weight: 500; color: var(--blue); display: block; }
.credo { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1rem 3rem; align-items: baseline; }
.credo ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.credo li { border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-weight: 500; font-size: .98rem; background: #fff; }

/* Wissenswertes */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--blue); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); display: grid; gap: .8rem; }
.faq .answer .mono { color: var(--ink); background: var(--mist); border-radius: 8px; padding: .7rem .9rem; font-size: .92rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.contact-big { display: grid; gap: 1.6rem; align-content: start; }
.contact-big .item small { font-family: var(--mono); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: .2rem; }
.contact-big .item a, .contact-big .item address { font-style: normal; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; text-decoration: none; }
.contact-big .item a:hover { color: var(--blue); }
.contact-big .hours { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 100%,
    #fff; display: grid; place-items: center; text-align: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-inner { padding: 2rem; display: grid; gap: 1rem; justify-items: center; background: radial-gradient(closest-side, #fff 60%, transparent); }
.map-pin { width: 3rem; height: 3rem; color: var(--blue); }
.map-inner p { font-weight: 600; font-size: 1.1rem; line-height: 1.35; }
.map-inner small { color: var(--ink-soft); max-width: 28em; font-size: .82rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* Fusszeile */
.site-footer { background: var(--night); color: #a7b2bd; padding: 3rem 0 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: .5rem; }
.site-footer a { text-decoration: none; color: #dfe5ea; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: .3rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .85rem; }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1300px); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(8, 11, 14, .88); }
dialog.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; margin-inline: auto; }
dialog.lightbox p { color: #fff; text-align: center; margin-top: .8rem; font-size: .95rem; }
dialog.lightbox form { position: fixed; top: 1rem; right: 1rem; }
dialog.lightbox form button { background: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.3rem; line-height: 1; }

/* Rechtstexte */
.legal { max-width: 760px; padding: clamp(3rem, 7vw, 5rem) 0; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; margin: .8rem 0 2rem; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 2.5rem 0 .7rem; }
.legal p { color: var(--ink-soft); margin-bottom: .9rem; }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: .65rem 0; border-top: 1px solid var(--line); font-weight: 400; }
.legal th { color: var(--ink-soft); width: 45%; }
.legal td { font-weight: 500; }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .portrait, .contact, .section-head { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .services { grid-template-columns: 1fr; }
  .machines { grid-template-columns: repeat(2, 1fr); }
  .parts figure { grid-column: span 3; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--pad) 1rem; }
  .nav a { display: block; padding: .85rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .header-call span { display: none; }
  .header-call { padding: .7rem; }
}
@media (max-width: 600px) {
  .machines { grid-template-columns: 1fr; }
  .parts figure { grid-column: span 6; }
  .spec td { white-space: normal; }
  .spec table, .spec tbody, .spec tr, .spec th, .spec td { display: block; }
  .spec th { padding-bottom: 0; }
  .spec td { border-top: 0; padding-top: .2rem; }
  .spec td:last-child { text-align: left; padding-top: 0; }
  .credo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts li { padding: 1.1rem 1rem 1.1rem 0; }
  .facts li + li { padding-left: 1rem; }
  .brand-text span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .machine img { transition: none; }
}
@media print {
  .site-header, .map, .hero-actions, .nav-toggle { display: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .site-header .wrap { gap: .6rem; }
  .brand-text strong { font-size: .95rem; }
}

/* Maschinenkarten ohne Foto: Piktogramm + Datenliste */
.machines.four { grid-template-columns: repeat(4, 1fr); }
.machine-icon { background: linear-gradient(180deg, #fff, var(--blue-tint)); border-bottom: 1px solid var(--line); padding: 1.6rem 1.3rem 1.2rem; }
.machine-icon svg { width: 100%; max-width: 190px; height: auto; margin-inline: auto; display: block; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.machine-body { flex: 1; align-content: start; }
.machine-data { margin-top: .6rem; border-top: 1px solid var(--line); font-size: .9rem; }
.machine-data div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.machine-data div:last-child { border-bottom: 0; padding-bottom: 0; }
.machine-data dt { color: var(--ink-soft); }
.machine-data dd { font-family: var(--mono); font-size: .84rem; text-align: right; }
@media (max-width: 1000px) { .machines.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .machines.four { grid-template-columns: 1fr; } .brand-mark { height: 42px; } }

.hours dd { line-height: 1.45; }
.machine-photo { background: #fff; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: .8rem; }
.machine-photo img { max-height: 100%; width: auto; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
  .hero-right .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
