/* Homepage layout. Shared navigation, type and buttons are defined in site.css. */
.om-home {
  --home-dark: #081b2e;
  --home-strong: #122e4a;
  --home-accent: #83d5f8;
  --home-surface: #f2f7fb;
  --home-card-radius: 12px;
}

.om-home .section { padding-block: clamp(2.5rem, 5vw, 4.8rem); }
.om-home .section-heading { margin-block-end: clamp(1.25rem, 2.6vw, 2rem); }
.om-home .section .eyebrow { margin-block-end: .55rem; }

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block-end: 1px solid var(--line);
  background: #fff;
  color: var(--home-dark);
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 3.75rem;
  pointer-events: none;
  background: linear-gradient(to left, #fff 25%, #fff 33%, #fffffff5 39%, #ffffffb8 45%, #fff0 65%);
}

.hero-stage {
  display: grid;
  align-items: center;
  min-height: clamp(370px, 35.5vw, 540px);
  padding-block: 2.25rem;
}

.home-hero .hero-copy {
  max-width: min(49%, 610px);
  padding: 0;
  animation: none;
}

.home-hero .eyebrow { color: var(--blue); margin-block-end: .95rem; }
.home-hero h1 { font-size: clamp(2.55rem, 5.15vw, 4.9rem); line-height: 1.12; text-wrap: pretty; }
.home-hero h1 span { display: block; }
.home-hero h1 [data-hero-accent] {
  margin-block-start: .28em;
  color: var(--blue);
  font-size: .61em;
  line-height: 1.24;
}

