/**
 * Homepage composition only.
 *
 * Global colour, typography, header, footer, buttons, containers and responsive
 * bands are owned by style.css and global-scale.css. This file only describes
 * the homepage's approved content sequence and local editorial layouts.
 */

.theme-d section[id] {
  scroll-margin-top: 96px;
}

.theme-d h1,
.theme-d h2,
.theme-d h3 {
  text-wrap: balance;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--nv2-blue-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section {
  width: var(--nv2-shell);
  margin-inline: auto;
  padding: var(--nv2-section-space) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--nv2-space-xl);
  margin-bottom: var(--nv2-space-l);
}

.section-heading > div:first-child {
  max-width: 850px;
}

.section-heading h2,
.d-oem h2,
.d-why h2,
.d-inquiry h2 {
  margin: 0;
  color: var(--nv2-text);
  font-family: var(--nv2-serif);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.02;
}

.heading-note {
  max-width: 440px;
  margin: 0;
  color: var(--nv2-muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.button,
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nv2-text);
  font-size: 13px;
  font-weight: 600;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--nv2-line-strong);
  background: transparent;
  letter-spacing: .02em;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.button:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--nv2-blue);
  background: var(--nv2-blue);
  color: #fff;
}

.button.primary:hover {
  border-color: #4b82ed;
  background: #4b82ed;
}

.text-link {
  min-height: 44px;
  gap: 12px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--nv2-line-strong);
}

.text-link span {
  color: var(--nv2-blue-soft);
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

/* Shared product-led hero language, aligned with standard page heroes. */
.hero-d {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 4.5vw, 64px);
  width: var(--nv2-shell);
  min-height: clamp(560px, 47vw, 660px);
  margin-inline: auto;
  padding: 108px 0 52px;
  background: var(--nv2-bg);
}

.d-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  animation: d-content-rise .7s cubic-bezier(.16, .8, .24, 1) both;
}

.hero-d h1 {
  max-width: 10.5ch;
  margin: 0;
  color: var(--nv2-text);
  font-family: var(--nv2-serif);
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .98;
}

.hero-d h1 em {
  color: var(--nv2-blue-soft);
  font-weight: 400;
}

.hero-d .lede {
  max-width: 570px;
  margin: 20px 0 24px;
  color: var(--nv2-muted);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
}

.d-hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--nv2-line);
  background: #d8d3cb;
  animation: d-visual-enter .85s .08s cubic-bezier(.16, .8, .24, 1) both;
}

.d-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--nv2-product-position, 50% 50%);
  transform: scale(var(--nv2-product-scale, 1));
  transform-origin: var(--nv2-product-origin, var(--nv2-product-position, 50% 50%));
}

.d-hero-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(13, 15, 16, .58);
  color: #fff;
  backdrop-filter: blur(18px);
}

.d-hero-visual figcaption span {
  color: var(--nv2-muted);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.d-hero-visual figcaption strong {
  font-family: var(--nv2-serif);
  font-size: 20px;
  font-weight: 400;
}

@keyframes d-content-rise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes d-visual-enter {
  from { opacity: 0; transform: translate3d(32px, 0, 0) scale(.99); }
  to { opacity: 1; transform: none; }
}

/* Product categories */
.d-categories {
  padding-block: var(--nv2-section-space-compact);
  border-top: 1px solid var(--nv2-line);
}

.d-category-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.54fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--nv2-space-s);
  aspect-ratio: 2.35 / 1;
}

.d-category-mosaic .category {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--nv2-line);
  background: #d8d3cb;
  color: #fff;
}

.d-category-mosaic .d-category-lead {
  grid-column: 1;
  grid-row: 1 / 3;
}

