/* VibeCMD homepage upgrades (2026-11-21): 25 items layered onto the
   six-panel less-is-more homepage. Loaded only by home.php. Shared
   stylesheets are untouched. */

/* ---------- Item 19: layered glass depth on the panels ---------- */
.hp-panel{background-image:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0) 34%,rgba(0,0,0,.028));box-shadow:inset 0 1px 0 rgba(255,255,255,.055),inset 0 -1px 0 rgba(0,0,0,.045)}
.hp-shot img,.hp-portrait img{box-shadow:var(--shadow-3),inset 0 1px 0 rgba(255,255,255,.08)}

/* ---------- Item 18: scroll reveal (JS adds .hp-rv; no JS = visible) ---------- */
.hp-rv{opacity:0;transform:translateY(14px)}
.hp-rv-in{opacity:1;transform:none;transition:opacity .5s ease,transform .5s ease}
@media(prefers-reduced-motion:reduce){.hp-rv{opacity:1;transform:none}}

/* ---------- Item 4: hero background 3D ring ---------- */
/* 2026-11-21 ring: the ambience video failed Kc's eye twice (first
   too zoomed, then the frosted rebuild too faint to see rotate), so
   the hero background is now a real 3D carousel in the same "3D
   java" language as the hero coin: the 12 app screenshots stand as
   panels on a cylinder (rotateY(i*30deg) translateZ(540px) in
   home.php) turning slowly behind the hero phone, with per-panel
   depth shading from home-upgrades.js (brightness .22-.85, opacity
   .45-1, blur up to 2.2px by distance, so far-side panels read as
   dim frosted backs seen through the ring). Perspective 1500px;
   the front panel projects to ~312px wide, just under the 330px
   phone, so the flagship covers the ring's front and the portfolio
   orbits around it. Composite-tested at several rotation angles
   before shipping. The shade layer above the ring (below the
   content wrap, z 1) keeps the headline zone readable and carries
   the faint gold glow behind the phone. Fallbacks: no JS or
   reduced motion leaves the stack's poster background (the ring
   markup only renders via its inline transforms, and the JS hides
   the rotor when preserve-3d is unsupported). The ring scales
   down on narrow screens so the orbit still frames the phone. */