.home-hero .hero-description {
  max-width: 38ch;
  margin-block: clamp(1rem, 2vw, 1.6rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  line-height: 1.75;
}

.home-hero-actions { gap: 10px; }
.home-hero-actions .button { min-height: 48px; border-radius: 7px; }
.home-hero-actions .button-primary { background: var(--blue); color: #fff; }
.home-hero-actions .button-primary:hover { background: #0b355c; }
.home-hero-actions .button-outline { border-color: #9cb2c5; background: #fff; color: var(--blue); }
.home-hero-actions .button-outline:hover { background: #edf6ff; }

.home-hero .hero-photos {
  position: absolute;
  z-index: -2;
  inset: 0 auto 3.75rem 0;
  width: min(72%, 1260px);
  height: auto;
  overflow: hidden;
  background: var(--home-surface);
}

.home-hero .hero-photo {
  visibility: hidden;
  transition: opacity .44s ease, visibility .44s;
}

.home-hero .hero-photo.is-active { visibility: visible; }
.home-hero .hero-photo img { object-position: 50% 52%; transform: none; }
.home-hero .hero-photo.is-active img { animation: none; }

.home-hero .hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(6px, 1.6vw, 22px);
  border-color: var(--line);
  padding-block: .5rem;
  background: #fff;
}

.hero-scenes { grid-column: 1; grid-row: 1; display: flex; gap: 4px; }
.home-hero .hero-caption { grid-column: 2; grid-row: 1; white-space: nowrap; }
.home-hero .hero-count { color: var(--muted); }
.home-hero .hero-count strong { color: var(--home-dark); }
.home-hero .hero-controls { grid-column: 3; grid-row: 1; gap: 5px; }

.hero-scenes button {
  position: relative;
  min-height: 44px;
  padding: .3rem clamp(.55rem, 1.5vw, 1rem);
  color: #385673;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: .94rem;
  font-weight: 600;
}

.hero-scenes button:hover { background: #ecf5fd; color: var(--blue); }
.hero-scenes button[aria-current="true"] {
  color: var(--blue);
  background: #eaf4fc;
  box-shadow: inset 0 -2px var(--blue);
}

.home-hero .circle-control {
  width: 44px;
  height: 44px;
  border-color: var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
}
.home-hero .circle-control:hover { background: #ecf5fd; }

@keyframes home-copy-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.home-hero.is-changing .hero-copy { animation: home-copy-enter .38s ease-out both; }

.om-home .product-band { background: #fff; color: var(--ink); }
.home-equipment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(136px, 1fr));
  gap: clamp(10px, 1.6vw, 19px);
}
.home-equipment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--home-card-radius);
  background: #fff;
}
.home-equipment-card:hover { border-color: #7cabcb; }
.home-equipment-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: filter .3s ease;
}
.home-equipment-card:not(.home-equipment-card--main) img { grid-area: 1 / 2; aspect-ratio: 1.45; }
.home-equipment-card:hover img { filter: brightness(1.08); }
.home-equipment-card > div {
  position: relative;
  min-width: 0;
  align-self: center;
  padding: clamp(.85rem, 2.1vw, 1.5rem);
  padding-inline-end: 3.1rem;
}
.home-equipment-card h3 { font-size: clamp(1.06rem, 2.2vw, 1.52rem); line-height: 1.35; }
.home-equipment-card p { margin-block-start: .35rem; color: var(--muted); font-size: clamp(.89rem, 1.4vw, 1rem); line-height: 1.6; }
.home-equipment-card--main {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-row: span 2;
  align-content: end;
  min-height: clamp(285px, 29vw, 390px);
  border: 0;
  color: #fff;
  background: var(--home-strong);
}
.home-equipment-card--main img { position: absolute; inset: 0; z-index: -2; object-position: 50% 52%; }
.home-equipment-card--main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #081c30 4%, #081c308c 46%, #081c3000 82%); }
.home-equipment-card--main h3 { font-size: clamp(1.33rem, 2.55vw, 1.97rem); }
.home-equipment-card--main p { color: #edf4fb; }
.equipment-arrow {
  position: absolute;
  inset-inline-end: .75rem;
  inset-block-end: .85rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--blue);
  background: #edf5fa;
}
.home-equipment-card--main .equipment-arrow { color: var(--home-dark); background: var(--home-accent); }
.home-equipment-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-block-start: .9rem;
}
.home-equipment-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .35rem;
  min-height: 46px;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
}
.home-equipment-links a:hover { border-color: #7cabcb; background: var(--home-surface); }
.home-equipment-links [data-icon] { color: var(--blue); }

.home-services { border-block: 1px solid var(--line); background: #fff; }
.home-services .service-showcase {
  display: grid;
  grid-template-columns: minmax(145px, .24fr) minmax(0, 1fr);
  gap: .6rem;
  padding: .6rem;
  border-radius: var(--home-card-radius);
  background: var(--home-surface);
}
.home-services .service-tabs {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: .5rem;
  margin: 0;
  border: 0;
  padding: .25rem;
  background: transparent;
  scroll-padding-inline: .25rem;
  scrollbar-width: thin;
}
.home-services .service-tabs button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: start;
  min-height: 44px;
  gap: .5rem;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: .93rem;
  white-space: nowrap;
}
.home-services .service-tabs button:hover { border-color: #7cabcb; }
.home-services .service-tabs button[aria-selected="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: inset -3px 0 var(--home-accent);
}
.home-services .service-panel {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--home-card-radius);
  background: #fff;
}
.service-panel-copy { padding: clamp(1.3rem, 4vw, 3.15rem); align-self: center; }
.service-panel-copy h3 { font-size: clamp(1.45rem, 2.9vw, 2.35rem); }
.service-panel-copy p { margin-block: .65rem .85rem; color: var(--muted); }
.service-panel-copy ul { margin-block: 0 1.2rem; }
.service-panel-copy li::marker { color: var(--accent); }
.service-panel-media { min-width: 0; min-height: 260px; position: relative; }
.home-services .service-panel-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}
.home-services .service-panel.is-changing { animation: panel-enter .3s ease-out both; }

.home-about .about-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 5.1vw, 5.25rem);
  align-items: center;
}
.intro-copy > p:not(.eyebrow), .partner-grid p { margin-block: .65rem 1rem; color: var(--muted); max-width: 54ch; }
.intro-photo { position: relative; }
.intro-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.4;
  object-fit: cover;
  object-position: 50% 64%;
  border-radius: var(--home-card-radius);
}
.intro-photo figcaption {
  position: absolute;
  inset-inline-start: .7rem;
  inset-block-end: .7rem;
  padding: .33rem .68rem;
  border-radius: 5px;
  background: var(--home-dark);
  color: #fff;
  font-size: .85rem;
}
.home-support {
  display: grid;
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin-block: 1.2rem;
}
.home-support li { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.home-support [data-icon] { color: var(--blue); }
.om-home .partner-section { padding-block: 0 clamp(2.5rem, 5vw, 4.8rem); }
.partner-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.4rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--home-card-radius); }
.partner-grid h2 { font-size: clamp(1.3rem, 2.9vw, 2rem); }
.partner-grid p { margin-block-end: .4rem; }