.d-category-mosaic .category:nth-child(2) { background: #c9c7c1; }
.d-category-mosaic .category:nth-child(3) { background: #5c5b59; }

.d-category-mosaic .category img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--nv2-product-position, 50% 50%);
  transform: scale(var(--nv2-product-scale, 1));
  transform-origin: var(--nv2-product-origin, var(--nv2-product-position, 50% 50%));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.d-category-mosaic .category::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 48%, rgba(5, 6, 6, .88));
  content: "";
}

.d-category-mosaic .category > span {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.d-category-mosaic .category b {
  color: var(--nv2-blue-soft);
  font-size: 10px;
}

.d-category-mosaic .category strong {
  font-family: var(--nv2-serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.06;
}

.d-category-mosaic .category i {
  font-size: 11px;
  font-style: normal;
  transition: transform .2s ease;
}

/* Featured product comparison */
.d-featured {
  width: 100%;
  padding-block: var(--nv2-section-space-compact);
  border-top: 1px solid var(--nv2-line);
  background: var(--nv2-bg-soft);
}

.d-featured > * {
  width: var(--nv2-shell);
  margin-inline: auto;
}

.d-featured .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--nv2-space-m);
}

.d-featured .product-card {
  min-width: 0;
  --nv2-product-fit: cover;
  --nv2-product-scale: 1;
  --nv2-product-position: 50% 50%;
}

.d-featured .product-card > a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.d-featured .product-card figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--nv2-line);
  background: #d8d3cb;
}

.d-featured .product-card img {
  width: 100%;
  height: 100%;
  object-fit: var(--nv2-product-fit, cover);
  object-position: var(--nv2-product-position);
  transform: scale(var(--nv2-product-scale));
  transform-origin: var(--nv2-product-origin, var(--nv2-product-position));
  transition: transform .25s ease;
}

.d-featured .product-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 2px 0;
}

.d-featured .product-card div > span {
  color: var(--nv2-blue-soft);
  font-size: 10px;
  letter-spacing: .13em;
}

.d-featured .product-card h3 {
  margin: 8px 0 16px;
  color: var(--nv2-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.42;
}

.d-featured .product-card i {
  margin-top: auto;
  color: var(--nv2-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.d-mobile-catalog {
  margin-top: 24px;
}

/* Product inquiry process */
.d-oem {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 5.5vw, 80px);
  padding: var(--nv2-section-space) max(40px, calc((100vw - 1320px) / 2));
  border-top: 1px solid var(--nv2-line);
  background: var(--nv2-panel-warm);
  color: var(--nv2-text);
}

.d-oem-intro {
  position: sticky;
  top: 104px;
  align-self: start;
  max-width: 500px;
}

.d-oem-intro h2 {
  max-width: 8ch;
}

.d-oem-intro > p:not(.eyebrow) {
  max-width: 470px;
  margin: 22px 0 18px;
  color: var(--nv2-muted);
  font-size: 17px;
}

.d-process {
  width: 100%;
  max-width: 680px;
  justify-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-process li {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--nv2-line);
}

.d-process li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.d-process figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--nv2-line);
  background: var(--nv2-panel);
}

.d-process figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.d-process li:nth-child(2) img {
  object-position: center 58%;
}

.d-process-copy {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 20px;
}

.d-process-copy > span {
  grid-row: 1 / 3;
  color: var(--nv2-blue-soft);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.d-process-copy h3 {
  margin: 0;
  color: var(--nv2-text);
  font-family: var(--nv2-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.06;
}

.d-process-copy p {
  grid-column: 2;
  max-width: 580px;
  margin: 8px 0 0;
  color: var(--nv2-muted);
}

/* Support details */
.d-why {
  padding: var(--nv2-section-space-compact) 0;
  border-top: 1px solid var(--nv2-line);
  background: var(--nv2-bg);
}

.d-why-content {
  width: var(--nv2-shell);
  margin-inline: auto;
}

.d-why-content header {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: end;
  gap: var(--nv2-space-l);
  margin-bottom: var(--nv2-space-l);
}

.d-why-content h2 {
  max-width: 820px;
}

.d-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--nv2-line);
  border-left: 1px solid var(--nv2-line);
}