.hp-hero{position:relative;overflow:hidden;isolation:isolate}
.hp-bgstack{position:absolute;inset:0;z-index:0;pointer-events:none;background:#0A1423 url(/assets/hero-ambience-poster.jpg?v=20261121ring1) center/cover no-repeat}
.hp-ringview{position:absolute;inset:0;perspective:1500px;perspective-origin:50% 50%}
.hp-ringrotor{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d}
.hp-panel3d{position:absolute;left:-100px;top:-216px;width:200px;height:433px}
.hp-panel3d img{display:block;width:100%;height:100%;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 50px rgba(0,0,0,.45)}
.hp-bgshade{position:absolute;inset:0;background:radial-gradient(ellipse 46% 40% at 50% 60%,rgba(242,207,91,.13),rgba(242,207,91,0) 70%),radial-gradient(ellipse 92% 62% at 50% 30%,rgba(10,20,35,.66),rgba(10,20,35,.36) 58%,rgba(10,20,35,.18)),linear-gradient(180deg,rgba(10,20,35,.36),rgba(10,20,35,.12) 55%,rgba(10,20,35,.32))}
@media(max-width:1100px){.hp-ringview{transform:scale(.82)}}
@media(max-width:760px){.hp-ringview{transform:scale(.6)}}
@media(max-width:460px){.hp-ringview{transform:scale(.48)}}
.hp-hero .vc-wrap{position:relative;z-index:1}

/* ---------- Item 21: seasonal warm glow (config: $HP_SEASONAL) ---------- */
.hp-tilt-seasonal::before{content:"";position:absolute;inset:-38px -58px;border-radius:50%;background:radial-gradient(closest-side,rgba(242,207,91,.34),rgba(242,207,91,.1) 55%,rgba(242,207,91,0) 72%);filter:blur(6px);z-index:0;pointer-events:none}

/* ---------- Items 3 + 10: booking line and open-now status ---------- */
.hp-bookline{margin:20px auto 0;font-size:clamp(16px,1.8vw,19px);font-weight:600;color:var(--text-role-body)}
.hp-status{display:inline-flex;align-items:center;gap:8px;margin:10px auto 0;font-size:14.5px;color:var(--text-role-muted)}
.hp-dot{width:10px;height:10px;border-radius:50%;background:var(--neutral-500);flex:none}
.hp-dot.is-open{background:#2fbf71;box-shadow:0 0 0 4px rgba(47,191,113,.18)}
.hp-status-close{margin-top:14px}

/* ---------- Item 13: text-Kevin line ---------- */
.hp-textline{margin:14px auto 0;font-size:15px;color:var(--text-role-muted)}
.hp-textline a{color:var(--accent);font-weight:600;padding:6px 2px}

/* ---------- 2026-11-21 hero revert: slim row under the phone ----------
   The booking line, open-now status, and text-Kevin link moved out of
   the hero text stack into one compact row directly under the phone
   figure, so the hero reads eyebrow, headline, one line, button,
   phone. The row is quiet: one line tall on wide screens, wrapping
   centered on narrow ones. */
.hp-underrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 26px;margin:30px auto 0}
.hp-underrow .hp-bookline{margin:0;font-size:15.5px}
.hp-underrow .hp-status{margin:0}
.hp-underrow .hp-textline{margin:0}

/* ---------- Item 15: "I need" chips ---------- */
.hp-chips{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;margin:26px auto 0}
.hp-chips-label{font-size:14px;color:var(--text-role-muted);font-weight:600;letter-spacing:.02em}
.hp-chip{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border:1px solid var(--line);border-radius:var(--radius-full);background:rgba(255,255,255,.05);color:var(--text-role-body);font-size:15px;font-weight:600;text-decoration:none;box-shadow:var(--shadow-1)}
.hp-chip:hover{border-color:var(--accent);color:var(--accent)}

/* ---------- Item 2: hero tilt wrapper (coin geometry untouched) ---------- */
.hp-tilt{position:relative;perspective:1100px}
.hp-tilt .hp-shot{z-index:1}
.hp-tilting{transition:transform .18s ease-out;will-change:transform}

/* ---------- Item 1: hero screenshot rotation ---------- */
.hp-shot img.hp-hero-top{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:var(--radius-device);box-shadow:var(--shadow-3);border:1px solid var(--line);opacity:0;transition:opacity .7s ease;pointer-events:none}
.hp-shot.hp-rot-on .hp-hero-top{opacity:1}
.hp-coin{transition:opacity .5s ease}
.hp-shot.hp-coin-off .hp-coin{opacity:0}
/* 2026-11-21 ambience fix: solid backing behind the hero phone stack
   (the theme's body background) so nothing behind the figure can ever
   show through it, and a no-transition class the rotation JS uses to
   reset the overlay invisibly after each fade-in swap. */
.hp-hero .hp-shot{background:#F4F7FA;border-radius:var(--radius-device)}
:root[data-theme="dark"] .hp-hero .hp-shot{background:#0A1423}
.hp-shot img.hp-hero-top.hp-snap{transition:none!important}

/* ---------- Item 6: store badges ---------- */
.hp-badges{display:flex;gap:14px;justify-content:center;align-items:center;margin:30px auto 0;flex-wrap:wrap}
.hp-badges a{display:inline-flex;align-items:center;min-height:44px;border-radius:8px}
.hp-badges img{height:44px;width:auto;display:block}

/* ---------- Item 9: count-up stats ---------- */
.hp-stats{display:flex;flex-wrap:wrap;gap:18px 44px;justify-content:center;margin:44px auto 0;max-width:820px}
.hp-stat{display:flex;flex-direction:column;gap:2px;min-width:110px}
.hp-stat-num{font-size:clamp(30px,3.6vw,42px);font-weight:700;line-height:1;color:var(--text-role-body)}
.hp-stat-label{font-size:13.5px;color:var(--text-role-muted)}

/* ---------- Item 20: coin cameo in the apps panel ---------- */
.hp-cameo-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;margin:40px auto 0}
.hp-cameo{position:relative;width:76px;height:76px;border:0;background:none;padding:0;cursor:pointer;perspective:600px;border-radius:50%}
.hp-cameo-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.45,.05,.35,1)}
.hp-cameo.is-flipped .hp-cameo-inner{transform:rotateY(180deg)}
.hp-cameo-face{position:absolute;inset:0;border-radius:50%;background-size:cover;background-position:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:inset 0 0 0 2px rgba(122,84,10,.5),var(--shadow-2)}
.hp-cameo-back{transform:rotateY(180deg)}
.hp-cameo-label{font-size:13.5px;color:var(--text-role-muted)}
@media(prefers-reduced-motion:reduce){.hp-cameo-inner{transition:none}}

