/* Christmas voucher hero (ku-nyito), prefix kuh-. Tokens from home-b.css (body.lh). --ku-head is the open header
   height, --p the scroll progress of the hero (from ../ku-motion). The gift unwrap uses `transform` keyframes, the
   scroll uses the individual `translate`/`rotate`/`scale` properties, so the two never fight.
   Every animation and transition carries !important: the shared variation-one.css zeroes all durations under
   prefers-reduced-motion with !important, and Matt wants the motion for everyone (accessibility trade-off, reported).
   The gift parts rest at opacity 0, so without animation support only the card shows. */

.kuh{position:relative;overflow:clip;background:var(--bg);padding-top:var(--ku-head,112px);padding-bottom:96px;--p:0}
.kuh-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;align-items:center;padding-top:48px}
.kuh h1{max-width:11.5em;font-size:clamp(2.6rem,4.6vw,4.4rem);line-height:1.08}
.kuh h1 .lh-mark{position:relative;display:inline-block;white-space:nowrap;font-style:italic;color:var(--forest)}
.kuh-underline{position:absolute;left:-3%;bottom:-.14em;width:106%;height:.3em}
.kuh-copy .lh-eyebrow .lh-ico{width:1.15rem;height:1.15rem}
.lh .kuh-lede{max-width:34rem;margin-top:1.5rem;font-size:1.15rem;line-height:1.65;text-wrap:pretty}
.lh .kuh-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem .75rem;margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--line-strong);max-width:34rem}
.kuh-price strong{font:500 2rem/1 var(--serif);color:var(--ink)}
.kuh-price span{color:var(--muted)}
.kuh .lh-actions{margin-top:1.75rem}
.kuh-easy{list-style:none;margin:2rem 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:.7rem 1.5rem;max-width:34rem;font-size:.93rem;color:var(--text)}
.kuh-easy li{display:flex;gap:.55rem;align-items:center;opacity:0;animation:kuh-rise .7s cubic-bezier(.2,.7,.2,1) both!important}
.kuh-easy li:nth-child(1){animation-delay:2.3s!important}.kuh-easy li:nth-child(2){animation-delay:2.42s!important}
.kuh-easy li:nth-child(3){animation-delay:2.54s!important}.kuh-easy li:nth-child(4){animation-delay:2.66s!important}
.kuh-easy .lh-ico{flex:none;width:20px;height:20px;stroke:var(--accent)}

/* Stage: arched photo and the gift in front of it. */
.kuh-stage{position:relative;min-height:600px}
.kuh-photo{position:absolute;right:0;top:0;width:82%;aspect-ratio:4/5;border-radius:240px 240px var(--radius) var(--radius);
  scale:calc(1 - var(--p) * .06);transform-origin:50% 0}
.kuh-photo img{width:100%;height:100%;object-fit:cover}
.kuh-gift{position:absolute;left:-40px;bottom:-10px;width:420px;height:330px;pointer-events:none;
  translate:0 calc(var(--p) * -80px);rotate:calc(var(--p) * 5deg)}

/* The voucher card (rest state = end of the unwrap). */
.kuh-card{position:absolute;left:0;bottom:70px;z-index:2;display:grid;grid-template-columns:1fr auto;width:410px;border-radius:16px;background:var(--forest);color:var(--on-forest);
  box-shadow:0 2px 6px rgba(20,28,12,.18),0 40px 70px -28px rgba(20,28,12,.6);rotate:calc(-4deg + var(--p) * 9deg);
  animation:kuh-card-out 1.1s cubic-bezier(.2,.8,.2,1.15) 1.25s both!important}
