/* DKNY Publishing homepage hero: the gold lion coin spins in, then flies into the founder & publisher card.
   Adapted from the Kerr University hero (2026-10-07) for DKNY's black-and-gold brand. Prepared 2026-10-08.
   Everything is scoped to #dkHero / .dkh-* so nothing else on the page changes. */
:root { --dkh-ease: cubic-bezier(.65, 0, .35, 1); --dkh-settle: cubic-bezier(.16, .84, .24, 1); }

/* ---------- founder & publisher card ---------- */
.dkh-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: 1.45rem 1.55rem 1.2rem;
  border: 1px solid rgba(232, 208, 128, .45);
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(232, 208, 128, .16), transparent 55%),
    linear-gradient(160deg, rgba(28, 22, 10, .78), rgba(8, 7, 5, .86) 60%, rgba(5, 5, 5, .9));
  box-shadow: 0 34px 70px -32px rgba(0, 0, 0, .9), 0 0 46px rgba(201, 168, 76, .09), inset 0 1px 0 rgba(255, 238, 190, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
  color: var(--cream, #F2EDE4);
}
.dkh-card::before { /* thin gold hairline along the top edge */
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 231, 149, .85), transparent);
}
.dkh-card-top { display: flex; align-items: center; gap: .95rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(232, 208, 128, .28); }
.dkh-avatar {
  width: 68px; height: 68px; flex-shrink: 0; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(232, 208, 128, .45), 0 0 22px rgba(201, 168, 76, .32);
}
.dkh-who { min-width: 0; }
.dkh-name {
  display: block; margin: 0;
  font-family: 'Cormorant Garant', Georgia, serif; font-size: 1.7rem; font-weight: 700; line-height: 1.05;
  color: var(--cream, #F2EDE4); letter-spacing: .005em;
}
.dkh-role {
  display: block; margin-top: .35rem;
  font-family: 'Raleway', sans-serif; font-size: .64rem; font-weight: 700; line-height: 1.5;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light, #E8D080);
}
.dkh-role span { display: block; color: var(--gold, #C9A84C); }
.dkh-facts { list-style: none; margin: 0; padding: 0; }
.dkh-facts li {
  display: flex; align-items: baseline; gap: .4rem; margin: 0;
  padding: .68rem 0; border-bottom: 1px solid rgba(232, 208, 128, .12);
  font-family: 'Cormorant Garant', Georgia, serif; font-size: 1.2rem; font-weight: 500; line-height: 1.25;
  color: rgba(242, 237, 228, .9);
}
.dkh-facts li::before {
  content: ""; width: 7px; height: 7px; flex-shrink: 0; align-self: center; margin-right: .5rem;
  transform: rotate(45deg); background: var(--gold, #C9A84C); box-shadow: 0 0 8px rgba(201, 168, 76, .5);
}
.dkh-facts li > span { flex: 1 1 auto; min-width: 0; }
.dkh-facts strong { color: var(--gold-light, #E8D080); font-weight: 700; }
.dkh-card-link {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 1rem;
  font-family: 'Raleway', sans-serif; font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold, #C9A84C); text-decoration: none; transition: color .2s;
}
.dkh-card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.dkh-card-link:hover, .dkh-card-link:focus-visible { color: var(--gold-light, #E8D080); }
.dkh-card-link:hover svg, .dkh-card-link:focus-visible svg { transform: translateX(3px); }

/* ---------- coin layer (WebGL canvas, or a CSS coin if WebGL is unavailable) ---------- */
.dkh-coin-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.dkh-coin-layer[hidden], #dkHero.dkh-final .dkh-coin-layer { display: none; }
.dkh-coin-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dkh-coin-css { position: absolute; left: 0; top: 0; width: 340px; height: 340px; transform-style: preserve-3d; will-change: transform, opacity; display: none; }
.dkh-coin-css.on { display: block; }
.dkh-coin-css img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 28px rgba(201, 168, 76, .38); }
.dkh-coin-css img + img { transform: rotateY(180deg); }

/* ---------- entrance choreography ---------- */
#dkHero.dkh-pre .dkh-card { opacity: 0; transform: translate3d(0, 16px, 0); }
#dkHero.dkh-pre .dkh-avatar { opacity: 0; }
#dkHero.dkh-pre.dkh-in .dkh-card { opacity: 1; transform: none; transition: opacity .65s ease .12s, transform .75s var(--dkh-settle) .12s; }
#dkHero.dkh-landed .dkh-avatar { opacity: 1; transition: opacity .22s ease; }
#dkHero.dkh-landed .dkh-avatar { animation: dkh-glint .9s ease-out 1; }
@keyframes dkh-glint {
  0% { box-shadow: 0 0 0 1px rgba(232, 208, 128, .45), 0 0 22px rgba(201, 168, 76, .32); }
  35% { box-shadow: 0 0 0 2px rgba(255, 231, 149, .9), 0 0 46px rgba(232, 208, 128, .75); }
  100% { box-shadow: 0 0 0 1px rgba(232, 208, 128, .45), 0 0 22px rgba(201, 168, 76, .32); }
}
#dkHero.dkh-final .dkh-card { opacity: 1; transform: none; }
#dkHero.dkh-final .dkh-avatar { opacity: 1; }
#dkHero.dkh-instant, #dkHero.dkh-instant * { transition: none !important; }

/* ---------- act 1: wordmark alone, hold, then the copy comes in staggered ----------
   .dkh-seq is added by the inline script only when it will run the sequence; it switches off the site's own
   timed copy entrance (catalogue.css) and keeps the copy invisible but in place (no layout shift). */
#dkHero.dkh-seq .hero-eyebrow,
#dkHero.dkh-seq .hero-title,
#dkHero.dkh-seq .hero-desc,
#dkHero.dkh-seq .hero-ctas,
#dkHero.dkh-seq .hero-stats,
#dkHero.dkh-seq .hero-retailer-primary,
#dkHero.dkh-seq .hero-retailer-row > a { animation: none; opacity: 0; will-change: transform, opacity; }
#dkHero.dkh-seq .hero-platforms { animation: none; opacity: 1; transform: none; }
#dkHero.dkh-seq:not(.dkh-copy) .hero-left { pointer-events: none; }

#dkHero.dkh-seq.dkh-copy .hero-eyebrow,
#dkHero.dkh-seq.dkh-copy .hero-title,
#dkHero.dkh-seq.dkh-copy .hero-desc,
#dkHero.dkh-seq.dkh-copy .hero-ctas,
#dkHero.dkh-seq.dkh-copy .hero-stats,
#dkHero.dkh-seq.dkh-copy .hero-retailer-primary,
#dkHero.dkh-seq.dkh-copy .hero-retailer-row > a { opacity: 1; transform: none; clip-path: none; }
#dkHero.dkh-seq.dkh-copy .hero-eyebrow { animation: dkh-eyebrow-in .7s var(--dkh-settle) 0s backwards; }
#dkHero.dkh-seq.dkh-copy .hero-title { animation: dkh-title-in 1s var(--dkh-settle) .08s backwards; }
#dkHero.dkh-seq.dkh-copy .hero-desc { animation: dkh-rise .7s var(--dkh-settle) .38s backwards; }
#dkHero.dkh-seq.dkh-copy .hero-retailer-primary { animation: dkh-pop .62s var(--dkh-settle) .58s backwards; }
#dkHero.dkh-seq.dkh-copy .hero-retailer-row > a:nth-child(1) { animation: dkh-pop .55s var(--dkh-settle) .7s backwards; }
#dkHero.dkh-seq.dkh-copy .hero-retailer-row > a:nth-child(2) { animation: dkh-pop .55s var(--dkh-settle) .78s backwards; }
#dkHero.dkh-seq.dkh-copy .hero-retailer-row > a:nth-child(3) { animation: dkh-pop .55s var(--dkh-settle) .86s backwards; }
#dkHero.dkh-seq.dkh-copy .hero-retailer-row > a:nth-child(n+4) { animation: dkh-pop .55s var(--dkh-settle) .94s backwards; }
#dkHero.dkh-seq.dkh-copy .hero-ctas { animation: dkh-rise .6s var(--dkh-settle) .96s backwards; }
#dkHero.dkh-seq.dkh-copy .hero-stats { animation: dkh-rise .6s var(--dkh-settle) 1.04s backwards; }

@keyframes dkh-eyebrow-in { from { opacity: 0; transform: translate3d(-18px, 0, 0); letter-spacing: 7px; } to { opacity: 1; transform: none; letter-spacing: 4px; } }
@keyframes dkh-title-in {
  from { opacity: 0; transform: translate3d(0, 34px, 0); clip-path: inset(0 0 100% 0); filter: blur(6px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 -12% 0); filter: none; }
}
@keyframes dkh-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes dkh-pop {
  from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.9); }
  70% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.02); }
  to { opacity: 1; transform: none; }
}
/* settle everything at once: deep links (#books), already scrolled, reduced motion, safety net */
#dkHero.dkh-copy-now .hero-ghost > span:first-child,
#dkHero.dkh-copy-now .hero-ghost-sub,
#dkHero.dkh-copy-now .hero-eyebrow,
#dkHero.dkh-copy-now .hero-title,
#dkHero.dkh-copy-now .hero-desc,
#dkHero.dkh-copy-now .hero-platforms,
#dkHero.dkh-copy-now .hero-ctas,
#dkHero.dkh-copy-now .hero-stats,
#dkHero.dkh-copy-now .hero-retailer-primary,
#dkHero.dkh-copy-now .hero-retailer-row > a { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
#dkHero.dkh-copy-now .hero-left { pointer-events: auto; }

/* ---------- final layout: copy on the left, card on the right ---------- */
@media (min-width: 961px) {
  #dkHero { padding-block: clamp(3.5rem, 7vw, 6rem); }
  #dkHero > .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr);
    max-width: 1240px; text-align: left; gap: clamp(2rem, 5vw, 5rem); align-items: start;
  }
  #dkHero .dkh-card { align-self: start; margin-top: 2.6rem; }
  #dkHero .hero-left { align-items: flex-start; gap: 1.7rem; }
  #dkHero .hero-eyebrow { justify-content: flex-start; }
  #dkHero .hero-desc { max-width: 560px; margin-inline: 0; }
  #dkHero .hero-platforms, #dkHero .hero-ctas, #dkHero .hero-stats { justify-content: flex-start; }
  #dkHero .hero-retailer-stack { align-items: flex-start; }
  #dkHero .hero-retailer-row { justify-content: flex-start; }
  #dkHero .hero-stats { width: 100%; }
}
/* phones and tablets: one column, the card sits right under the headline so the coin lands in view */
@media (max-width: 960px) {
  #dkHero > .hero-inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
  #dkHero .hero-left { display: contents; }
  #dkHero .hero-eyebrow { order: 1; }
  #dkHero .hero-title { order: 2; }
  #dkHero .dkh-card { order: 3; justify-self: auto; }
  #dkHero .hero-desc { order: 4; }
  #dkHero .hero-platforms { order: 5; }
  #dkHero .hero-ctas { order: 6; }
  #dkHero .hero-stats { order: 7; }
}
@media (max-width: 560px) {
  #dkHero { padding-top: 2.6rem; }
  #dkHero > .hero-inner { gap: 1.35rem; }
  .dkh-card { padding: 1.05rem 1.1rem .9rem; border-radius: 12px; }
  .dkh-card-top { gap: .8rem; padding-bottom: .75rem; }
  .dkh-avatar { width: 56px; height: 56px; }
  .dkh-name { font-size: 1.45rem; }
  .dkh-role { font-size: .58rem; letter-spacing: .13em; }
  .dkh-facts li { font-size: 1.06rem; padding: .5rem 0; }
  .dkh-card-link { margin-top: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dkh-coin-layer { display: none !important; }
  #dkHero .dkh-card, #dkHero .dkh-avatar { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}
