/* Homepage composition. Shared type, colors and controls belong to site-foundation.css. */
body[data-page-type="home"] { background: #fff; }
body[data-page-type="home"] > div[style*="overflow-x:hidden"] { background: #fff !important; }
body[data-page-type="home"] .home-fallback-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 16px; }
body[data-page-type="home"] .home-fallback-nav a { min-height: 40px; display: inline-flex; align-items: center; }
body[data-page-type="home"] main > section.pad { box-sizing: border-box; width: 100%; max-width: var(--layout-content-max) !important; padding-inline: var(--layout-gutter) !important; padding-top: var(--layout-section-space) !important; margin-inline: auto; }
body[data-page-type="home"] .home-hero { padding-block: 56px 40px; background: #fff; }
body[data-page-type="home"] .home-hero__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; }
body[data-page-type="home"] .home-hero__copy { min-width: 0; }
body[data-page-type="home"] .home-hero__eyebrow { margin: 0 0 20px; color: var(--color-primary); }
body[data-page-type="home"] .home-hero h1 { max-width: none; margin: 0 0 24px; color: var(--color-text-main); }
body[data-page-type="home"] .home-hero h1 span { color: var(--color-primary); }
body[data-page-type="home"] .home-hero .lead { margin: 0; color: var(--color-text-secondary); max-width: 46ch; }
body[data-page-type="home"] .home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
body[data-page-type="home"] .home-hero__actions a { text-transform: none; text-decoration: none; }
body[data-page-type="home"] .home-hero__actions .btn-blue { background: var(--color-primary); border: 1px solid var(--color-primary); color: #fff; }
body[data-page-type="home"] .home-hero__actions .btn-line { background: #fff; border: 1px solid var(--color-border); color: var(--color-text-main); }
body[data-page-type="home"] .home-hero__note { margin: 20px 0 0; color: var(--color-text-secondary); }
body[data-page-type="home"] .home-hero__media { min-width: 0; margin: 0; background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius-surface); overflow: hidden; }
body[data-page-type="home"] .home-hero__media video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; background: var(--color-bg-dark); }
body[data-page-type="home"] .home-hero__media figcaption { margin: 0; padding: 12px 18px; border-top: 1px solid var(--color-border); background: #fff; color: var(--color-text-secondary); }
body[data-page-type="home"] main > .page-outline { margin-block: 0 16px; }
body[data-page-type="home"] main #products { padding-top: 36px !important; }
body[data-page-type="home"] main #products > div:first-child { display: grid !important; grid-template-columns: 1.2fr 1fr; align-items: end !important; gap: 36px !important; }
body[data-page-type="home"] main #products .home-portfolio-intro { max-width: 52ch !important; }
body[data-page-type="home"] main #products.home-products .home-product-grid { gap: 24px !important; }
body[data-page-type="home"] main #products.home-products :is(.g2, .g3) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
body[data-page-type="home"] main #products.home-products .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body[data-page-type="home"] main #products.home-products .home-product-card { padding: 24px !important; border: 1px solid var(--color-border) !important; border-radius: var(--radius-surface) !important; box-shadow: none !important; background: #fff !important; min-width: 0; }
body[data-page-type="home"] main #products.home-products .home-product-card:hover { border-color: #9ab5ed !important; transform: none !important; }
body[data-page-type="home"] main #products.home-products .home-product-card .home-product-name { font-size: 22px !important; line-height: 1.25 !important; font-weight: 600 !important; letter-spacing: -.02em !important; min-height: 0 !important; margin-top: 8px !important; color: var(--color-text-main) !important; }
body[data-page-type="home"] main #products.home-products .home-product-card .home-product-eyebrow { font-size: 12px !important; line-height: 1.5 !important; font-weight: 500 !important; letter-spacing: .05em !important; color: var(--color-primary) !important; }
body[data-page-type="home"] main #products.home-products .home-product-card > div:first-child { min-height: 0 !important; }
body[data-page-type="home"] main #products.home-products .home-product-card > p { font-size: var(--type-size-card-copy) !important; line-height: 1.6 !important; margin-top: 0 !important; }
body[data-page-type="home"] main #products.home-products .home-product-card .home-product-note { font-size: 13px !important; line-height: 1.55 !important; font-weight: 400 !important; letter-spacing: 0 !important; color: var(--color-text-secondary) !important; margin-top: 18px !important; padding-top: 14px !important; border-color: var(--color-border) !important; }
/* One quiet studio surface. Match the supplied opaque image backgrounds;
   transparent renders use the same warm neutral, without filters or cropping. */
body[data-page-type="home"] main #products.home-products .home-product-media {
  box-sizing: border-box;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 280px;
  aspect-ratio: 4 / 3 !important;
  margin: 20px 0 !important;
  padding: 16px;
  background: var(--product-stage-background, #efeee7) !important;
  border: 0 !important;
  border-radius: 10px !important;
  overflow: hidden;
}
body[data-page-type="home"] main #products.home-products .home-product-image {
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
body[data-page-type="home"] main #products.home-products [data-product="k900"] { --product-stage-background: #efefe7; }
body[data-page-type="home"] main #products.home-products [data-product="ar99-style"] .home-product-media { padding-inline: 8px; }
body[data-page-type="home"] main #products.home-products .home-products-tier { font-size: 13px !important; font-weight: 600 !important; color: var(--color-text-secondary) !important; letter-spacing: .02em !important; margin: 36px 0 20px !important; padding-bottom: 12px !important; border-color: var(--color-border) !important; }
body[data-page-type="home"] .home-company-scope { margin-top: 24px; }
body[data-page-type="home"] #technology, body[data-page-type="home"] #contact { margin-top: var(--layout-section-space) !important; }
body[data-page-type="home"] #technology > .pad, body[data-page-type="home"] #contact > .pad { max-width: var(--layout-content-max) !important; padding: var(--layout-section-space) var(--layout-gutter) !important; }
@media (max-width: 1000px) {
  body[data-page-type="home"] .home-hero__layout { gap: 32px; }
  body[data-page-type="home"] main #products.home-products :is(.g2, .g3, .g4) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 768px) {
  body[data-page-type="home"] .home-hero { padding-block: 36px 28px; }
  body[data-page-type="home"] .home-hero__layout { grid-template-columns: 1fr; gap: 28px; }
  body[data-page-type="home"] .home-hero h1 br { display: none; }
  body[data-page-type="home"] .home-hero__actions { flex-direction: column; }
  body[data-page-type="home"] .home-hero__actions a { width: 100%; }
  body[data-page-type="home"] main #products { padding-top: 28px !important; }
  body[data-page-type="home"] main #products > div:first-child { grid-template-columns: 1fr !important; gap: 16px !important; }
}
@media (max-width: 640px) {
  body[data-page-type="home"] main #products.home-products :is(.g2, .g3, .g4) { grid-template-columns: 1fr !important; }
  body[data-page-type="home"] main #products.home-products .home-product-card { padding: 22px !important; }
  body[data-page-type="home"] main #products.home-products .home-product-media { max-height: 300px; padding: 14px; }
}

/* Specialized products remain visible below the six featured product cards. */
body[data-page-type="home"] main #products .home-secondary-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
body[data-page-type="home"] main #products .home-secondary-heading h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-text-secondary);
}
body[data-page-type="home"] main #products .home-secondary-heading a {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body[data-page-type="home"] main #products.home-products .home-secondary-products.home-product-grid {
  gap: 0 24px !important;
  grid-auto-rows: auto !important;
}
body[data-page-type="home"] main #products.home-products .home-product-card.home-product-card--secondary {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px !important;
  align-items: start;
  padding: 20px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--color-border) !important;
  border-radius: 0 !important;
}
body[data-page-type="home"] main #products.home-products .home-product-card--secondary .home-product-media {
  width: 88px !important;
  height: 66px !important;
  margin: 0 !important;
  padding: 4px;
  border-radius: 6px !important;
}
body[data-page-type="home"] main #products.home-products .home-secondary-products .home-product-card--secondary > .home-secondary-copy {
  display: block !important;
  min-width: 0;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  align-self: start;
}
body[data-page-type="home"] main #products.home-products .home-secondary-copy > div:first-child:has(.home-product-name) {
  display: block !important;
}
body[data-page-type="home"] main #products.home-products .home-product-card--secondary .home-product-name {
  font-size: 18px !important;
  margin-top: 4px !important;
}
body[data-page-type="home"] main #products.home-products .home-product-card--secondary .home-product-eyebrow {
  color: var(--color-text-secondary) !important;
  letter-spacing: 0 !important;
}
body[data-page-type="home"] main #products.home-products .home-secondary-copy > p {
  margin: 10px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--color-text-secondary) !important;
}
body[data-page-type="home"] main #products.home-products .home-product-card--secondary .home-product-note {
  margin-top: 10px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
body[data-page-type="home"] main #products.home-products .home-product-card--secondary:is(:hover, :focus-visible) .home-product-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) and (min-width: 641px) {
  body[data-page-type="home"] main #products.home-products .home-secondary-products { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  body[data-page-type="home"] main #products.home-products .home-product-card.home-product-card--secondary { grid-template-columns: 64px minmax(0, 1fr); gap: 14px !important; }
  body[data-page-type="home"] main #products.home-products .home-product-card--secondary .home-product-media { width: 64px !important; height: 48px !important; }
}
