/* The photos are one unlabelled collection; product-category navigation is a separate group. */
#top.product-range-hero .portfolio-gallery {
  width: min(860px, 86vw);
  margin-top: 28px;
  padding: 18px 22px 20px;
  border: 1px solid var(--portfolio-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .7);
}
#top.product-range-hero .portfolio-gallery-label,
#top.product-range-hero .portfolio-categories-label {
  margin: 0;
  color: var(--portfolio-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: left;
}
#top.product-range-hero .portfolio-gallery-images {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1.08fr 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}
#top.product-range-hero .gallery-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 160px;
  overflow: hidden;
}
#top.product-range-hero .gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#top.product-range-hero .gallery-photo-1 img { width: 92%; height: 94%; }
#top.product-range-hero .gallery-photo-3 img {
  flex: 0 0 auto;
  width: min(146%, 420px);
  height: auto;
  max-width: none;
  transform: translateX(-12%);
}
#top.product-range-hero .gallery-photo-4 img { width: 92%; height: 92%; }
#top.product-range-hero .portfolio-categories {
  width: min(860px, 86vw);
  margin-top: 22px;
  text-align: left;
}
#top.product-range-hero .portfolio-category-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 28px;
  margin-top: 10px;
}
#top.product-range-hero .portfolio-category-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 0;
  color: var(--portfolio-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  transition: color .18s ease;
}
#top.product-range-hero .portfolio-category-links a span { color: var(--portfolio-accent); }
#top.product-range-hero .portfolio-category-links a:hover { color: var(--portfolio-accent); }
#top.product-range-hero .portfolio-category-links a:focus-visible {
  outline: 2px solid var(--portfolio-accent);
  outline-offset: 5px;
  border-radius: 2px;
}
:root[data-theme="dark"] #top.product-range-hero .portfolio-gallery {
  background: rgba(24, 33, 45, .8);
}

#tech.company-position .section-head { max-width: 980px; }
#tech.company-position .company-positioning {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.5;
}
#tech.company-position .lede { max-width: 80ch; }
#tech.company-position .flywheel-stage::after { display: none; }

/* Give the anonymous expert backgrounds room without lengthening the other copy. */
#tech.company-position .flywheel-loop {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
  grid-template-areas: "partner team" "academia team" "quality team";
  align-items: stretch;
}
#tech.company-position .flywheel-stage { min-width: 0; }
#tech.company-position .flywheel-stage:nth-child(1) { grid-area: partner; }
#tech.company-position .research-team { grid-area: team; }
#tech.company-position .flywheel-stage:nth-child(3) { grid-area: academia; }
#tech.company-position .flywheel-stage:nth-child(4) { grid-area: quality; }
#tech.company-position .research-team { padding: clamp(24px, 2.8vw, 40px); }
#tech.company-position .flywheel-stage h3 {
  font-family: inherit;
  font-size: var(--t-md);
  font-weight: 750;
  line-height: 1.4;
  color: var(--ink);
}
#tech.company-position .flywheel-stage p {
  font-family: inherit;
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-2);
  overflow-wrap: break-word;
}
/* Keep the longer localized navigation usable at tablet widths. */
@media (max-width: 1240px) {
  .site-header .brand { flex-shrink: 0; }
  .site-header .nav-toggle { display: flex; flex-shrink: 0; }
  .site-header .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: var(--s-6) var(--s-5);
    border-bottom: 1px solid var(--line);
    background: var(--surface-card);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .25s var(--ease), visibility .25s;
  }
  .site-header .site-nav.is-open { transform: translateY(0); visibility: visible; }
  .site-header .site-nav > a { display: flex; align-items: center; min-height: 44px; }
  .site-header .lang-switch { margin-top: var(--s-2); }
}
@media (max-width: 850px) {
  #tech.company-position .flywheel-loop {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "partner" "team" "academia" "quality";
  }
}