/* ---------- Item 8: Blueprint / Build / Launch steps ---------- */
.hp-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:860px;margin:48px auto 0;text-align:left}
.hp-step{margin:0}
.hp-step img{width:100%;height:auto;border-radius:var(--radius-md);box-shadow:var(--shadow-2);border:1px solid var(--line);display:block}
.hp-step h3{font-size:17px;margin:14px 0 6px;color:var(--text-role-body)}
.hp-step h3 .hp-step-n{color:var(--gold-400);margin-right:6px}
.hp-step p{font-size:14.5px;line-height:1.55;color:var(--text-role-muted);margin:0}
@media(max-width:700px){.hp-steps{grid-template-columns:repeat(3,1fr);max-width:100%;gap:10px}.hp-step h3{font-size:14px;margin-top:10px}.hp-step p{font-size:12.5px}}

/* ---------- Item 11: Blueprint detail link ---------- */
.hp-textlink{display:inline-block;margin-top:18px;font-size:15.5px;font-weight:600;color:var(--accent);padding:8px 4px}

/* ---------- Item 7: one flipping coin (IT panel) ----------
   2026-11-21: Kc asked for ONE coin flipping through all 12 faces
   instead of the 12-coin labeled grid. Same 3D language as the hero
   coin: two faces at translateZ(5px) with reeded edge layers between
   them; home-upgrades.js drives the hold/flip cycle and swaps the
   label under the coin as each face lands. The label row has a fixed
   min-height so the swap never shifts the layout. */
