/* PowerFrame Pro front door hero. Loaded with frame.css; only the /frame home page uses these classes. */
.pfh { --h1: #E11D74; --h2: #FFC93C; --h3: #2F6BFF; --h4: #16A34A; --h5: #F97316; --h6: #8B5CF6; background: #0E1322; color: #fff; overflow: hidden; position: relative; }
.pfh-in { max-width: 1180px; margin: 0 auto; padding: 30px 20px 0; display: grid; gap: 8px; }
.pfh-kick { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--text, Inter, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--h2); margin: 0 0 14px; }
.pfh-kick i { width: 10px; height: 10px; background: var(--h1); border-radius: 2px; display: block; }
.pfh h1 { font-family: var(--display, Archivo, sans-serif); font-weight: 900; font-size: clamp(44px, 13.2vw, 104px); line-height: .92; letter-spacing: -0.045em; color: #fff; margin: 0; }
.pfh h1 span { display: block; }
.pfh h1 em { font-style: normal; position: relative; display: inline-block; padding: 0 .12em; margin-left: .02em; z-index: 0; }
.pfh h1 em::before { content: ''; position: absolute; inset: .1em 0 .02em; background: var(--h1); border-radius: 5px; transform: skewX(-8deg); z-index: -1; transform-origin: left center; }
.pfh-sub { font-size: 17px; line-height: 1.5; color: #C9D1E3; max-width: 46ch; margin: 18px 0 0; }
.pfh-sub b { color: #fff; }
.pfh-btns { display: grid; gap: 10px; margin-top: 22px; }
.pfh-btns .btn { border-radius: 4px; justify-content: center; text-align: center; min-height: 54px; font-size: 17px; }
.pfh-ghost { background: transparent; color: #fff; border: 2px solid #3A4460; position: relative; overflow: hidden; }
.pfh-ghost:hover { border-color: var(--h2); color: var(--h2); }
.pfh-ghost::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 28%; transform: skewX(-20deg); background: rgba(255, 255, 255, .22); opacity: 0; }
.pfh-facts { display: none; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pfh-facts li { font: 600 13px/1 var(--text, Inter, sans-serif); padding: 8px 10px; border-radius: 4px; background: #1A2138; color: #E6EAF5; border-left: 3px solid var(--c, var(--h1)); }

/* The fan of real frames */
.pfh-fan { position: relative; height: calc(var(--card) * 1.04); margin: 30px -20px 0; --card: clamp(150px, 46vw, 250px); --step: clamp(40px, 12.5vw, 92px); }
.pfh-card { position: absolute; left: 50%; bottom: calc(var(--card) * -0.1); width: var(--card); aspect-ratio: 1; margin-left: calc(var(--card) / -2); border-radius: 6px; z-index: var(--z);
  transform: translateX(calc(var(--i) * var(--step))) translateY(calc(var(--d) * var(--card) * .045)) rotate(calc(var(--i) * 7deg)); transform-origin: 50% 120%; }
.pfh-card::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: var(--c); filter: blur(34px); opacity: .5; z-index: -1; }
.pfh-face { position: absolute; border-radius: 50%; background: var(--c); overflow: hidden; }
.pfh-face svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pfh-card img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 6px; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .7); }
.pfh-floor { height: 6px; background: var(--h1); position: relative; z-index: 9; box-shadow: 14vw 0 0 var(--h2) inset; }
.pfh-floor { background: linear-gradient(90deg, var(--h1) 0 20%, var(--h5) 20% 40%, var(--h2) 40% 60%, var(--h4) 60% 80%, var(--h3) 80% 100%); box-shadow: none; }

/* Three steps under the hero */
.pfh-steps { display: grid; gap: 10px; margin: 22px 0 6px; padding: 0; list-style: none; counter-reset: s; }
.pfh-steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line, #E3E7EE); border-radius: 6px; background: var(--paper, #fff); position: relative; }
.pfh-steps li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 5px; font: 900 22px/1 var(--display, Archivo, sans-serif); background: #E9ECF3; color: #8A93A8; }
.pfh-steps b { display: block; font-family: var(--display, Archivo, sans-serif); font-size: 17px; color: var(--ink, #18202F); }
.pfh-steps span { color: var(--ink-2, #4A556B); font-size: 14.5px; }
.pfh-steps li.in::before { background: var(--c); color: #fff; }
.pfh-steps li.in { border-color: var(--c); box-shadow: 0 10px 26px -16px var(--c); }
.pfh-studio { scroll-margin-top: 78px; }
.pfh-studio-h { font-family: var(--display, Archivo, sans-serif); font-size: clamp(26px, 6vw, 38px); letter-spacing: -0.02em; margin: 22px 0 4px; color: var(--ink, #18202F); }
.pfh-studio-p { color: var(--ink-2, #4A556B); margin: 0 0 14px; max-width: 62ch; }
#holidays { scroll-margin-top: 78px; }

/* Before any artwork is chosen the empty stage should scroll with the page, not stick over the controls. */
@media (max-width: 899px) {
  .pfh-studio .pf-editor:not(.has-art) .pf-stage-col { position: static; }
}

@media (min-width: 620px) {
  .pfh-btns { grid-template-columns: auto auto; justify-content: start; }
  .pfh-facts { display: flex; }
  .pfh-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .pfh-in { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 30px; padding-top: 54px; }
  .pfh h1 { font-size: clamp(56px, 6.1vw, 92px); }
  .pfh-copy { min-width: 0; position: relative; z-index: 12; }
  .pfh-facts { max-width: 440px; }
  .pfh-copy { padding-bottom: 60px; }
  .pfh-fan { height: 430px; margin: 0; --card: clamp(210px, 19vw, 260px); --step: clamp(46px, 4.4vw, 60px); align-self: end; }
  .pfh-sub { font-size: 19px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .pfh-card { animation: pfh-deal .8s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(.15s + var(--o) * .09s); }
  .pfh-card::before { animation: pfh-glow 1.6s ease-out both; animation-delay: calc(.35s + var(--o) * .09s); }
  @keyframes pfh-deal { from { opacity: 0; transform: translateX(0) translateY(46%) rotate(0deg) scale(.7); } }
  @keyframes pfh-glow { 0% { opacity: 0; transform: scale(.6); } 45% { opacity: 1; transform: scale(1.25); } 100% { opacity: .5; transform: scale(1); } }
  .pfh h1 span { animation: pfh-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  .pfh h1 span:nth-child(2) { animation-delay: .08s; }
  .pfh h1 em::before { animation: pfh-swipe .5s cubic-bezier(.2, .8, .2, 1) .35s both; }
  .pfh-kick, .pfh-sub, .pfh-btns, .pfh-facts { animation: pfh-rise .6s ease-out both; }
  .pfh-sub { animation-delay: .18s; } .pfh-btns { animation-delay: .26s; } .pfh-facts { animation-delay: .34s; }
  @keyframes pfh-rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes pfh-swipe { from { transform: skewX(-8deg) scaleX(0); } }
  .pfh-ghost:hover::after { animation: pf-glint .6s ease-out 1; }
  .pfh-steps li, .pfh-steps li::before { transition: background .35s ease, color .35s ease, border-color .35s ease, box-shadow .5s ease, transform .35s ease; transition-delay: calc(var(--n) * .16s); }
  .pfh-steps li.in::before { transform: scale(1.06) rotate(-4deg); }
  @media (hover: hover) {
    .pfh-card { transition: translate .25s ease, scale .25s ease; }
    .pfh-card:hover { translate: 0 -18px; scale: 1.05; z-index: 20; }
  }
}

/* Make frames by asking ChatGPT or Claude */
.pf-ai { display: grid; gap: 22px; margin: 34px 0; padding: 26px; border-radius: 6px; background: #0F1422; color: #E8ECF4; position: relative; overflow: hidden; }
.pf-ai::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #E11D74 0 20%, #F97316 20% 40%, #FACC15 40% 60%, #16A34A 60% 80%, #2563EB 80%); }
.pf-ai h2 { font: 900 clamp(26px, 6vw, 40px)/1.05 var(--display, Archivo, sans-serif); margin: 4px 0 10px; color: #fff; letter-spacing: -0.02em; }
.pf-ai p { color: #C3CAD8; line-height: 1.55; margin: 0 0 14px; }
.pf-ai-kicker { display: inline-block; margin: 0 !important; padding: 3px 8px; border-radius: 4px; background: #FACC15; color: #111 !important; font: 800 12px/1.4 var(--display, Archivo, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.pf-ai-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; counter-reset: a; }
.pf-ai-steps li { counter-increment: a; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px; border: 1px solid #263048; border-radius: 5px; color: #C3CAD8; }
.pf-ai-steps li::before { content: counter(a); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; background: #263048; color: #fff; font: 900 18px/1 var(--display, Archivo, sans-serif); }
.pf-ai-steps li:nth-child(1) { --c: #E11D74; } .pf-ai-steps li:nth-child(2) { --c: #2563EB; } .pf-ai-steps li:nth-child(3) { --c: #16A34A; }
.pf-ai-steps li.in { border-color: var(--c); box-shadow: 0 10px 26px -14px var(--c); }
.pf-ai-steps li.in::before { background: var(--c); }
.pf-ai-steps b { color: #fff; }
.pf-ai-asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.pf-ai-asks li { padding: 14px 16px; border-radius: 6px 6px 6px 2px; background: #1B2235; border-left: 4px solid var(--c, #E11D74); color: #fff; font-size: 15.5px; line-height: 1.45; }
.pf-ai-asks li:nth-child(1) { --c: #E11D74; } .pf-ai-asks li:nth-child(2) { --c: #F97316; } .pf-ai-asks li:nth-child(3) { --c: #FACC15; } .pf-ai-asks li:nth-child(4) { --c: #16A34A; }
@media (min-width: 900px) { .pf-ai { grid-template-columns: 1.1fr 1fr; padding: 40px; gap: 36px; } }
@media (prefers-reduced-motion: no-preference) {
  .pf-ai-steps li { transition: border-color .5s ease var(--d, 0ms), box-shadow .6s ease var(--d, 0ms); }
  .pf-ai-steps li::before { transition: background .4s ease var(--d, 0ms); }
}

/* ---------- Hero, second pass: light behind the fan, sparkles, halftone faces, a spinning badge ---------- */
.pfh { background: #0B1020; isolation: isolate; }
.pfh-copy { position: relative; }
.pfh-defs { position: absolute; width: 0; height: 0; }
.pfh-fan { perspective: 1400px; }
.pfh-fan > .pfh-card { transform-style: preserve-3d; }
.pfh-face { background: #121829; }
.pfh-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06), inset 0 -18px 30px rgba(0, 0, 0, .45); }
.pfh-bob { position: absolute; inset: 0; display: block; }
.pfh-bob img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 6px; box-shadow: 0 22px 36px -14px rgba(0, 0, 0, .8); }
.pfh-card > img { display: none; }

/* light shining from behind the fan */
.pfh-rays, .pfh-bloom { position: absolute; left: 50%; bottom: 18%; pointer-events: none; z-index: 0; border-radius: 50%; }
.pfh-rays { width: 1500px; height: 1500px; margin: 0 0 -750px -750px; opacity: .9;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 128, .17) 0deg 5deg, rgba(255, 214, 128, 0) 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 8%, rgba(0, 0, 0, .65) 22%, transparent 52%); mask-image: radial-gradient(circle, #000 0 8%, rgba(0, 0, 0, .65) 22%, transparent 52%); }
.pfh-bloom { width: 620px; height: 620px; margin: 0 0 -310px -310px; background: radial-gradient(circle, rgba(255, 201, 60, .5) 0, rgba(225, 29, 116, .28) 34%, rgba(11, 16, 32, 0) 68%); }

/* sparkles */
.pfh-spark { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); z-index: 1; pointer-events: none; background: var(--c);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: .85; }

/* spinning sticker badge */
.pfh-badge { position: absolute; right: 0; top: -6px; width: 92px; height: 92px; z-index: 3; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.pfh-badge text { font: 800 10.4px/1 var(--display, Archivo, sans-serif); letter-spacing: .12em; fill: #0B1020; }

/* the holiday wall: halftone stand-in inside each window, colored tier chips, a shine on hover */
#holidays ~ .pf-sec .pf-card-art.is-art, .pf-sec .pf-card-art.is-art { background-color: #131A2B; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='40' r='13' fill='%23AEB7C6'/%3E%3Cpath d='M23 86c0-19 12-29 27-29s27 10 27 29z' fill='%23AEB7C6'/%3E%3C/svg%3E"); background-size: 100% 100%; background-repeat: no-repeat; position: relative; }
.pf-sec .pf-card-art.is-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.pf-holidays .pf-chip { position: relative; padding-left: 26px; font-weight: 700; }
.pf-holidays .pf-chip::before { content: ''; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; background: var(--c, #18202F); }
.pf-holidays .pf-chip.on { background: var(--c, #18202F); border-color: var(--c, #18202F); color: #fff; }
.pf-holidays .pf-chip.on::before { background: #fff; }
.pf-sec h2 { font-family: var(--display, Archivo, sans-serif); font-weight: 900; font-size: clamp(24px, 5vw, 32px); letter-spacing: -0.02em; }
.pf-h2big { font-size: clamp(30px, 7vw, 52px) !important; line-height: 1; }
.pf-sec .pf-card { border-radius: 6px; }

@media (max-width: 979px) { .pfh-badge { width: 70px; height: 70px; top: -4px; } }

@media (prefers-reduced-motion: no-preference) {
  .pfh-rays { animation: pfh-spin 70s linear infinite, pfh-in-rays 1.6s ease-out both; }
  .pfh-bloom { animation: pfh-breathe 7s ease-in-out infinite, pfh-in-rays 1.2s ease-out both; }
  @keyframes pfh-spin { to { transform: rotate(360deg); } }
  @keyframes pfh-breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
  @keyframes pfh-in-rays { from { opacity: 0; } }
  .pfh-spark { animation: pfh-twinkle var(--t) ease-in-out infinite; animation-delay: calc(var(--t) * -0.37s); }
  @keyframes pfh-twinkle { 0%, 100% { transform: translateY(0) scale(.4) rotate(0deg); opacity: 0; } 40% { opacity: 1; transform: translateY(-10px) scale(1) rotate(45deg); } 70% { opacity: .7; transform: translateY(-18px) scale(.8) rotate(90deg); } }
  .pfh-bob { animation: pfh-float 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s - 1.2s); }
  @keyframes pfh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  .pfh-face::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 50%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%); transform: translateX(-130%); animation: pfh-sheen 6s ease-in-out infinite; animation-delay: calc(2s + var(--o) * .45s); }
  @keyframes pfh-sheen { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
  .pfh-fan { transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform: rotateY(calc(var(--px, 0) * 7deg)) rotateX(calc(var(--py, 0) * -4deg)); }
  .pfh-rays, .pfh-bloom { translate: calc(var(--px, 0) * -24px) calc(var(--py, 0) * -14px); transition: translate .6s ease-out; }
  .pfh-badge { animation: pfh-badge-in .7s cubic-bezier(.2, .9, .25, 1.3) .6s both; }
  .pfh-badge text { animation: pfh-spin 16s linear infinite; transform-origin: 60px 60px; transform-box: view-box; }
  @keyframes pfh-badge-in { from { opacity: 0; transform: scale(.3) rotate(-90deg); } }
  /* wall cards rise in as they scroll into view, a few at a time */
  .pfh-js .pf-sec .pf-card { animation: none; opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .9, .25, 1.15), box-shadow .25s ease, border-color .25s ease; transition-delay: calc(var(--k, 0) * 45ms); }
  .pfh-js .pf-sec .pf-card.in { opacity: 1; transform: none; }
  @media (hover: hover) {
    .pfh-js .pf-sec .pf-card.in:hover { transform: translateY(-6px) rotate(-1.2deg); transition-delay: 0s; }
    .pf-sec .pf-card:hover .pf-card-art.is-art::after { animation: pfh-cardshine .7s ease-out 1; }
    @keyframes pfh-cardshine { to { transform: translateX(120%); } }
    .pfh-card:hover .pfh-bob { animation-play-state: paused; }
  }
}
@media (prefers-reduced-motion: reduce) { .pfh-spark { display: none; } }

/* ---------- Motion, third pass ---------- */
.pf-sec > h2, .pfh-studio-h, .pf-ai h2 { position: relative; display: inline-block; }
.pf-sec > h2::after, .pfh-studio-h::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 5px; width: 100%; border-radius: 2px; background: linear-gradient(90deg, #E11D74 0 25%, #F97316 25% 50%, #FFC93C 50% 75%, #2F6BFF 75%); transform-origin: left center; }
.pfh-floor { position: relative; overflow: hidden; }
.pfh-floor::after { content: ''; position: absolute; top: 0; bottom: 0; width: 18%; background: rgba(255, 255, 255, .75); filter: blur(6px); transform: translateX(-120%); }
.pfh-flash { position: absolute; inset: 0; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  /* headings draw their underline as they arrive */
  .pfh-js .pf-sec > h2::after, .pfh-js .pfh-studio-h::after { transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .8, .2, 1) .15s; }
  .pfh-js .pf-sec > h2.in::after, .pfh-js .pfh-studio-h.in::after { transform: scaleX(1); }
  .pfh-js .pf-sec > h2, .pfh-js .pfh-studio-h, .pfh-js .pf-ai h2 { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .25, 1.15); }
  .pfh-js .pf-sec > h2.in, .pfh-js .pfh-studio-h.in, .pfh-js .pf-ai h2.in { opacity: 1; transform: none; }
  /* a light runs along the rainbow strip under the hero */
  .pfh-floor::after { animation: pfh-run 4.5s ease-in-out 1.5s infinite; }
  @keyframes pfh-run { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(680%); } }
  /* the center frame takes a picture now and then: a camera flash in its window */
  .pfh-card[style*="--i:0;"] .pfh-face::after { animation: pfh-flash 7s ease-out 2.4s infinite; }
  @keyframes pfh-flash { 0%, 92%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06), inset 0 -18px 30px rgba(0, 0, 0, .45); background: transparent; } 93% { background: rgba(255, 255, 255, .95); } 97% { background: rgba(255, 255, 255, .2); } }
  .pfh-card[style*="--i:0;"] .pfh-face svg { animation: pfh-pop 7s ease-out 2.4s infinite; transform-origin: 50% 80%; }
  @keyframes pfh-pop { 0%, 93%, 100% { transform: scale(1); } 95% { transform: scale(1.08) rotate(-2deg); } }
  /* the step badges bounce as they light up */
  .pfh-steps li.in::before { animation: pfh-bounce .6s cubic-bezier(.2, .9, .25, 1.5) both; animation-delay: calc(var(--n) * .16s); }
  @keyframes pfh-bounce { 0% { transform: scale(.6) rotate(0deg); } 70% { transform: scale(1.15) rotate(-6deg); } 100% { transform: scale(1.06) rotate(-4deg); } }
  /* the ChatGPT and Claude asks arrive like messages, one after another */
  .pfh-js .pf-ai-asks li { opacity: 0; transform: translateX(26px) scale(.96); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .25, 1.2); transition-delay: var(--d, 0ms); }
  .pfh-js .pf-ai-asks li.in { opacity: 1; transform: none; }
  /* the yellow badge does a little wiggle every so often */
  .pfh-badge { animation: pfh-badge-in .7s cubic-bezier(.2, .9, .25, 1.3) .6s both, pfh-wiggle 6s ease-in-out 3s infinite; }
  @keyframes pfh-wiggle { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: -10deg; } 94% { rotate: 8deg; } 97% { rotate: -4deg; } }
}
