/* smartEvent homepage hero — three.js hall (se-hero-scene.js).
   Everything is scoped under .se- so it can't collide with the rest of the site. */
.se-hero{
  --night:#05040b; --violet:#6C63FF; --champagne:#F3D9A4;
  --ink:#F5F1FF; --soft:#B9B0CC;
  position:relative;height:100svh;min-height:660px;max-height:1000px;overflow:hidden;color:var(--ink);
  font-family:Heebo,system-ui,sans-serif;text-align:start;
  background:radial-gradient(80% 60% at 30% 60%, rgba(108,99,255,.14), transparent 70%), var(--night)}
.se-hero *,.se-hero *::before,.se-hero *::after{box-sizing:border-box}
.se-hero canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.se-veil{position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(270deg, rgba(5,4,11,.94) 0%, rgba(5,4,11,.62) 34%, rgba(5,4,11,0) 62%),
  linear-gradient(0deg, rgba(5,4,11,.85) 0%, rgba(5,4,11,0) 28%)}

.se-copy{position:absolute;inset-inline-start:clamp(24px,6vw,96px);bottom:clamp(120px,17vh,190px);max-width:860px;z-index:2}
.se-copy h1{margin:0;font-family:Karantina,Heebo,sans-serif;font-weight:700;font-size:clamp(60px,7.6vw,128px);line-height:.86;letter-spacing:.5px;color:var(--ink);text-shadow:0 0 60px rgba(108,99,255,.35)}
.se-copy h1 span{display:block;white-space:nowrap;line-height:inherit;opacity:0;transform:translateY(24px);transition:opacity 1.1s cubic-bezier(.16,1,.3,1),transform 1.1s cubic-bezier(.16,1,.3,1)}
.se-copy h1 span+span{transition-delay:.18s}
.se-copy h1 .se-grad{background:linear-gradient(270deg,#6C63FF 0%,#9b8cff 45%,#d9ccff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;text-shadow:none;filter:drop-shadow(0 0 28px rgba(108,99,255,.45));padding-bottom:.06em}
.se-ready .se-copy h1 span{opacity:1;transform:none}
/* the line under the heading: bigger, smartEvent in white, the promise on its own line in champagne */
.se-copy .se-sub{margin:28px 0 0;max-width:40ch;font-size:clamp(18px,1.6vw,23px);line-height:1.6;font-weight:400;color:#cdc6e2;
  opacity:0;transform:translateY(16px);transition:opacity 1.1s cubic-bezier(.16,1,.3,1) .36s,transform 1.1s cubic-bezier(.16,1,.3,1) .36s}
.se-copy .se-sub b{font-weight:700;color:var(--ink)}
.se-copy .se-sub em{display:block;margin-top:8px;font-style:normal;font-weight:500;color:var(--champagne);text-shadow:0 0 24px rgba(243,217,164,.25)}
.se-ready .se-copy .se-sub,.se-nogl .se-copy .se-sub{opacity:1;transform:none}
.se-actions{display:flex;flex-wrap:wrap;align-items:center;gap:22px;margin-top:32px}
.se-primary{display:inline-flex;align-items:center;min-height:54px;padding:0 30px;border-radius:999px;background:var(--violet);color:#fff;font-weight:700;font-size:17px;text-decoration:none;box-shadow:0 0 0 1px rgba(255,255,255,.12) inset,0 14px 44px rgba(108,99,255,.55);transition:transform .2s,box-shadow .2s}
.se-primary:hover{color:#fff;transform:translateY(-2px);box-shadow:0 0 0 1px rgba(255,255,255,.2) inset,0 18px 54px rgba(108,99,255,.7)}


.se-labels{position:absolute;inset:0;pointer-events:none;z-index:1}
.se-labels span{position:absolute;transform:translate(-50%,-50%);font-size:11px;font-weight:700;color:#cfc8ff;letter-spacing:.5px;opacity:0}

/* no WebGL (or three.js failed to load): a still of the event night */
/* the still is the hall only (740×750), so its inner edge fades into the night */
.se-nogl::before{content:"";position:absolute;top:0;bottom:0;left:0;aspect-ratio:740/750;pointer-events:none;
  background:url('/assets/images/hero/hero-fallback.webp') center/cover no-repeat;
  -webkit-mask-image:linear-gradient(90deg,#000 60%,transparent);mask-image:linear-gradient(90deg,#000 60%,transparent)}
.se-nogl canvas{display:none}
.se-nogl .se-veil{background:linear-gradient(270deg, rgba(5,4,11,.9), rgba(5,4,11,.3))}
.se-nogl .se-copy h1 span{opacity:1;transform:none}

/* English (LTR): the copy sits on the left, so the dark veil and the still move with it */
[dir="ltr"] .se-veil{background:
  linear-gradient(90deg, rgba(5,4,11,.94) 0%, rgba(5,4,11,.62) 34%, rgba(5,4,11,0) 62%),
  linear-gradient(0deg, rgba(5,4,11,.85) 0%, rgba(5,4,11,0) 28%)}
[dir="ltr"] .se-nogl::before{left:auto;right:0;-webkit-mask-image:linear-gradient(270deg,#000 60%,transparent);mask-image:linear-gradient(270deg,#000 60%,transparent)}
[dir="ltr"] .se-nogl .se-veil{background:linear-gradient(90deg, rgba(5,4,11,.9), rgba(5,4,11,.3))}

@media (max-width:760px){
  #se-labels{display:none}
  .se-hero{min-height:720px}
  .se-veil,[dir="ltr"] .se-veil{background:
    linear-gradient(180deg, rgba(5,4,11,.75) 0%, rgba(5,4,11,0) 16%), /* calm behind the logo */
    linear-gradient(0deg, rgba(5,4,11,.95) 0%, rgba(5,4,11,.72) 34%, rgba(5,4,11,0) 54%)}
  .se-nogl::before,[dir="ltr"] .se-nogl::before{left:50%;right:auto;transform:translateX(-50%);-webkit-mask-image:none;mask-image:none}
  .se-copy{inset-inline:22px;bottom:72px} /* the space below used to hold the step bar */
  .se-copy .se-sub{margin-top:16px;font-size:16.5px;line-height:1.55}
  .se-copy .se-sub em{margin-top:4px}
  .se-actions{margin-top:24px}
  /* the hall glows right above the copy on a phone, so the copy gets its own soft shade */
  .se-copy::before{content:"";position:absolute;inset:-56px -22px -28px;z-index:-1;pointer-events:none;
    background:radial-gradient(closest-side, rgba(5,4,11,.82), rgba(5,4,11,.6) 55%, rgba(5,4,11,0))}
  .se-copy h1{text-shadow:0 2px 22px rgba(5,4,11,.9),0 0 60px rgba(108,99,255,.35)}
  /* two lines, never wider than the screen: 60px wherever it fits (5.7 / 7.5 = line width per px of font) */
  .se-copy h1{font-size:min(60px, calc((100vw - 44px) / 5.7))}
  [dir="ltr"] .se-copy h1{font-size:min(60px, calc((100vw - 44px) / 7.5))}
}
@media (prefers-reduced-motion: reduce){
  .se-copy h1 span,.se-copy .se-sub{transition:none}
}