.hp-onecoin{display:flex;flex-direction:column;align-items:center;margin:46px auto 0}
.hp-onecoin-stage{width:168px;height:168px;perspective:900px}
.hp-onecoin-3d{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 1.5s cubic-bezier(.45,.05,.35,1)}
.hp-onecoin-3d.is-flipping{transform:rotateY(180deg)}
.hp-onecoin-3d.is-snap{transition:none}
.hp-onecoin-face{position:absolute;inset:0;border-radius:50%;background-size:110% 110%;background-position:center;background-repeat:no-repeat;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:inset 0 0 0 2px rgba(122,84,10,.55),inset 0 -10px 18px rgba(58,42,0,.35),inset 0 9px 15px rgba(255,244,200,.35),var(--shadow-2)}
.hp-onecoin-front{transform:translateZ(5px)}
.hp-onecoin-back{transform:rotateY(180deg) translateZ(5px)}
.hp-onecoin-edge{position:absolute;inset:0;border-radius:50%;background:repeating-linear-gradient(90deg,#A87E0F 0 3px,#F2C94C 3px 6px)}
.hp-onecoin-labelrow{margin:14px 0 0;min-height:44px;display:flex;align-items:flex-start;justify-content:center}
.hp-onecoin-label{font-size:16px;font-weight:600;line-height:1.3;color:var(--accent);text-decoration:none;padding:6px 10px;transition:opacity .18s ease}
.hp-onecoin-label.is-plain{color:var(--text-role-muted)}
a.hp-onecoin-label:hover{text-decoration:underline}
.hp-onecoin-label.is-swap{opacity:0}
@media(max-width:600px){.hp-onecoin-stage{width:132px;height:132px}}
@media(prefers-reduced-motion:reduce){.hp-onecoin-label{transition:none}.hp-onecoin-3d{transition:none}}

/* ---------- Item 24: rotating "Now serving" line ---------- */
.hp-serving{margin:30px auto 0;font-size:16px;color:var(--text-role-muted);display:flex;gap:8px;align-items:center;justify-content:center}
.hp-serving-label{font-weight:600;color:var(--text-role-body)}
.hp-serving a{color:var(--accent);font-weight:600;text-decoration:none;padding:11px 8px;min-height:44px;display:inline-flex;align-items:center;transition:opacity .3s ease}
.hp-serving a.hp-serving-swap{opacity:0}
.hp-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- Item 5: reviews rotator ---------- */
.hp-rev-rotator{transition:height .45s ease;overflow:hidden}
.hp-rev-slide{display:none}
.hp-rev-slide.is-active{display:block;animation:hpRevFade .5s ease}
@keyframes hpRevFade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.hp-rev-slide.is-active{animation:none}.hp-rev-rotator{transition:none}}

/* ---------- Item 14: latest writing strip ---------- */
.hp-writing{margin:52px auto 0;max-width:820px;border-top:1px solid var(--line);padding-top:26px;text-align:left}
.hp-writing-label{font-size:12.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--text-role-muted);margin:0 0 12px;text-align:center}
.hp-writing-links{display:grid;grid-template-columns:1fr 1fr;gap:14px 30px}
.hp-writing a{display:block;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-md);text-decoration:none;color:var(--text-role-body);background:rgba(255,255,255,.04);min-height:44px}
.hp-writing a span{display:block;font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--gold-400);margin-bottom:4px}
.hp-writing a strong{font-size:15.5px;line-height:1.4;font-weight:600}
.hp-writing a:hover{border-color:var(--accent)}
@media(max-width:700px){.hp-writing-links{grid-template-columns:1fr}}

/* ---------- Item 16: mini FAQ accordion ---------- */
.hp-faq{max-width:760px;margin:54px auto 0;text-align:left}
.hp-faq h3{font-size:20px;margin:0 0 14px;color:var(--text-role-body);text-align:center}
.hp-faq details{border:1px solid var(--line);border-radius:var(--radius-md);margin-bottom:10px;background:rgba(255,255,255,.04)}
.hp-faq summary{cursor:pointer;padding:13px 18px;min-height:44px;display:flex;align-items:center;font-weight:600;font-size:15.5px;color:var(--text-role-body);list-style:none}
.hp-faq summary::-webkit-details-marker{display:none}
.hp-faq summary::after{content:"+";margin-left:auto;font-size:20px;color:var(--gold-400);flex:none;padding-left:12px}
.hp-faq details[open ] summary::after{content:"\2212"}
.hp-faq details p{margin:0;padding:0 18px 16px;font-size:14.5px;line-height:1.6;color:var(--text-role-muted)}
.hp-faq-more{text-align:center;margin-top:6px}

/* ---------- Item 17: start-here path card ---------- */
.hp-start{max-width:860px;margin:54px auto 0;border:1px solid var(--line);border-radius:var(--radius-xl);padding:30px 30px 26px;background:rgba(255,255,255,.04);box-shadow:var(--shadow-1);text-align:left}
.hp-start h3{margin:0 0 16px;font-size:20px;color:var(--text-role-body);text-align:center}
.hp-start-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hp-start-path{display:block;border:1px solid var(--line);border-radius:var(--radius-md);padding:18px;text-decoration:none;color:var(--text-role-body);min-height:44px}
.hp-start-path strong{display:block;font-size:16px;margin-bottom:5px;color:var(--text-role-body)}
.hp-start-path span{font-size:14.5px;line-height:1.55;color:var(--text-role-muted)}
.hp-start-path:hover{border-color:var(--accent)}
.hp-start-path:hover strong{color:var(--accent)}
@media(max-width:700px){.hp-start-grid{grid-template-columns:1fr}}

/* ---------- Item 25: focus visibility across the homepage panels ---------- */
.hp-panel a:focus-visible,.hp-panel button:focus-visible,.hp-panel summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
