/* anime.html — the duality page. Diagonal light/dark split hero, then two
   product sections that each fully commit to their own side's tone, plus a
   flip card on the product image echoing "good on the front, secret on the
   back". */

.split-hero{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}
.split-hero .black-wedge{
  position: absolute;
  inset: 0;
  background: var(--black);
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 38% 100%);
}
.split-hero .wrap{
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.split-side{ max-width: 420px; }
.split-side.light{ color: var(--ink); }
.split-side.dark{
  color: var(--white);
  justify-self: end;
  text-align: right;
  margin-left: auto;
}
.split-side .eyebrow{ display: block; margin-bottom: 12px; }
.split-side.light .eyebrow{ color: var(--accent); }
.split-side.dark .eyebrow{ color: var(--accent-bright); }
.split-side h1{ font-size: clamp(1.9rem, 5vw, 3.1rem); margin-bottom: 14px; }
.split-side p{ font-size: .95rem; line-height: 1.6; }
.split-side.light p{ color: var(--muted-light); }
.split-side.dark p{ color: var(--muted-dark); }

/* ---------- product sections ---------- */
.product-section{ padding: 92px 0; }
.product-section.light{ background: var(--paper); color: var(--ink); }
.product-section.dark{ background: var(--black); color: var(--white); }

.product-layout{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: center;
}
.product-section.dark .product-layout{ direction: rtl; }
.product-section.dark .product-layout > *{ direction: ltr; }

.product-info .eyebrow{ display: block; margin-bottom: 14px; }
.product-section.light .product-info .eyebrow{ color: var(--accent); }
.product-section.dark .product-info .eyebrow{ color: var(--accent-bright); }
.product-info h2{ font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.product-info .price{
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.product-info p.blurb{
  font-size: 1rem;
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 14px;
}
.product-section.light p.blurb{ color: var(--muted-light); }
.product-section.dark p.blurb{ color: var(--muted-dark); }
.product-info .specs{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
}
.product-section.light .specs{ color: var(--ink); }
.product-section.dark .specs{ color: var(--white); }
.product-info .specs span{ opacity: .65; }

/* ---------- flip card ---------- */
.flip-card{
  perspective: 1600px;
  cursor: pointer;
  width: 100%;
  max-width: 420px;
}
.flip-inner{
  position: relative;
  width: 100%;
  padding-top: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
  border: 1px solid var(--line-light);
}
.product-section.dark .flip-inner{ border-color: var(--line-dark); }
.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner{ transform: rotateY(180deg); }
.flip-face{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  background: #050505;
}
.flip-face img{ width: 100%; height: 100%; object-fit: cover; }
.flip-back{ transform: rotateY(180deg); }
.flip-tag{
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(10,10,10,.72);
  color: var(--white);
  padding: 7px 12px;
  border-radius: 2px;
  pointer-events: none;
}
.flip-hint{
  margin-top: 14px;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-section.light .flip-hint{ color: var(--muted-light); }
.product-section.dark .flip-hint{ color: var(--muted-dark); }
.flip-hint::before{ content: "\21BB"; font-size: 1rem; }

@media (max-width: 900px){
  .split-hero{ min-height: 0; }
  .split-hero .black-wedge{ clip-path: none; }
  .split-hero{ background: var(--paper); }
  .split-hero .wrap{
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .split-side{ max-width: none; padding: 48px 28px; }
  .split-side.dark{
    background: var(--black);
    justify-self: stretch;
    text-align: left;
    margin-left: 0;
  }
  .split-side.light{ background: var(--paper); }

  .product-layout{ grid-template-columns: 1fr; gap: 34px; }
  .product-section.dark .product-layout{ direction: ltr; }
  .flip-card{ max-width: 340px; margin: 0 auto; }
}
