/* ORCA ürün aileleri — photo cards (design-preview).
   v1: photo + white ORCA logo + navy scrim, white panel keeps title / count / arrow.
   v2: same photos, typography merged onto the image (PT-141 style). ?families=v2
   Does not touch product-card rules. Works with existing scroll reveal. */

/* --- shared photo treatment --- */
html body.page-home .ds-family-card{
  --family-bg:#0b1d33;
  --family-ink:#fff;
  background:#0b1d33;
  color:#0b1d33;
  border:1px solid #c5d0da;
  overflow:hidden;
}
html body.page-home .ds-family-card .ds-family-art{
  position:relative;
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/5;
  overflow:hidden;
  isolation:isolate;
  background:#0b1d33;
  color:#fff;
}
html body.page-home .ds-family-card .ds-family-art > img:not(.ds-family-logo){
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
}
html body.page-home .ds-family-card .ds-family-scrim{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(11,29,51,.46) 0%, rgba(11,29,51,.16) 28%, rgba(11,29,51,0) 48%);
}
html body.page-home .ds-family-card .ds-family-logo{
  position:absolute;
  z-index:2;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  width:min(42%, 132px);
  height:auto;
  filter:none;
  pointer-events:none;
}
html body.page-home .ds-family-card .ds-family-mark,
html body.page-home .ds-family-card .ds-family-rhythm,
html body.page-home .ds-family-card .ds-family-signature{display:none}

/* Default (v1): title lives in the white panel, so hide the on-image copy. */
html body.page-home .ds-families-v1 .ds-family-onimg{display:none}
html body.page-home .ds-families-v1 .ds-family-card .ds-gcard-tx{
  position:static;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  min-height:100px;
  padding:20px 48px 20px 18px;
  background:#fff;
  flex:1;
}
html body.page-home .ds-families-v1 .ds-family-card .ds-gcard-tx b{
  font-family:"Orca Display","Orca Sans",sans-serif;
  font-size:clamp(18px,1.45vw,23px);
  font-weight:600;
  line-height:1.16;
  letter-spacing:-.025em;
  color:#0b1d33;
  text-wrap:pretty;
}
html body.page-home .ds-families-v1 .ds-family-card .ds-gcard-tx>span{
  font-family:"Orca Sans",sans-serif;
  font-size:14px;
  font-weight:500;
  color:#4c6175;
}
html body.page-home .ds-families-v1 .ds-family-card .ds-gcard-go{
  width:32px;
  height:32px;
  right:12px;
  bottom:28px;
  color:#102d4e;
  background:transparent;
  border:0;
}

/* v2: typography on the photo, no white panel. */
html body.page-home .ds-families-v2 .ds-family-card{
  border-color:transparent;
  background:#0b1d33;
}
html body.page-home .ds-families-v2 .ds-family-card .ds-family-scrim{
  background:
    linear-gradient(180deg, rgba(11,29,51,.52) 0%, rgba(11,29,51,.22) 32%, rgba(11,29,51,0) 52%),
    linear-gradient(0deg, rgba(11,29,51,.46) 0%, rgba(11,29,51,.12) 28%, rgba(11,29,51,0) 46%);
}
html body.page-home .ds-families-v2 .ds-family-logo{top:18px;width:min(46%, 140px)}
html body.page-home .ds-families-v2 .ds-family-onimg{
  position:absolute;
  z-index:2;
  left:16px;
  right:16px;
  top:58px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
  pointer-events:none;
}
html body.page-home .ds-families-v2 .ds-family-onimg b{
  font-family:"Orca Display","Orca Sans",sans-serif;
  font-weight:500;
  font-size:clamp(1.2rem, 1rem + .7vw, 1.7rem);
  line-height:1.12;
  letter-spacing:-.02em;
  color:#fff;
  text-wrap:balance;
  text-shadow:0 2px 16px rgba(11,29,51,.35);
}
html body.page-home .ds-families-v2 .ds-family-onimg span{
  font-family:"Orca Sans",sans-serif;
  font-weight:500;
  font-size:.82rem;
  letter-spacing:.02em;
  color:rgba(255,255,255,.88);
}
html body.page-home .ds-families-v2 .ds-family-card .ds-gcard-tx{display:none}
html body.page-home .ds-families-v2 .ds-family-card .ds-gcard-go{
  width:36px;
  height:36px;
  right:14px;
  bottom:14px;
  color:#fff;
  background:transparent;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
}

/* Scroll reveal + hover zoom, without fighting reduced-motion or the older "transform:none" lock. */
html.ds-js body.page-home .ds-family-card .ds-family-art > img:not(.ds-family-logo){
  transform:scale(1.04);
  transition:transform 1.4s cubic-bezier(.22,.61,.36,1);
}
html.ds-js body.page-home .ds-family-card[data-ds].is-in .ds-family-art > img:not(.ds-family-logo){
  transform:scale(1);
}
@media (hover:hover){
  html body.page-home .ds-family-card:hover .ds-family-art > img:not(.ds-family-logo){
    transform:scale(1.035);
  }
  html body.page-home .ds-families-v1 .ds-family-card:hover{border-color:#789daa}
  html body.page-home .ds-families-v2 .ds-family-card:hover .ds-gcard-go{background:rgba(255,255,255,.12)}
}
html body.page-home .ds-family-card:focus-visible{
  outline:3px solid #789daa;
  outline-offset:4px;
}

@media (max-width:760px){
  html body.page-home .ds-families-v1 .ds-family-card .ds-gcard-tx{
    min-height:94px;
    padding:16px 36px 16px 12px;
  }
  html body.page-home .ds-families-v1 .ds-family-card .ds-gcard-tx b{font-size:20px}
  html body.page-home .ds-families-v1 .ds-family-card .ds-gcard-tx>span{font-size:13px}
  html body.page-home .ds-families-v1 .ds-family-card .ds-gcard-go{right:8px;bottom:22px;width:22px;height:22px;font-size:14px}
  html body.page-home .ds-family-card .ds-family-logo{top:12px;width:min(46%, 110px)}
  html body.page-home .ds-families-v2 .ds-family-onimg{top:48px;left:12px;right:12px}
  html body.page-home .ds-families-v2 .ds-family-onimg b{font-size:clamp(1.15rem, 5.2vw, 1.45rem)}
  html body.page-home .ds-families-v2 .ds-gcard-go{width:32px;height:32px;right:10px;bottom:10px}
}

@media (prefers-reduced-motion:reduce){
  html.ds-js body.page-home .ds-family-card .ds-family-art > img:not(.ds-family-logo),
  html body.page-home .ds-family-card:hover .ds-family-art > img:not(.ds-family-logo){
    transform:none!important;
    transition:none!important;
  }
}