.kuh-card::before{content:"";position:absolute;inset:8px;border:1px solid rgba(217,178,106,.35);border-radius:11px;pointer-events:none}
.kuh-card-main{position:relative;display:grid;gap:2px;padding:26px 24px 24px 28px}
.kuh-card-main strong{font:500 1.9rem/1.15 var(--serif);color:#fff;margin:4px 0 6px}
.kuh-card-main span{font-size:.95rem}
.kuh-card-main small{font-size:.82rem;color:rgba(216,220,203,.75)}
.kuh-card-kicker{font:600 .68rem/1.4 var(--sans)!important;letter-spacing:.16em;text-transform:uppercase;color:var(--accent-dark)}
.kuh-card-mark{position:absolute;right:16px;top:20px;width:30px;height:30px;stroke:var(--accent-dark);opacity:.8}
.kuh-card-stub{display:grid;align-content:center;gap:6px;padding:20px 22px;border-left:2px dashed rgba(217,178,106,.5);text-align:center}
.kuh-card-stub b{font:500 1.3rem/1 var(--serif);color:var(--accent-dark);white-space:nowrap}
.kuh-card-stub small{font-size:.72rem;color:rgba(216,220,203,.75);max-width:7em}

/* The gift box parts: red-brown wrap, gold ribbon. */
.kuh-box,.kuh-lid{position:absolute;left:50%;background:linear-gradient(135deg,#8c3b2c,#6e2a1f);border-radius:8px;opacity:0}
.kuh-box{z-index:3;bottom:0;width:300px;height:150px;margin-left:-160px;box-shadow:0 30px 50px -24px rgba(40,20,10,.55);
  animation:kuh-box-off 2.6s ease both!important}
.kuh-lid{z-index:4;bottom:144px;width:330px;height:46px;margin-left:-175px;
  animation:kuh-lid-off 1.7s cubic-bezier(.4,0,.2,1) both!important}
.kuh-rib{position:absolute;left:50%;top:0;bottom:0;width:30px;margin-left:-15px;background:linear-gradient(90deg,#c9a253,#ecd08f,#c9a253);transform-origin:50% 0;
  animation:kuh-untie 1.05s cubic-bezier(.6,0,.4,1) both!important}
.kuh-bow{position:absolute;z-index:5;left:50%;bottom:176px;width:120px;margin-left:-70px;fill:#e2c27a;stroke:#a9853d;stroke-width:2;opacity:0;
  animation:kuh-bow-off 1s cubic-bezier(.5,0,.3,1) both!important}
.kuh-spark{position:absolute;z-index:6;width:26px;height:26px;fill:var(--accent-dark);opacity:0;animation:kuh-spark 1.4s ease-out 2s both!important}
.kuh-spark-1{left:20px;bottom:280px}.kuh-spark-2{left:300px;bottom:300px;width:18px;animation-delay:2.15s!important}.kuh-spark-3{left:380px;bottom:200px;width:22px;animation-delay:2.3s!important}

@keyframes kuh-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes kuh-untie{0%,40%{transform:scaleY(1)}100%{transform:scaleY(0)}}
@keyframes kuh-bow-off{0%,30%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-40px) rotate(70deg) scale(.3)}}
@keyframes kuh-lid-off{0%,55%{opacity:1;transform:none}100%{opacity:0;transform:translate(-90px,-170px) rotate(-28deg)}}
@keyframes kuh-box-off{0%,75%{opacity:1;transform:none}100%{opacity:0;transform:translateY(70px) scale(.94)}}
@keyframes kuh-card-out{0%{opacity:0;transform:translate(40px,150px) scale(.72)}35%{opacity:1}100%{opacity:1;transform:none}}
@keyframes kuh-spark{0%{opacity:0;transform:scale(0) rotate(0)}40%{opacity:1;transform:scale(1.2) rotate(45deg)}100%{opacity:0;transform:scale(.4) rotate(90deg)}}

/* Review mode: everything at rest so comment pins hold. */
[data-sv-review="on"] .kuh :is(.kuh-card,.kuh-easy li){animation:none!important;opacity:1}
[data-sv-review="on"] .kuh :is(.kuh-box,.kuh-lid,.kuh-bow,.kuh-spark){animation:none!important;opacity:0}

@media (max-width:991px){
  .kuh-grid{grid-template-columns:1fr;gap:32px;padding-top:24px}
  .kuh-stage{min-height:0;aspect-ratio:1/1.05;max-width:560px;width:100%;margin-inline:auto}
  .kuh-photo{width:78%}
  .kuh-gift{left:0;bottom:0;transform-origin:0 100%;scale:.8}
}
@media (max-width:599px){
  .kuh{padding-bottom:64px}
  .kuh h1{font-size:2.35rem}
  .kuh-easy{grid-template-columns:1fr}
  .kuh-stage{aspect-ratio:1/1.2}
  .kuh-photo{width:86%}
  .kuh-gift{scale:.64}
}

/* Variant 1 "Közös idő" (2026-11-05): the price line becomes the person-and-time line, set smaller than a price. */
.lh .kuh-time strong{font-size:1.6rem;line-height:1.2}