@media (max-width: 980px) {
  #top.product-range-hero .portfolio-gallery,
  #top.product-range-hero .portfolio-categories { width: min(860px, 92vw); }
  #top.product-range-hero .portfolio-gallery-images { gap: 16px; }
}
@media (max-width: 700px) {
  #top.product-range-hero .portfolio-gallery-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #top.product-range-hero .gallery-photo { height: 134px; }
}
@media (max-width: 560px) {
  #top.product-range-hero .portfolio-gallery {
    width: 100%;
    margin-top: 22px;
    padding: 14px 14px 16px;
    border-radius: 20px;
  }
  #top.product-range-hero .portfolio-gallery-images { gap: 6px 16px; margin-top: 8px; }
  #top.product-range-hero .gallery-photo { height: 118px; }
  #top.product-range-hero .portfolio-categories { width: 100%; margin-top: 20px; }
  #top.product-range-hero .portfolio-category-links { gap: 4px 22px; }
  #top.product-range-hero .portfolio-category-links a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #top.product-range-hero .portfolio-category-links a { transition: none; }
  .site-header .site-nav { transition: none; }
}
/* A single direct email contact, with no inquiry form or submission workflow. */
#contact.contact-simple .contact-grid > * { min-width: 0; }
#contact.contact-simple .contact-card {
  gap: 26px;
  padding: clamp(24px, 3.5vw, 44px);
}
#contact.contact-simple .contact-row { font-size: 16px; line-height: 1.7; }
#contact.contact-simple .contact-email a {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  max-width: 100%;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
/* Preserve the official Kawasaki Heavy Industries artwork and brand colors. */
.customers .logo-kawasaki img {
  width: 194px;
  max-width: calc(100% - 32px);
  height: auto;
  max-height: none;
  filter: none;
}
.customers .logo-kawasaki span {
  max-width: 194px;
  padding-inline: 4px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .02em;
}
/* Clickable customer browsing, with the original marquee as the no-JS fallback. */
.customer-carousel-ready .logo-wall-track { animation: none; }
.customer-carousel-ready .logo-slot { opacity: 1; }
.customer-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.customer-carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--cyan-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.customer-carousel-button svg { width: 20px; height: 20px; flex-shrink: 0; }
.customer-carousel-next svg { order: 1; }
.customer-carousel-pause { color: var(--ink-2); min-width: 154px; }
.customer-carousel-button:hover { border-color: var(--cyan-accent); background: var(--glass-bg-strong); }
.customer-carousel-button:focus-visible { outline: 2px solid var(--cyan-accent); outline-offset: 4px; }
.customer-carousel-button[hidden] { display: none; }
.customer-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .customer-carousel-controls { gap: 8px; margin-top: 20px; }
  .customer-carousel-button { padding: 10px 13px; }
  .customer-carousel-previous, .customer-carousel-next { width: 46px; padding: 10px; }
  .customer-carousel-previous span, .customer-carousel-next span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .customer-carousel-button { transition: none; }
}
/* Full-bleed hero background; the copy and gallery retain their own width caps. */
#top.product-range-hero {
  width: 100%;
  max-width: none;
}
/* Blend only the validation backdrop; keep all content fully opaque. */
#ai.manufacturing {
  --validation-fade: clamp(44px, 7vw, 96px);
  --validation-entry: #f6f3ef;
  --validation-mask: linear-gradient(to bottom,
    transparent,
    rgba(0,0,0,.15625) calc(var(--validation-fade) * .25),
    rgba(0,0,0,.5) calc(var(--validation-fade) * .5),
    rgba(0,0,0,.84375) calc(var(--validation-fade) * .75),
    #000 var(--validation-fade),
    #000 calc(100% - var(--validation-fade)),
    rgba(0,0,0,.84375) calc(100% - var(--validation-fade) * .75),
    rgba(0,0,0,.5) calc(100% - var(--validation-fade) * .5),
    rgba(0,0,0,.15625) calc(100% - var(--validation-fade) * .25),
    transparent);
  position: relative;
  isolation: isolate;
  background: linear-gradient(to bottom, var(--validation-entry), transparent var(--validation-fade));
}
#ai.manufacturing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 18%, rgba(254,68,0,.18), transparent 34%),
    linear-gradient(145deg, var(--validation-bg), #222428);
  -webkit-mask-image: var(--validation-mask);
  mask-image: var(--validation-mask);
}
:root[data-theme="dark"] #ai.manufacturing { --validation-entry: #0a0f16; }
:root[data-theme="dark"] #ai.manufacturing::before {
  background:
    radial-gradient(circle at 72% 18%, rgba(254,68,0,.18), transparent 34%),
    radial-gradient(circle at 14% 88%, rgba(254,68,0,.10), transparent 28%),
    linear-gradient(145deg, #05070b, #0b1724);
}
