/* Experience improvements only; existing content and visual identity stay in style.css. */
.brand-hero .brand-lead { max-width: none; }
.product-list-hero { padding-bottom: 0; }
.product-list-hero::after { margin-top: 40px; }
.product-section { padding: 48px 0 96px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; }
.product-item { display: flex; flex-direction: column; min-height: 300px; padding: 28px; border: 1px solid rgba(72,183,255,.24); border-radius: 8px; background: rgba(255,255,255,.04); }
.product-item h2 { font-size: 26px; line-height: 1.4; overflow-wrap: anywhere; }
.product-item p { color: rgba(255,255,255,.72); line-height: 1.8; }
.product-back { margin: 0 0 24px; }
.product-item a:hover { color: #48b7ff; }
.product-open { display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; flex: 0 0 44px; width: 44px; height: 44px; margin-top: auto; border: 1px solid rgba(72,183,255,.5); border-radius: 6px; color: #48b7ff; }
.product-open:hover { background: rgba(72,183,255,.12); }
.product-item .product-status { margin: auto 0 0; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-item { padding: 22px; }
  .product-item h2 { font-size: 23px; }
}
.ux-ready a:focus-visible, .ux-ready button:focus-visible { outline: 3px solid #48b7ff; outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); z-index: 50; padding: 12px; background: white; color: black; }
.skip-link:focus { transform: none; }
.ux-ready .home-nav { background-color: rgba(0, 0, 0, .82); }
.ux-ready .home-logo img { border-radius: 0; object-fit: contain; }
/* Luminance masking preserves the approved outline while removing its black matte. */
.ux-ready .home-logo img, .hero-brand-piece {
  mask-image: url('/img/wcoupe-folded-white-512.png');
  mask-mode: luminance;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.ux-ready .home-logo:hover img { box-shadow: none; }
.ux-ready .kv-frame { background-image: none; aspect-ratio: auto; min-height: 78svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 100px 20px 64px; }
.hero-brand-motion { width: min(440px, 80%); margin-bottom: 52px; transition: transform 350ms ease; }
.hero-brand-float { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; animation: brand-float 5s ease-in-out 1.6s infinite; }
.hero-brand-symbol { position: relative; width: 100%; aspect-ratio: 1; margin-bottom: -15%; }
.hero-brand-wordmark { display: block; width: 100%; aspect-ratio: 860 / 212; background: url('/img/wcoupe-wordmark-02-white-alpha.png') center / 100% 100% no-repeat; animation: brand-wordmark .9s cubic-bezier(.22, 1, .36, 1) .55s both; }
@keyframes brand-wordmark { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-brand-wordmark { position: relative; }
.hero-brand-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(45deg, transparent 38%, #8cb9d0 44%, #c9f2ff 48%, #fff 50%, #a2ddf5 53%, transparent 62%); background-size: 300% 300%; animation: brand-shine 1.8s ease-in-out 1.55s both; }
.symbol-shine { -webkit-mask: url('/img/wcoupe-folded-white-alpha.png') center / 100% 100% no-repeat; mask: url('/img/wcoupe-folded-white-alpha.png') center / 100% 100% no-repeat; }
.wordmark-shine { -webkit-mask: url('/img/wcoupe-wordmark-02-white-alpha.png') center / 100% 100% no-repeat; mask: url('/img/wcoupe-wordmark-02-white-alpha.png') center / 100% 100% no-repeat; animation-name: brand-shine-soft; }
@supports not ((mask-image: url('')) or (-webkit-mask-image: url(''))) {
  .hero-brand-shine { display: none; }
}
@keyframes brand-shine {
  0% { background-position: 100% 0%; opacity: 0; }
  15%, 75% { opacity: 1; }
  100% { background-position: 0% 100%; opacity: 0; }
}
@keyframes brand-shine-soft {
  0% { background-position: 100% 0%; opacity: 0; }
  15%, 75% { opacity: .55; }
  100% { background-position: 0% 100%; opacity: 0; }
}
.hero-brand-piece { position: absolute; inset: 0; width: 100%; height: 100%; animation: brand-assemble 1.2s cubic-bezier(.22, 1, .36, 1) both; }
/* These clips fall in the existing gaps; the original bitmap defines every visible edge. */
.piece-left { clip-path: polygon(0 0, 51% 0, 51% 48%, 13.56% 100%, 0 100%); --entry-x: -32px; --entry-y: 14px; --entry-angle: -7deg; }
.piece-center { clip-path: polygon(51% 0, 69.73% 0, 51.55% 100%, 13.56% 100%, 51% 48%); --entry-x: 0px; --entry-y: 34px; --entry-angle: 5deg; animation-delay: .12s; }
.piece-right { clip-path: polygon(69.73% 0, 100% 0, 100% 100%, 51.55% 100%); --entry-x: 30px; --entry-y: -26px; --entry-angle: 7deg; animation-delay: .24s; }
@keyframes brand-assemble {
  from { opacity: 0; transform: translate(var(--entry-x), var(--entry-y)) rotate(var(--entry-angle)); }
  to { opacity: 1; transform: translate(0, 0) rotate(0); }
}
@keyframes brand-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-brand-motion:hover { transform: translateY(-4px); }
}
.kv-frame .coming-soon::before, .kv-frame .coming-soon::after { animation: none; display: none; }
.kv-frame .coming-soon { font-size: 48px; }
.ux-ready .tool-title { white-space: normal; overflow-wrap: anywhere; }
.ux-ready .brand-section .mascot-gallery-heading h2 { font-size: 32px; }
.mascot-portrait a { display: block; cursor: zoom-in; }
.mascot-portrait img { height: auto; }
[id] { scroll-margin-top: 112px; }
.image-dialog { width: min(900px, calc(100% - 24px)); max-height: 92svh; background: #16171a; color: white; border: 1px solid #676a72; border-radius: 8px; padding: 18px; }
.image-dialog::backdrop { background: rgba(0,0,0,.85); }
.image-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.image-dialog h2 { font-size: 22px; }
.image-dialog button { background: transparent; color: white; border: 1px solid #777; border-radius: 4px; padding: 8px 14px; font: inherit; cursor: pointer; }
.image-dialog img { max-height: 72svh; width: 100%; object-fit: contain; }
@media (max-width: 720px) {
  .ux-ready .home-logo { top: 14px; left: 14px; width: 40px; height: 40px; }
  .ux-ready .home-nav { top: 14px; left: 68px; right: 12px; padding: 5px; gap: 2px; flex-wrap: wrap; justify-content: center; border-radius: 16px; }
  .ux-ready .home-nav a { padding: 8px; font-size: 13px; }
  .ux-ready .brand-hero h1 { white-space: normal; overflow-wrap: anywhere; }
  .ux-ready .brand-section .mascot-gallery-heading h2 { font-size: 20px; }
  .ux-ready .kv-frame { background-image: none; padding-top: 100px; }
  .hero-brand-motion { width: min(300px, 90%); }
  .kv-frame .coming-soon { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