.maker-section, .home-news { background: #fff; }
.om-home .maker-section { padding-block-start: 0; }
.equipment-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.equipment-brand-grid a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--home-card-radius);
  background: #fff;
  transition: border-color .2s ease;
}
.equipment-brand-grid a:hover,
.equipment-brand-grid a:focus-visible { border-color: #7cabcb; }
.equipment-brand-mark {
  display: grid;
  min-height: clamp(6.1rem, 10.5vw, 8.7rem);
  place-items: center;
  padding: .8rem 1rem;
}
.equipment-brand-mark img {
  width: min(100%, 10rem);
  height: clamp(2.65rem, 6vw, 4.6rem);
  object-fit: contain;
}
.equipment-brand-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2.85rem;
  padding: .55rem .85rem;
  border-block-start: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.equipment-brand-grid [data-icon] { color: var(--blue); }

.news-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #a7bfd1 transparent;
  padding: 3px 3px 10px;
}
.news-rail > a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--home-card-radius);
  background: #fff;
}
.news-rail > a:hover { border-color: #7cabcb; }
.news-rail > a:focus-visible, .service-tabs button:focus-visible { outline-offset: -3px; }
.news-rail img { width: 100%; height: auto; aspect-ratio: 2.1; object-fit: cover; }
.news-rail > a > div { position: relative; flex: 1; padding: .75rem 1rem 1rem 2.6rem; }
.news-rail > a > div p { margin-block-end: .28rem; color: var(--blue); font-size: .82rem; font-weight: 600; }
.news-rail > a > div > span { position: absolute; inset-inline-end: .85rem; inset-block-end: .9rem; color: var(--blue); }
.news-rail h3 { font-size: clamp(1rem, 1.8vw, 1.35rem); }
.news-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; }
.news-controls { display: flex; align-items: center; gap: .4rem; }
.news-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); background: #fff; }
.news-controls button:hover:not(:disabled) { background: #e2f0fa; }
.news-controls button:disabled { opacity: .45; }

.om-home .quote-band { background: var(--home-surface); color: var(--home-dark); padding-block: clamp(2rem, 4.7vw, 3.6rem); }
.om-home .quote-band p { color: var(--muted); }
.om-home .quote-band .button-primary { background: var(--blue); color: #fff; }
.om-home .quote-band .button-row .button { white-space: nowrap; }
.om-home .wa-float { inset-inline-start: auto; inset-inline-end: 18px; }

@media (max-width: 850px) {
  .news-rail { grid-auto-columns: calc((100% - 16px) / 2.15); }
}

@media (max-width: 690px) {
  .home-hero { --mobile-banner-image: clamp(138px, 36vw, 194px); }
  .hero-stage { min-height: 0; padding-block: calc(var(--mobile-banner-image) - 27px) .85rem; }
  .home-hero::before { inset: 0 0 auto; height: var(--mobile-banner-image); background: linear-gradient(to bottom, #fff0 38%, #ffffff63 67%, #fff 100%); }
  .home-hero .hero-copy { max-width: none; }
  .home-hero .hero-photos { inset: 0 0 auto; width: 100%; height: var(--mobile-banner-image); }
  .home-hero .hero-photo img { object-position: 50% 49%; }
  .home-hero h1 { font-size: clamp(2rem, 8.9vw, 3.2rem); }
  .home-hero h1 [data-hero-accent] { font-size: .64em; }
  .home-hero .eyebrow { margin-block-end: .35rem; }
  .home-hero .hero-description { margin-block: .55rem .75rem; font-size: .96rem; }
  .home-hero-actions .button { min-height: 44px; }
  .home-hero .hero-bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .home-hero .hero-caption { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .home-hero .hero-controls { grid-column: 2; }
  .home-hero .circle-control:not([data-hero-play]) { display: none; }
  .hero-scenes button { flex: 1; padding-inline: .25rem; font-size: .85rem; }
  .home-equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .home-equipment-card--main { grid-column: 1 / -1; grid-row: auto; min-height: clamp(190px, 55vw, 265px); }
  .home-equipment-card:not(.home-equipment-card--main) { display: flex; flex-direction: column; }
  .home-equipment-card:not(.home-equipment-card--main) img { height: clamp(90px, 27vw, 155px); }
  .home-equipment-card:not(.home-equipment-card--main) > div { align-self: stretch; flex: 1; padding-inline-end: .85rem; padding-block-end: 2.75rem; }
  .home-equipment-card:not(.home-equipment-card--main) .equipment-arrow { inset-block-end: .45rem; }
  .home-equipment-links a { flex-wrap: wrap; align-content: center; font-size: .84rem; }
  .home-services .service-showcase { grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: .45rem; }
  .home-services .service-tabs { flex-direction: row; overflow-x: auto; }
  .home-services .service-tabs button[aria-selected="true"] { box-shadow: inset 0 -2px var(--home-accent); }
  .home-services .service-panel { grid-template-columns: minmax(0, 1fr); }
  .service-panel-media { grid-row: 1; min-height: 0; aspect-ratio: 2.05; }
  .home-about .about-split { grid-template-columns: minmax(0, 1fr); }
  .intro-photo img { aspect-ratio: 1.65; }
  .equipment-brand-grid { gap: .45rem; }
  .equipment-brand-mark { min-height: 4.65rem; padding: .48rem; }
  .equipment-brand-mark img { height: 2.65rem; }
  .equipment-brand-label {
    min-height: 2.65rem;
    justify-content: center;
    padding: .35rem .28rem;
    font-size: .8rem;
    text-align: center;
    line-height: 1.36;
  }
  .equipment-brand-grid [data-icon] { display: none; }
  .news-rail { grid-auto-columns: 82%; gap: .65rem; }
}

@media (max-width: 370px) {
  .home-hero-actions .button { padding-inline: .7rem; gap: .35rem; font-size: .84rem; }
  .home-equipment-links a { padding-inline: .45rem; }
  .home-equipment-links { gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-photo, .home-equipment-card img { transition: none; }
  .home-hero.is-changing .hero-copy, .home-services .service-panel.is-changing { animation: none; }
}
