/* Page styles: home.css */

.home-banner-hero {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: flex-end;
  padding: 0;
  background: #0f0f0f;
  color: var(--ink-2);
  overflow: hidden;
}

.home-banner-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  background: var(--blue);
}

.home-banner-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-banner-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.78) 0%, rgba(8, 10, 16, 0.52) 38%, rgba(8, 10, 16, 0.14) 100%),
    linear-gradient(0deg, rgba(8, 10, 16, 0.4) 0%, rgba(8, 10, 16, 0.02) 46%);
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  background: #0f0f0f;
  opacity: 0;
  transform: none;
  transition: opacity 0.72s ease;
}

.home-banner-slide.is-active {
  opacity: 1;
  transform: none;
}

.home-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-banner-hero .hero-inner {
  position: absolute;
  left: max(24px, calc((100% - var(--max-width)) / 2));
  right: max(24px, calc((100% - var(--max-width)) / 2));
  bottom: clamp(42px, 5vw, 88px);
  z-index: 2;
  width: auto;
  margin: 0;
}

.home-banner-hero .hero-title {
  max-width: 620px;
  font-size: clamp(2.35rem, 3.55vw, 3.8rem);
}

.home-banner-hero .hero-copy {
  max-width: 420px;
  margin-top: 14px;
  line-height: 1.55;
}

.home-banner-hero .hero-points {
  margin-top: 16px;
}

.home-banner-hero .hero-actions {
  margin-top: 18px;
}

.home-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.home-banner-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.home-banner-dot.is-active {
  width: 52px;
  background: #fff;
}

@media (max-height: 780px) and (min-width: 761px) {
  .home-banner-hero .hero-inner {
    bottom: 48px;
  }

  .home-banner-hero .hero-title {
    max-width: 720px;
    font-size: 3.35rem;
  }

  .home-banner-hero .hero-copy {
    max-width: 520px;
    margin-top: 12px;
    line-height: 1.45;
  }

  .home-banner-hero .hero-points {
    margin-top: 12px;
  }

  .home-banner-hero .hero-actions {
    margin-top: 14px;
  }
}


@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-dropdown {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: rgba(248, 248, 245, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(14, 14, 14, 0.08);
    border-bottom: 1px solid rgba(14, 14, 14, 0.06);
  }

  .site-nav .brand-text-1 {
    color: var(--ink-100);
  }

  .site-nav .brand-text-2 {
    color: rgba(14, 14, 14, 0.45);
  }

  .site-nav .mobile-toggle span {
    background: rgba(14, 14, 14, 0.78);
  }

  .site-nav .mobile-menu {
    position: absolute;
    top: calc(var(--nav-height) + 8px);
    left: 0;
    right: 0;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(14, 14, 14, 0.1);
    border-radius: 8px;
    background: var(--ink-2);
    box-shadow: 0 18px 44px rgba(14, 14, 14, 0.16);
    max-height: calc(100dvh - var(--nav-height) - 16px);
    overscroll-behavior: contain;
  }

  .site-nav .mobile-link {
    color: rgba(14, 14, 14, 0.78);
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
  }

  .site-nav .mobile-products {
    gap: 6px;
  }

  .site-nav .mobile-products-panel {
    gap: 5px;
    max-height: min(360px, 45vh);
    padding: 2px 0 2px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav .mobile-products-link {
    min-height: 34px;
    padding: 8px 10px 8px 28px;
    border-radius: 8px;
    font-size: 12px;
  }

  .craft-3d-showroom {
    display: none;
  }

  .craft-3d-fallback-wall {
    display: none;
  }

  .split,
  .grid-3,
  .grid-4,
  .catalog-grid,
  .fact-grid,
  .verified-scope,
  .product-showcase,
  .product-showcase--reverse,
  .product-route-grid,
  .footer-grid,
  .process-band,
  .craft-gate-grid,
  .qa-grid,
  .reading-grid,
  .content-columns {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
  }

  .craft-section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .craft-section-head .lead {
    max-width: 760px;
  }

  .craft-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-card,
  .craft-card.is-featured {
    grid-column: auto;
  }

  .craft-card.is-featured .craft-media {
    height: 252px;
  }

  .product-capability-band {
    grid-template-columns: 1fr;
  }

  .product-capability-band article {
    border-right: 0;
    border-bottom: 1px solid rgba(14, 14, 14, 0.1);
  }

  .product-capability-band article:last-child {
    border-bottom: 0;
  }

  .product-collection-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .product-toolbar-meta {
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-process-grid article:nth-child(2) {
    border-right: 0;
  }

  .product-process-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(248, 248, 245, 0.1);
  }

  .craft-image-stack {
    min-height: 500px;
  }

  .craft-stack-main {
    width: calc(100% - 70px);
    height: calc(100% - 70px);
  }
}

@media (max-width: 1100px) {
  .craftsmanship-hero .hero-inner {
    grid-template-columns: 1fr;
  }

  .craft-3d-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 82px 0;
  }

  .craft-3d-badges {
    justify-self: start;
    width: min(100%, 520px);
  }

  .craft-3d-hud {
    right: 32px;
    bottom: 28px;
    width: min(340px, calc(100% - 64px));
  }

  .craft-showcase-shell {
    padding: 74px 0;
  }

  .craft-showcase-copy,
  .craft-showcase-gallery {
    grid-template-columns: 1fr;
  }

  .craft-showcase-copy .section-label,
  .craft-showcase-copy .display,
  .craft-showcase-copy .lead {
    grid-column: 1;
    grid-row: auto;
  }

  .craft-showcase-main,
  .craft-showcase-panel {
    min-height: auto;
  }

  .craft-showcase-main {
    aspect-ratio: 16 / 9;
  }

  .craft-showcase-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .craft-showcase-control {
    min-width: 38px;
    min-height: 168px;
  }

  .craft-showcase-card {
    flex-basis: 178px;
  }

  .craft-rfq-gateway-grid {
    grid-template-columns: 1fr;
  }

  .craft-showroom-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .craft-showroom-metric {
    padding-bottom: 0;
    padding-right: 14px;
    border-right: 1px solid rgba(248, 248, 245, 0.12);
    border-bottom: 0;
  }

  .craft-showroom-metric:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .split.craft-journey {
    grid-template-columns: 1fr;
  }

  .craft-journey {
    gap: 32px;
  }

  .craft-image-stack {
    min-height: 520px;
  }

  .craft-stack-main {
    width: calc(100% - 80px);
    height: calc(100% - 70px);
  }

  .craft-stack-small {
    width: min(42%, 320px);
  }
}

