/* inner-page hero touch (v7): two or three small prints of our own work, pinned on the empty right of the hero.
   they settle in once on load, then drift a few px with the mouse (--hx/--hy from heroprint.js). split heroes get a
   stamp on their photo instead; contact gets the pune desk card with a live clock. desktop only, except the stamp. */
.page-hero .container { position: relative; }
.hp {
  --hx: 0;
  --hy: 0;
  position: absolute;
  right: clamp(8px, 3vw, 56px);
  top: 50%;
  width: clamp(230px, 22vw, 300px);
  margin: 0;
  translate: calc(var(--hx) * 10px) calc(-50% + var(--hy) * 8px);
  transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.hp__p {
  position: relative;
  display: grid;
  padding: 9px 9px 0;
  border-radius: 6px;
  background: #fbf8f2;
  color: #0b1640;
  box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.85), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  rotate: var(--r, 0deg);
  transition: rotate 1.2s cubic-bezier(0.2, 0.75, 0.2, 1), translate 1.2s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.8s ease;
  transition-delay: var(--d, 0.35s);
}
.hp__p img { display: block; width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; border-radius: 2px; filter: saturate(0.9) contrast(1.04); }
.hp__p span { display: grid; gap: 3px; padding: 10px 3px 13px; }
.hp__p small { font: 700 0.6rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: #a4500a; }
.hp__p b { font: 800 0.95rem/1.2 var(--font); letter-spacing: -0.02em; color: #0b1640; }
.hp__p--a { --r: -3deg; z-index: 3; }
.hp__p--b { --r: 6deg; --d: 0.5s; position: absolute; inset: 0 auto auto 0; width: 100%; z-index: 2; translate: 56px -34px; filter: brightness(0.9); }
.hp__p--c { --r: -9deg; --d: 0.65s; position: absolute; inset: 0 auto auto 0; width: 100%; z-index: 1; translate: -60px 26px; filter: brightness(0.8); }
.js .page-hero:not(.hp-in) .hp__p { --r: 0deg; translate: 0 40px; opacity: 0; }
.hp--three { width: clamp(210px, 19vw, 260px); }

/* split heroes: a stamp on the photo corner */
.hero-photo { position: relative; }
.hp-stamp {
  position: absolute;
  left: -14px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  gap: 3px;
  padding: 10px 14px 11px;
  border-radius: 12px;
  background: #fbf8f2;
  color: #0b1640;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
  rotate: -3deg;
  transition: rotate 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) 0.6s, scale 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) 0.6s, opacity 0.4s ease 0.6s;
}
.hp-stamp small { font: 700 0.6rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: #a4500a; }
.hp-stamp b { font: 800 0.98rem/1.15 var(--font); letter-spacing: -0.02em; }
.js .page-hero:not(.hp-in) .hp-stamp { rotate: -14deg; scale: 1.6; opacity: 0; }

/* contact: the pune desk card */
.hp-desk {
  position: absolute;
  right: clamp(8px, 3vw, 56px);
  top: 50%;
  translate: 0 -50%;
  display: grid;
  gap: 6px;
  min-width: 250px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(6, 12, 52, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  color: #fff;
  transition: opacity 0.8s ease 0.4s, translate 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s;
}
.js .page-hero:not(.hp-in) .hp-desk { opacity: 0; translate: 0 calc(-50% + 30px); }
.hp-desk small { display: flex; align-items: center; gap: 8px; font: 700 0.62rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: #ffd29a; }
.hp-desk small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffb35c; box-shadow: 0 0 0 0 rgba(255, 179, 92, 0.6); animation: hp-ping 2.4s ease-out infinite; }
.hp-desk time { font: 800 2.4rem/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.page-hero .hp-desk a { color: #fff; font: 600 0.92rem/1.3 var(--font); text-decoration: underline; text-decoration-color: rgba(255, 179, 92, 0.7); text-underline-offset: 4px; pointer-events: auto; }
.page-hero .hp-desk a:hover { color: #ffd29a; }
@keyframes hp-ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 179, 92, 0); } }

@media (max-width: 1099px) { .hp, .hp-desk { display: none; } }
@media (max-width: 720px) { .hp-stamp { left: 10px; bottom: 12px; padding: 8px 11px 9px; } .hp-stamp b { font-size: 0.88rem; } }
@media (prefers-reduced-motion: reduce) {
  .hp, .hp__p, .hp-stamp, .hp-desk { transition: none !important; }
  .hp-desk small::before { animation: none; }
  .js .page-hero:not(.hp-in) :is(.hp__p, .hp-stamp, .hp-desk) { opacity: 1; scale: 1; }
}
/* keep the copy clear of the prints / desk card */
@media (min-width: 1100px) {
  .page-hero .container:has(> .hp) > :not(.hp) { max-width: calc(100% - clamp(230px, 22vw, 300px) - clamp(60px, 7vw, 120px)); }
  .page-hero .container:has(> .hp--three) > :not(.hp) { max-width: calc(100% - clamp(210px, 19vw, 260px) - clamp(110px, 10vw, 160px)); }
  .page-hero .container:has(> .hp-desk) > :not(.hp-desk) { max-width: calc(100% - 330px); }
}
@media (min-width: 1100px) {
  .page-hero .container:has(> .hp) { min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .hp--three .hp__p--b { translate: 54px -26px; }
  .hp--three .hp__p--c { translate: -58px 14px; }
}
