/* Homepage product wall. Scoped to the homepage product section. */
.home-products {
  --ink: #24272b;
  --muted: #686d72;
  --accent: #0b6f95;
  --focus: #6bbefe;
  --col-gap: clamp(12px, 1.35vw, 24px);
  --row-gap: clamp(12px, 1.35vw, 24px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 8vh, 92px) clamp(20px, 3vw, 64px) clamp(72px, 9vh, 100px);
  background: #fafafa;
}
.home-products .main { width: 100%; max-width: 1920px; margin: 0 auto; padding: 0; }
.home-products .products-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.home-products .products-head h2 { margin: 0; color: var(--ink); font-size: 40px; line-height: 1.25; font-weight: 600; letter-spacing: 0; text-align: left; }
.home-products .head-rule { width: 52px; height: 4px; margin: 15px 0 12px; border-radius: 4px; background: linear-gradient(90deg, var(--focus), var(--accent)); }
.home-products .products-head .sub { max-width: 60ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; letter-spacing: 0; }
.home-products .cluster { display: flex; gap: 10px; flex: 0 0 auto; }
.home-products .nav-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #e1e3e5; border-radius: 50%; background: #fff; box-shadow: inset 0 1px #fff, 0 5px 14px rgba(22,27,32,.08); color: var(--ink); font-size: 17px; cursor: pointer; transition: background .25s ease, transform .25s ease; }
.home-products .nav-arrow:hover { border-color: #b8d9e7; background: #f4fbfe; color: var(--accent); transform: translateY(-2px); }
.home-products .nav-arrow:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.home-products .nav-arrow[disabled] { opacity: .4; cursor: default; }
.home-products .carousel { position: relative; }
.home-products .marquee { overflow: hidden; padding: 8px 2px 16px; }
.home-products .marquee:not(.is-ready) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--row-gap) var(--col-gap); }
.home-products .pc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--row-gap) var(--col-gap); }
.home-products .pc-grid[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-products .pc-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-products .pc-slot { position: relative; display: flex; min-width: 0; }
.home-products .card { min-width: 0; display: flex; width: 100%; }
.home-products .pc-slot .card.is-leaving { position: absolute; inset: 0; z-index: 0; pointer-events: none; animation: pc-out .65s ease forwards; }
.home-products .pc-slot .card.is-entering { position: relative; z-index: 1; animation: pc-in .65s cubic-bezier(.22,.61,.36,1) both; }
.home-products .pc-slot .card.is-entering .card-link::after { border-top: 2px solid var(--accent); animation: pc-mark 1.5s ease forwards; }
@keyframes pc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pc-out { from { opacity: 1; } to { opacity: 0; transform: scale(.985); } }
@keyframes pc-mark { 0%, 55% { border-top-color: var(--accent); } 100% { border-top-color: #e7f5fb; } }
.home-products .pc-status { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 18px; margin-top: 22px; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.home-products .pc-status b { color: var(--ink); font-weight: 600; }
.home-products .pc-status-tip { position: relative; padding-left: 14px; }
.home-products .pc-status-tip::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); animation: pc-pulse 2.6s ease-in-out infinite; }
@keyframes pc-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.home-products .view-all { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid #e1e3e5; border-radius: 22px; background: #fff; color: var(--ink); font-size: 14px; text-decoration: none; transition: border-color .25s ease, color .25s ease; }
.home-products .view-all:hover { border-color: #b8d9e7; color: var(--accent); }
.home-products .view-all:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.home-products .card-link { position: relative; isolation: isolate; box-sizing: border-box; display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-height: clamp(320px, 31vw, 420px); height: 100%; width: 100%; padding: clamp(12px, 1.2vw, 18px); overflow: hidden; border: 1px solid #e4e6e8; border-radius: 8px; background: #fff; box-shadow: inset 1px 1px #fff, inset -1px -1px #f2f3f4, 0 15px 30px rgba(25,28,32,.075), 0 3px 7px rgba(25,28,32,.045); text-decoration: none; transition: transform .38s ease, box-shadow .38s ease, border-color .38s ease; }
.home-products .card-link::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.8), transparent 34% 78%, rgba(235,237,239,.22)); }
.home-products .card-link::after { content: ""; position: absolute; inset: 1px; border-radius: 7px; pointer-events: none; border-top: 1px solid #e7f5fb; border-left: 1px solid rgba(255,255,255,.78); }
.home-products .card-link:hover, .home-products .card-link:focus-visible { transform: translateY(-5px); border-color: #b8d9e7; box-shadow: inset 1px 1px #fff, inset -1px -1px #eef0f1, 0 23px 42px rgba(25,28,32,.11), 0 5px 11px rgba(11,111,149,.1); }
.home-products .card-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.home-products .card-head { position: relative; z-index: 1; display: block; min-height: 38px; }
.home-products .card-title { display: block; color: var(--ink); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.35; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.home-products .card-art { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 0 4px; }
.home-products .art-layer { grid-area: 1 / 1; display: grid; place-items: center; width: 100%; transition: opacity .45s ease, transform .45s ease; }
.home-products .art-layer img { display: block; width: 100%; max-width: none; height: clamp(190px, 19vw, 280px); object-fit: contain; }
.home-products .art-a { opacity: 1; transform: scale(1); }
.home-products .art-b { opacity: 0; transform: scale(1.035); }
.home-products .card-link:hover .art-a, .home-products .card-link:focus-visible .art-a { opacity: 0; transform: scale(.97); }
.home-products .card-link:hover .art-b, .home-products .card-link:focus-visible .art-b { opacity: 1; transform: scale(1); }
.home-products .card--single .art-b { display: none; }
.home-products .card--single:hover .art-a, .home-products .card--single:focus-visible .art-a { opacity: 1; transform: scale(1.035); }
.home-products .card-more { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 600; line-height: 24px; }
.home-products .card-more span { color: inherit; font-size: 18px; transition: transform .3s ease; }
.home-products .card-link:hover .card-more span, .home-products .card-link:focus-visible .card-more span { transform: translate(3px,-3px); }
@media (max-width: 1023px) {
  .home-products { --col-gap: 16px; --row-gap: 16px; padding: 76px 22px 84px; }
  .home-products .card-link { min-height: clamp(300px, 38vw, 380px); }
  .home-products .art-layer img { height: clamp(180px, 24vw, 250px); }
}
@media (max-width: 760px) {
  .home-products { --col-gap: 14px; --row-gap: 14px; padding: 60px 16px 70px; }
  .home-products .marquee:not(.is-ready) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-products .products-head { margin-bottom: 25px; }
  .home-products .products-head h2 { font-size: 30px; }
  .home-products .products-head .sub { font-size: 14px; }
  .home-products .card-link { min-height: 270px; padding: 14px; }
  .home-products .art-layer img { height: 170px; }
}
@media (max-width: 460px) {
  .home-products { padding: 52px 14px 62px; }
  .home-products .products-head { align-items: flex-start; }
  .home-products .products-head .sub { max-width: 29ch; }
  .home-products .card-link { min-height: 235px; padding: 10px; }
  .home-products .art-layer img { height: 135px; }
  .home-products .view-all { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-products .card-link, .home-products .art-layer, .home-products .card-more span, .home-products .nav-arrow { transition: none; }
  .home-products .pc-slot .card.is-entering, .home-products .pc-slot .card.is-leaving, .home-products .pc-status-tip::before { animation: none; }
  .home-products .card-link:hover, .home-products .card-link:focus-visible { transform: none; }
}