.d-why-grid article {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--nv2-line);
  border-bottom: 1px solid var(--nv2-line);
}

.d-why-grid article > span {
  color: var(--nv2-blue-soft);
  font-family: var(--nv2-serif);
  font-size: 30px;
}

.d-why-grid h3 {
  margin: 20px 0 8px;
  color: var(--nv2-text);
  font-size: 15px;
}

.d-why-grid p {
  margin: 0;
  color: var(--nv2-muted);
  font-size: 13px;
}

/* FAQ */
.d-faq {
  width: min(1040px, var(--nv2-shell));
}

.d-faq-list {
  border-top: 1px solid var(--nv2-line);
}

.d-faq-list details {
  border-bottom: 1px solid var(--nv2-line);
}

.d-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 20px 0;
  color: var(--nv2-text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

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

.d-faq-list summary::after {
  color: var(--nv2-blue-soft);
  content: "+";
  font-size: 22px;
  font-weight: 400;
  transition: transform .18s ease;
}

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

.d-faq-list details p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--nv2-muted);
}

/* Inquiry */
.d-inquiry {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(40px, 6vw, 72px);
  padding: var(--nv2-section-space) max(40px, calc((100vw - 1320px) / 2));
  border-top: 1px solid var(--nv2-line);
  background: var(--nv2-bg-soft);
  color: var(--nv2-text);
}

.inquiry-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--nv2-muted);
}

.d-inquiry address {
  display: grid;
  gap: 7px;
  max-width: 500px;
  margin-top: 30px;
  color: var(--nv2-text);
  font-size: 14px;
  font-style: normal;
}

.d-inquiry address span { color: var(--nv2-muted); }

.d-inquiry .nv2-form {
  align-self: start;
}

@media (hover: hover) and (pointer: fine) {
  .d-category-mosaic .category:hover img,
  .d-category-mosaic .category:focus-visible img {
    transform: scale(calc(var(--nv2-product-scale, 1) + .012));
  }

  .d-category-mosaic .category:hover i,
  .d-category-mosaic .category:focus-visible i {
    transform: translateX(3px);
  }

  .d-featured .product-card:hover img,
  .d-featured .product-card > a:focus-visible img {
    transform: scale(calc(var(--nv2-product-scale, 1) + .012));
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .hero-d {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    min-height: 560px;
    gap: 36px;
    padding: 104px 0 48px;
  }

  .hero-d h1 { font-size: clamp(44px, 5.4vw, 56px); }

  .d-category-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
    aspect-ratio: auto;
  }

  .d-category-mosaic .category,
  .d-category-mosaic .d-category-lead {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .d-category-mosaic .category > span {
    right: 16px;
    bottom: 16px;
    left: 16px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
  }

  .d-category-mosaic .category i { display: none; }

  .d-featured .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
  }

  .d-featured .product-card figure { aspect-ratio: 1; }

  .d-oem {
    display: block;
    padding-inline: max(28px, calc((100vw - 1080px) / 2));
  }

  .d-oem-intro {
    position: static;
    max-width: 780px;
    margin-bottom: 34px;
  }

  .d-oem-intro h2 { max-width: 12ch; }

  .d-process { max-width: none; }

  .d-process li {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
  }

  .d-process figure { aspect-ratio: 16 / 10; }

  .d-process-copy { display: block; }
  .d-process-copy > span { display: block; margin-bottom: 10px; }
  .d-process-copy p { margin-top: 10px; }
}

