/* Hero deck of the home, in the style of /klama (public/landing/kerux/hero.css): a big
   screen over a tray of slides. The first slide is the headline, the goodbye crossed
   out and the hello filled with the AdminFiel gradient.
   View: landing/partials/home-deck.blade.php · behavior: public/landing/kerux/hero.js */
@font-face{font-family:Inter;src:url('../../loginx/fonts/montserrat/Montserrat-Black.ttf') format('truetype');font-display:swap;font-weight:900}
.deck{--live:#34f9f3;display:flex;flex-direction:column;width:min(1520px,calc(100% - 48px));min-height:calc(100svh - 80px);margin:0 auto;padding-bottom:20px}
.deck-screen{position:relative;flex:1 1 auto;min-height:340px;border-radius:24px;overflow:hidden;background:#08070f;isolation:isolate;container-type:inline-size;box-shadow:0 0 0 1px rgba(178,169,255,.16),0 30px 90px rgba(4,4,15,.45)}
.deck-slide{position:absolute;inset:0;opacity:0;visibility:hidden;isolation:isolate;transition:opacity .5s ease,visibility 0s .5s}
.deck-slide.is-live{opacity:1;visibility:visible;z-index:1;transition:opacity .5s ease}
.deck-slide>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Headline: a slow glow behind, the hello painted with a drifting gradient. */
.deck-glow{position:absolute;inset:-20%;z-index:-1;background:radial-gradient(40% 50% at 20% 70%,rgba(94,77,234,.45),transparent 70%),radial-gradient(35% 45% at 80% 30%,rgba(52,249,243,.22),transparent 70%);filter:blur(30px)}
.deck-headline{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;max-width:none;margin:0;padding:clamp(20px,4vw,64px);font-weight:900;letter-spacing:-.065em;line-height:.9;text-align:left}
.deck-bye,.deck-hi{display:block;white-space:nowrap}
/* --bye (its length) comes from the view: a longer goodbye shrinks so it never reaches Adi. */
.deck-bye{align-self:flex-start;color:#a5a1c4;font-size:min(4.7vw,8svh,76px,66cqw / (var(--bye) * .52));font-weight:600;letter-spacing:-.05em;line-height:1.15;transform-origin:left bottom}
.deck-bye>span{position:relative;display:inline-block}
.deck-bye>span:after{content:"";position:absolute;left:-1%;right:-1%;top:56%;height:.07em;border-radius:1em;background:#ff5c7c;transform-origin:left}
/* --chars and --word (longest word) come from the view: the greeting fills the screen in any language. */
/* Room around the glyphs: overflow:hidden (for the rise) and background-clip:text both cut at
   the box, and the tight line-height and tracking push the i dots and the final period outside it. */
.deck-hi{padding:.16em .12em .14em 0;margin:-.16em -.12em 0 0;font-size:min(74cqw / (var(--chars) * .6),32svh);overflow:hidden}
/* Adi rises from the bottom edge, on the right, once the hello is up, and keeps waving. */
.deck-slide>.deck-adi{inset:auto 6% 0 auto;z-index:0;width:auto;height:min(60%,42cqw);object-fit:contain;transform-origin:50% 100%;filter:drop-shadow(0 20px 50px rgba(94,77,234,.45))}
.deck-hello .deck-headline{z-index:1}
.deck-hi>span{display:inline-block;color:transparent;background:linear-gradient(100deg,#34f9f3 0%,#7b6bff 30%,#e86bff 50%,#7b6bff 70%,#34f9f3 100%) 0 50%/250% 100%;-webkit-background-clip:text;background-clip:text;padding:.16em .12em 0 0;margin:-.16em -.12em 0 0}

/* Service slides. */
/* The photo is bright: an even indigo veil plus a darker pool behind the centered text. */
.deck-people:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 60% 45% at 50% 50%,rgba(8,7,20,.6),transparent 75%),linear-gradient(0deg,rgba(8,7,20,.88),rgba(20,16,52,.66) 60%,rgba(20,16,52,.62))}
.deck-finances{background:radial-gradient(60% 80% at 75% 50%,rgba(94,77,234,.55),transparent 70%),#100e24}
.deck-directory{background:radial-gradient(60% 80% at 80% 40%,rgba(52,249,243,.18),transparent 70%),#0d0c1d}
.deck-text{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5em;padding:6%;color:#fff;font-size:min(5.6vw,11svh,96px);font-weight:700;line-height:1.05;letter-spacing:-.045em;text-align:center;text-wrap:balance;text-shadow:0 3px 30px rgba(0,0,0,.45)}
.deck-text small{font-size:.24em;font-weight:500;letter-spacing:0;line-height:1.5;color:#e2dff6;max-width:40ch}
.deck-split{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);align-items:center;gap:4%;padding:0 5%}
.deck-split .deck-text{position:static;align-items:flex-start;padding:0;font-size:min(4.6vw,9svh,80px);text-align:left}
.deck-shot{margin:0;height:100%;min-height:0;display:flex;align-items:center;justify-content:center}
.deck-shot img{height:94%;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 30px 60px rgba(0,0,0,.5))}
.deck-shot-directory img{width:122%;height:auto;max-width:none;border-radius:14px;transform:perspective(1600px) rotateY(-16deg) translateX(10%);box-shadow:0 0 0 1px rgba(178,169,255,.35),0 40px 90px rgba(0,0,0,.6),0 0 80px rgba(94,77,234,.25)}

/* Autoplay: the live thumbnail fills a bar; when it ends hero.js advances. Paused deck, paused bar. */
.deck-thumb{position:relative}
.deck-thumb.is-timing:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--live);transform-origin:left;animation:deck-timer var(--hold,6500ms) linear both}
.deck.is-paused .deck-thumb.is-timing:after{animation-play-state:paused}
@keyframes deck-timer{from{transform:scaleX(0)}to{transform:none}}
.deck-toggle{position:absolute;right:16px;top:16px;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(16,16,29,.6);color:#fff;cursor:pointer;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:background .2s}
.deck-toggle[hidden]{display:none}
.deck-toggle:hover{background:rgba(16,16,29,.85)}
.deck-toggle:focus-visible{outline:3px solid #b2a9ff;outline-offset:3px}
.deck-toggle svg{width:16px;height:16px;fill:currentColor}
.deck-toggle[aria-pressed=false] .deck-toggle-play,.deck-toggle[aria-pressed=true] .deck-toggle-pause{display:none}

/* Video play over the screen: a veil and a big button on hover; small and fixed on touch screens. */
.deck-screen:after{content:"";position:absolute;inset:0;z-index:2;background:radial-gradient(circle at 50% 50%,rgba(8,7,20,.55),rgba(8,7,20,.25) 60%);opacity:0;pointer-events:none;transition:opacity .25s ease}
.deck-play{position:absolute;left:50%;top:50%;z-index:3;display:flex;flex-direction:column;align-items:center;gap:12px;padding:0;border:0;background:none;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer;opacity:0;transform:translate(-50%,-50%) scale(.85);transition:opacity .25s ease,transform .25s cubic-bezier(.16,1,.3,1)}
.deck-play-ring{position:relative;display:grid;place-items:center;width:92px;height:92px;border-radius:50%;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 20px 50px rgba(0,0,0,.45);transition:background .2s,transform .2s}
.deck-play-ring:before{content:"";position:absolute;inset:-10px;border-radius:50%;border:2px solid rgba(52,249,243,.55);opacity:0}
.deck-play-ring svg{width:34px;height:34px;margin-left:5px;fill:#fff}
.deck-play:hover .deck-play-ring{background:var(--live);transform:scale(1.06)}
.deck-play:hover .deck-play-ring svg{fill:#101525}
.deck-play-label{padding:6px 12px;border-radius:999px;background:rgba(16,16,29,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.deck-play:focus-visible{outline:none}
.deck-play:focus-visible .deck-play-ring{outline:3px solid #b2a9ff;outline-offset:6px}
@media(hover:hover){
  .deck-screen:hover:after,.deck-screen:has(.deck-play:focus-visible):after{opacity:1}
  .deck-screen:hover .deck-play,.deck-play:focus-visible{opacity:1;transform:translate(-50%,-50%) scale(1)}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .deck-screen:hover .deck-play-ring:before{animation:deck-play-ring 1.8s ease-out infinite}
}
@keyframes deck-play-ring{from{opacity:.9;transform:scale(.9)}to{opacity:0;transform:scale(1.35)}}
@media(hover:none){
  .deck-play{left:auto;right:14px;top:auto;bottom:14px;opacity:1;transform:none}
  .deck-play-ring{width:48px;height:48px}
  .deck-play-ring svg{width:20px;height:20px;margin-left:3px}
  .deck-play-label{display:none}
}

/* Booth: copy on the left, slide tray on the right. */
.deck-booth{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr);gap:clamp(24px,4vw,64px);align-items:center;padding-top:24px}
.deck-copy .intro{max-width:500px;margin:0;color:#e2dff6;font-size:17px;line-height:1.5}
.deck-copy .actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:18px}
.deck-video{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;border:0;background:none;color:#f0efff;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.deck-video span{color:var(--live);font-size:11px}
.deck-video:hover{color:var(--live)}
.deck-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.deck-thumb{display:block;padding:0;border:0;border-radius:10px;overflow:hidden;background:#1b1a2e;color:#fff;font:inherit;text-align:left;cursor:pointer;box-shadow:0 0 0 1px rgba(178,169,255,.24);transition:box-shadow .2s,transform .2s}
.deck-thumb:hover{transform:translateY(-3px)}
.deck-thumb:active{transform:translateY(0)}
.deck-thumb[aria-pressed=true]{box-shadow:0 0 0 3px var(--live)}
.deck-thumb:focus-visible{outline:3px solid #b2a9ff;outline-offset:5px}
.deck-thumb-art{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#08070f center/cover}
.thumb-hello .deck-thumb-art{background:radial-gradient(circle at 30% 70%,rgba(94,77,234,.6),transparent 70%),#08070f}
.thumb-hello .deck-thumb-art b{max-width:88%;font-size:clamp(11px,1.45vw,21px);font-weight:900;line-height:.95;letter-spacing:-.05em;text-align:center;text-wrap:balance;color:transparent;background:linear-gradient(100deg,#34f9f3,#7b6bff,#e86bff);-webkit-background-clip:text;background-clip:text}
.thumb-finances .deck-thumb-art{background-color:#2a2070;background-size:contain;background-repeat:no-repeat}
.thumb-directory .deck-thumb-art{background-position:left top}
.deck-thumb-name{display:block;padding:7px 10px;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thumb-hello .deck-thumb-name{background:#3a2d9c}
.thumb-people .deck-thumb-name{background:#1f4fa8}
.thumb-finances .deck-thumb-name{background:#5e4dea}
.thumb-directory .deck-thumb-name{background:#0f6f78}
.deck-fine{margin-top:6px;color:#a9a5c5;font-size:12px;text-align:left}

/* Entrance: the goodbye fills the screen, gets crossed out, and the hello rises. */
@media(prefers-reduced-motion:no-preference){
  .deck-bye{animation:deck-bye 1.9s cubic-bezier(.7,0,.2,1) both}
  .deck-bye>span:after{animation:deck-strike .45s .75s cubic-bezier(.7,0,.2,1) both}
  .deck-hi>span{animation:deck-hi .95s 1.35s cubic-bezier(.16,1,.3,1) both,deck-flow 9s 2.3s linear infinite}
  .deck-glow{animation:deck-glow 14s ease-in-out infinite alternate}
  .deck-adi{animation:deck-adi .9s 1.6s cubic-bezier(.34,1.56,.64,1) both,deck-sway 4s 2.5s ease-in-out infinite}
}
@keyframes deck-bye{0%,62%{color:#fff;transform:translateY(130%) scale(1.5)}100%{color:#a5a1c4;transform:none}}
@keyframes deck-strike{from{transform:scaleX(0)}to{transform:none}}
@keyframes deck-hi{from{transform:translateY(112%)}to{transform:none}}
@keyframes deck-flow{to{background-position:250% 50%}}
@keyframes deck-adi{from{opacity:0;transform:translateY(60%)}to{opacity:1;transform:none}}
@keyframes deck-sway{0%,100%{transform:rotate(0)}50%{transform:rotate(-3deg)}}
@keyframes deck-glow{to{transform:translate(6%,-4%) rotate(8deg)}}

@media(max-width:1000px){
  .deck-booth{grid-template-columns:1fr}
}
@media(max-width:767px){
  .deck{width:calc(100% - 24px);min-height:0}
  .deck-screen{flex:none;height:56svh;min-height:320px;border-radius:18px}
  /* The goodbye may wrap on a phone; one bar can't cross two lines, so the text itself is struck. */
  .deck-bye{font-size:8vw;white-space:normal}
  .deck-bye>span{text-decoration:line-through;text-decoration-color:#ff5c7c;text-decoration-thickness:.07em}
  .deck-bye>span:after{display:none}
  .deck-hi{font-size:min(88cqw / (var(--word) * .66),16svh);white-space:normal}
  .deck-headline{justify-content:flex-start;padding-top:12%}
  .deck-slide>.deck-adi{right:50%;height:36%;translate:50% 0}
  .deck-text{font-size:9vw}
  .deck-split{grid-template-columns:1fr;grid-template-rows:auto 1fr;padding:8% 6% 0;gap:12px}
  .deck-split .deck-text{font-size:8vw}
  .deck-text small{font-size:13px}
  .deck-shot{overflow:hidden;align-items:flex-start}
  .deck-split{grid-template-rows:auto minmax(0,1fr)}
  .deck-shot img{height:100%}
  .deck-shot-directory img{width:150%;height:auto;transform:none}
  .deck-booth{gap:22px;padding-inline:6px}
  .deck-tray{gap:8px}
  .deck-thumb-name{padding:6px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.deck-slide,.deck-slide.is-live,.deck-thumb{transition:none}}