@media (max-width: 768px) {
  body[data-page="products"],
  .product-list-page,
  .product-collection-head,
  .product-collection-section,
  .product-collection-shell,
  .product-capability-band,
  .product-capability-band article,
  .product-collection-main,
  .product-collection-toolbar,
  .product-grid {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .product-capability-band p,
  .product-process-grid p,
  .product-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  html {
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .wrap {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .section {
    padding: 64px 0;
  }

  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-factory-image {
    min-height: 320px;
  }

  .home-workflow .process-band {
    grid-template-columns: 1fr;
  }

  .home-contact-form {
    padding: 22px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 34px);
    padding-bottom: 38px;
    background-attachment: scroll;
  }

  .home-banner-hero {
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  .home-banner-hero .hero-inner {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }

  .home-banner-hero .hero-kicker {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .home-banner-hero .hero-title {
    max-width: 100%;
    font-size: 1.45rem;
  }

  .home-banner-hero .hero-copy {
    display: none;
  }

  .home-banner-hero .hero-points {
    display: none;
  }

  .home-banner-hero .hero-actions {
    display: none;
  }

  .home-banner-dots {
    bottom: 14px;
  }

  .home-banner-dot {
    width: 24px;
  }

  .home-banner-dot.is-active {
    width: 38px;
  }

  .product-collection-head {
    padding: calc(var(--nav-height) + 42px) 0 42px;
  }

  .product-collection-title {
    gap: 14px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .product-collection-title .display {
    max-width: min(100%, 280px);
    font-size: clamp(1.9rem, 8vw, 2.45rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .product-collection-title p {
    max-width: min(100%, 300px);
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .product-hero-metrics {
    gap: 8px;
    max-width: min(100%, 300px);
  }

  .product-hero-metrics span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  .product-collection-section {
    padding: 42px 0 56px;
  }

  .product-collection-shell {
    gap: 26px;
  }

  .product-capability-band article {
    padding: 22px 0;
  }

  .product-filter-tabs {
    gap: 7px;
  }

  .product-filter {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .product-toolbar-meta,
  .product-toolbar-controls {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .product-collection-toolbar {
    align-items: stretch;
    gap: 14px;
  }

  .product-search,
  .product-sort {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 210px minmax(0, 1fr);
  }

  .product-card-body {
    min-height: auto;
    padding: 16px;
  }

  .product-process-section {
    padding: 56px 0;
  }

  .product-section-intro {
    margin-bottom: 26px;
  }

  .product-process-grid {
    grid-template-columns: 1fr;
  }

  .product-process-grid article,
  .product-process-grid article:nth-child(2) {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(248, 248, 245, 0.1);
  }

  .product-process-grid article:last-child {
    border-bottom: 0;
  }

  .product-rfq-inner {
    gap: 18px;
  }

  .hero-title {
    font-size: 2.35rem;
    line-height: 1.06;
  }

  .hero-copy {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 20px;
    gap: 8px;
  }

  .hero-point {
    padding: 6px 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .mobile-rfq-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 14px 34px rgba(14, 14, 14, 0.24);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .card,
  .route-card,
  .fact-card,
  .catalog-item,
  .product-route-card,
  .process-step,
  .mini-card,
  .qa-card {
    padding: 22px 18px;
  }

  .product-link-card {
    padding: 16px 16px 14px;
  }

  .product-cover img {
    min-height: 320px;
  }

  .product-cover-copy {
    inset: auto 18px 18px 18px;
  }

  .product-cover-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .media-card img {
    height: 240px;
  }

  .media-content {
    padding: 18px;
  }

  .timeline-item {
    padding: 16px;
  }

  .stat {
    padding: 22px 16px;
  }

  .image-strip img {
    height: 220px;
  }

  .stats-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .catalog-grid,
  .product-category-grid,
  .fact-grid,
  .split,
  .verified-scope,
  .form-grid,
  .footer-grid,
  .process-band,
  .craft-gate-grid,
  .image-strip,
  .route-grid,
  .qa-grid,
  .reading-grid,
  .content-columns {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid rgba(248, 248, 245, 0.1);
  }

  .hero-points {
    flex-direction: row;
    align-items: flex-start;
    gap: 7px;
    margin-top: 16px;
  }

  .product-panel-head {
    align-items: flex-start;
  }

  .craftsmanship-hero {
    min-height: auto;
    padding-bottom: 36px;
    background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.68) 55%, rgba(10, 10, 10, 0.88) 100%), var(--hero-bg);
    background-position: center;
  }

  body[data-page="craftsmanship"] .section {
    padding: 60px 0;
  }

  .craftsmanship-hero .hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .craft-rfq-input-grid {
    grid-template-columns: 1fr;
  }

  .craft-rfq-input-card,
  .craft-rfq-input-card:nth-child(5) {
    grid-column: auto;
    min-height: auto;
  }

  .craft-rfq-gateway-tip {
    padding: 16px;
  }

  .craft-showcase-section {
    background:
      radial-gradient(circle at 18% 8%, rgba(30, 64, 175, 0.1), transparent 34%),
      linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  }

  .craft-showcase-shell {
    gap: 22px;
    padding: 56px 0;
  }

  .craft-showcase-copy {
    gap: 12px;
  }

  .craft-showcase-copy .display {
    font-size: 2rem;
  }

  .craft-showcase-gallery {
    gap: 16px;
  }

  .craft-showcase-main {
    aspect-ratio: 4 / 3;
    min-height: 310px;
  }

  .craft-showcase-main img {
    width: 86%;
    height: 72%;
  }

  .craft-showcase-main figcaption {
    left: 16px;
    right: 16px;
    bottom: 14px;
    font-size: 13px;
  }

  .craft-showcase-route-no {
    left: 16px;
    top: 16px;
  }

  .craft-showcase-panel {
    gap: 14px;
    padding: 18px;
  }

  .craft-showcase-panel h3 {
    font-size: 1.6rem;
  }

  .craft-showcase-carousel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .craft-showcase-routes {
    gap: 10px;
    padding-bottom: 10px;
  }

  .craft-showcase-control {
    min-width: 34px;
    min-height: 154px;
    font-size: 1.55rem;
  }

  .craft-showcase-card {
    grid-template-rows: 82px auto auto;
    flex-basis: min(168px, 48vw);
    min-height: 154px;
    padding: 10px;
  }

  .craft-showcase-card img {
    height: 82px;
  }

  .craft-3d-showroom {
    display: none;
  }

  .craft-3d-fallback-wall {
    display: none;
  }

  .craft-showroom-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .craft-showroom-metric {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(248, 248, 245, 0.12);
  }

  .craft-route-rail {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 6px;
  }

  .craft-route-stop {
    padding: 0 0 0 22px;
  }

  .craft-route-stop::before {
    left: 0;
    top: 2px;
  }

  .craft-route-stop::after {
    left: 4px;
    right: auto;
    top: 18px;
    width: 1px;
    height: 14px;
  }

  .craft-proof {
    padding: 28px 0;
  }

  .craft-process-grid {
    grid-template-columns: 1fr;
  }

  .craft-card,
  .craft-card.is-featured {
    grid-column: auto;
  }

  .craft-media {
    height: 220px;
  }

  .craft-card.is-featured .craft-media {
    height: 220px;
  }

  .craft-body {
    padding: 18px;
  }

  .craft-tags span {
    min-height: 28px;
    font-size: 10px;
  }

  .craft-image-stack {
    display: grid;
    gap: 14px;
    min-height: 0;
  }

  .craft-stack-main,
  .craft-stack-small {
    position: static;
    width: 100%;
    height: 260px;
    box-shadow: none;
  }

  .craft-journey-visuals {
    position: static;
    max-width: none;
  }

  .craft-journey-visual {
    opacity: 1;
    transform: none;
  }

  .craft-timeline .timeline-item.is-active {
    transform: none;
  }

  .craft-gate {
    min-height: auto;
  }

  .craft-route-grid .route-card {
    min-height: auto;
  }

  .craft-rfq-panel {
    min-height: 360px;
    padding: 24px;
  }

  .craft-rfq-panel h3 {
    font-size: 1.45rem;
  }
}