@media (min-width: 768px) and (max-width: 899px) {
  .hero-d {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    min-height: 520px;
    gap: 28px;
    padding: 98px 0 44px;
  }

  .d-hero-copy { max-width: 680px; }
  .hero-d h1 { font-size: clamp(38px, 5.8vw, 48px); }
  .d-hero-visual { aspect-ratio: 4 / 3; }

  .d-category-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
    aspect-ratio: auto;
  }

  .d-category-mosaic .category,
  .d-category-mosaic .d-category-lead {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .d-category-mosaic .category > span {
    right: 14px;
    bottom: 14px;
    left: 14px;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
  }

  .d-category-mosaic .category strong { font-size: clamp(19px, 2.9vw, 23px); }
  .d-category-mosaic .category i { display: none; }

  .d-featured .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }

  .d-featured .product-card figure { aspect-ratio: 1; }

  .d-oem {
    display: block;
    padding-inline: 24px;
  }

  .d-oem-intro {
    position: static;
    max-width: 700px;
    margin-bottom: 32px;
  }

  .d-oem-intro h2 { max-width: 12ch; }

  .d-process { max-width: none; }

  .d-process li {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 28px;
  }

  .d-process figure { aspect-ratio: 16 / 10; }
  .d-process-copy { display: block; }
  .d-process-copy > span { display: block; margin-bottom: 10px; }
  .d-process-copy p { margin-top: 10px; }

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

@media (max-width: 767px) {
  .theme-d section[id] { scroll-margin-top: 78px; }

  .button { min-height: 46px; }

  .section-heading {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
  }

  .section-heading h2,
  .d-oem h2,
  .d-why h2,
  .d-inquiry h2 {
    font-size: clamp(30px, 8.8vw, 38px);
  }

  .hero-d {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding: 74px 0 30px;
  }

  .hero-d h1 {
    max-width: 10.5ch;
    font-size: clamp(32px, 9.8vw, 40px);
    line-height: 1;
  }

  .hero-d .lede {
    margin: 16px 0 20px;
    font-size: 16px;
  }

  .button-row { align-items: stretch; }
  .button-row .button { flex: 1 1 180px; }
  .d-hero-visual { aspect-ratio: 16 / 10; }

  .d-hero-visual figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 12px;
  }

  .d-hero-visual figcaption strong { font-size: 18px; }

  .d-category-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
    aspect-ratio: auto;
  }

  .d-category-mosaic .category,
  .d-category-mosaic .d-category-lead {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .d-category-mosaic .category > span {
    right: 16px;
    bottom: 16px;
    left: 16px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
  }

  .d-category-mosaic .category strong { font-size: clamp(20px, 5.7vw, 23px); }
  .d-category-mosaic .category i { display: none; }

  .d-featured .product-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 24px;
  }

  .d-featured .product-card:nth-child(n + 3) { display: block; }
  .d-featured .product-card figure { aspect-ratio: 1; }
  .d-featured .product-card h3 { font-size: 15px; }
  .d-featured .product-card i { display: inline; }

  .d-oem {
    display: block;
    padding-inline: 18px;
  }

  .d-oem-intro {
    position: static;
    max-width: none;
    margin-bottom: 24px;
  }

  .d-oem-intro h2 { max-width: 11ch; }

  .d-oem-intro > p:not(.eyebrow) {
    margin: 18px 0 12px;
    font-size: 16px;
  }

  .d-process {
    max-width: 620px;
    margin-inline: auto;
  }

  .d-process li {
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .d-process-copy { display: block; }
  .d-process-copy > span { display: block; margin-bottom: 9px; }
  .d-process-copy h3 { font-size: 23px; }
  .d-process-copy p { margin-top: 8px; }

  .d-why-content header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .d-why-grid { grid-template-columns: 1fr; }
  .d-why-grid article { padding: 20px 18px; }
  .d-why-grid h3 { margin-top: 18px; }

  .d-faq-list summary {
    min-height: 64px;
    padding: 18px 0;
    font-size: 14px;
  }

  .d-inquiry {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d-hero-copy,
  .d-hero-visual {
    animation: none;
  }

  .d-category-mosaic .category img,
  .d-featured .product-card img,
  .text-link span,
  .d-faq-list summary::after {
    transition: none;
  }
}
