/* st(AI)way — event page. Builds on styles.css (tokens, nav, buttons, footer). */
[hidden]{display:none!important}
.ev-main{position:relative;padding:calc(88px + 28px) 0 80px;min-height:70vh;overflow:hidden}
.ev-nav{gap:22px}
.ev-app{position:relative;z-index:1;max-width:var(--wrap);margin:0 auto;padding:0 clamp(16px,4vw,48px);display:flex;flex-direction:column;gap:56px}
.ev-crumb{font-family:var(--label);font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;margin:0}
.ev-crumb a{color:var(--blue-deep);text-decoration:none}.ev-crumb a:hover{text-decoration:underline}
.ev-nojs,.ev-missing{max-width:640px;margin:40px auto;text-align:center}
.ev-missing h1{font-family:var(--title);font-weight:900;font-size:clamp(34px,6vw,60px);line-height:1;margin:0 0 14px}
.ev-missing .btn{margin-top:18px}

/* ---------- poster-style backdrop: dashed lines draw in, blue stripes float ---------- */
.ev-deco{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ev-deco svg{position:absolute;right:-6%;top:-2%;width:min(980px,90vw);height:auto;opacity:.9}
.ev-deco .ln{stroke:#0E7BFF;stroke-width:2;stroke-dasharray:12 11;fill:none;stroke-dashoffset:900;animation:evDraw 2.6s .3s var(--ease) forwards}
.ev-deco .ln:nth-child(2){animation-delay:.55s}.ev-deco .ln:nth-child(3){animation-delay:.8s}
.ev-deco .sp{fill:#20A6FF;opacity:0;animation:evStripe .8s var(--ease) forwards,evBob 4s ease-in-out infinite}
.ev-deco .sp:nth-of-type(1){animation-delay:.9s,1.7s}.ev-deco .sp:nth-of-type(2){animation-delay:1.05s,2s}
.ev-deco .sp:nth-of-type(3){animation-delay:1.2s,2.3s}.ev-deco .sp:nth-of-type(4){animation-delay:1.35s,2.6s}
@keyframes evDraw{to{stroke-dashoffset:0}}
@keyframes evStripe{from{opacity:0;transform:translate(-26px,16px)}to{opacity:.6;transform:none}}
@keyframes evBob{0%,60%,100%{translate:0 0}30%{translate:0 -7px}}

/* ---------- hero ---------- */
.ev-hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(24px,4vw,56px);align-items:start}
.ev-poster{position:relative;align-self:start;perspective:1200px}
.ev-poster-in{position:relative;background:var(--paper);box-shadow:0 14px 0 var(--ink);overflow:hidden;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .5s var(--ease);
  clip-path:polygon(0 100%,20% 100%,20% 100%,40% 100%,40% 100%,60% 100%,60% 100%,80% 100%,80% 100%,100% 100%,100% 100%,0 100%);animation:evUnveil 1.5s .15s var(--ease) forwards}
/* the poster climbs into view one step at a time (12 points in every frame so it can tween) */
@keyframes evUnveil{
  0%{clip-path:polygon(0 100%,20% 100%,20% 100%,40% 100%,40% 100%,60% 100%,60% 100%,80% 100%,80% 100%,100% 100%,100% 100%,0 100%)}
  50%{clip-path:polygon(0 100%,20% 100%,20% 80%,40% 80%,40% 60%,60% 60%,60% 40%,80% 40%,80% 20%,100% 20%,100% 100%,0 100%)}
  100%{clip-path:polygon(0 0,20% 0,20% 0,40% 0,40% 0,60% 0,60% 0,80% 0,80% 0,100% 0,100% 100%,0 100%)}
}
.ev-poster-in.shown{clip-path:none;animation:none}
.ev-poster img{display:block;width:100%;height:auto;max-height:82vh;object-fit:contain;background:#C9CAC2}
.ev-poster .art{display:block;aspect-ratio:4/5}
.ev-poster .art svg{display:block;width:100%;height:100%}
.ev-step{position:absolute;left:0;top:0;background:var(--ink);color:var(--paper);padding:10px 18px;font-family:var(--title);display:flex;flex-direction:column;line-height:1;z-index:2}
.ev-step small{font-family:var(--label);font-weight:700;font-size:10px;letter-spacing:.3em}
.ev-step b{font-size:38px;font-weight:900;font-variant-numeric:tabular-nums}
.ev-head{display:flex;flex-direction:column;gap:18px;min-width:0}
.ev-head h1{font-family:var(--title);font-weight:900;font-size:clamp(34px,5vw,68px);line-height:.98;letter-spacing:-.01em;margin:0;overflow-wrap:anywhere}
.ev-tagline{font-size:clamp(17px,1.6vw,21px);margin:0;max-width:52ch}
.ev-badges{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ev-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--ink);border:2px solid var(--ink);margin:0}
.ev-facts div{background:var(--paper);padding:14px 16px;min-width:0}
.ev-facts dt{font-family:var(--label);font-weight:700;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--blue-deep)}
.ev-facts dd{margin:4px 0 0;font-weight:500;overflow-wrap:anywhere}
.ev-cta{display:flex;flex-wrap:wrap;gap:12px}
.ev-count{display:flex;gap:10px}
.ev-count div{background:var(--ink);color:var(--paper);padding:10px 14px;min-width:72px;text-align:center}
.ev-count b{display:block;font-family:var(--title);font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}
.ev-count span{font-family:var(--label);font-weight:700;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#A9A8A2}

/* headline words climb in; hero rows step in one after another */
.ev-head h1 .w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
.ev-head h1 .wi{display:inline-block;transform:translateY(110%) skewY(12deg);transform-origin:left bottom;animation:evWord .9s var(--ease) forwards;animation-delay:calc(.55s + var(--wi) * 90ms)}
@keyframes evWord{to{transform:none}}
.ev-head>*:not(h1){opacity:0;animation:evStep .7s var(--ease) forwards;animation-delay:calc(.7s + var(--k) * 110ms)}
@keyframes evStep{from{opacity:0;transform:translate(-28px,18px)}to{opacity:1;transform:none}}

/* ---------- body ---------- */
.ev-body{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:clamp(24px,4vw,56px);align-items:start}
.ev-col{display:flex;flex-direction:column;gap:44px;min-width:0}
.ev-sec h2{font-family:var(--title);font-weight:900;font-size:clamp(26px,3vw,38px);line-height:1;margin:0 0 18px}
.ev-desc p{margin:0 0 14px;max-width:64ch}
.ev-topics{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ev-topics li{display:flex;gap:12px;background:var(--paper);padding:14px 16px;margin-left:calc(var(--i,0) * clamp(0px,1.4vw,18px))}
.ev-topics li::before{content:"↑";color:var(--blue-deep);font-weight:700}
.ev-video{position:relative;aspect-ratio:16/9;background:var(--ink);box-shadow:0 12px 0 var(--ink)}
.ev-video iframe,.ev-video video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.ev-speakers{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.ev-speakers .spk{background:var(--paper);padding:14px}
.ev-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.ev-gallery a{display:block;aspect-ratio:4/3;overflow:hidden;background:#B9BAB2}
.ev-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.ev-gallery a:hover img{transform:scale(1.06)}
.ev-embed{width:100%;min-height:640px;border:2px solid var(--ink);background:#fff}

/* scroll reveal: sections climb in from the lower left like steps */
.js .rv{opacity:0;transform:translate(-34px,30px);transition:opacity .8s var(--ease),transform .8s var(--ease);transition-delay:calc(var(--d,0) * 80ms)}
.js .rv.in{opacity:1;transform:none}

/* ---------- side cards ---------- */
.ev-side{display:flex;flex-direction:column;gap:22px;position:sticky;top:96px;min-width:0}
.ev-card{background:var(--paper);box-shadow:0 10px 0 var(--ink);padding:22px;display:flex;flex-direction:column;gap:16px}
.ev-card h2{font-family:var(--title);font-weight:900;font-size:24px;margin:0;line-height:1}
.ev-card p{margin:0}
.ev-price{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ev-price div{border:2px solid var(--ink);padding:12px 14px}
.ev-price small{display:block;font-family:var(--label);font-weight:700;font-size:11px;letter-spacing:.18em;text-transform:uppercase}
.ev-price b{font-family:var(--title);font-size:28px;line-height:1.1}
.ev-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.ev-steps>li{display:flex;gap:14px;align-items:flex-start;padding:14px;border:2px solid rgba(11,11,11,.18);transition:border-color .3s,background .3s,transform .4s var(--ease)}
.ev-steps>li.now{border-color:var(--ink);background:#fff;transform:translateX(6px)}
.ev-steps>li.done{border-color:#17A34A}
.ev-steps .n{flex:0 0 32px;height:32px;display:grid;place-items:center;background:var(--ink);color:var(--paper);font-family:var(--title);font-weight:700}
.ev-steps>li.done .n{background:#17A34A}
.ev-steps .t{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.ev-steps .t b{font-family:var(--label);font-size:16px}
.ev-steps .t small{color:var(--ink-2);font-size:13.5px;line-height:1.4}
.ev-steps .btn{align-self:flex-start}
.ev-steps .check{font-size:14px}
.ev-ok{font-family:var(--label);font-weight:700;color:#17703A;display:flex;gap:8px;align-items:center}
.ev-share{display:flex;flex-wrap:wrap;gap:8px}
.ev-share a,.ev-share button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:2px solid var(--ink);background:transparent;color:var(--ink);font-family:var(--label);font-weight:700;font-size:14px;text-decoration:none;cursor:pointer;transition:background .2s,color .2s}
.ev-share a:hover,.ev-share button:hover{background:var(--ink);color:var(--paper)}
.ev-linkbox{display:flex;gap:8px}
.ev-linkbox input{flex:1;min-width:0;min-height:44px;padding:8px 12px;border:2px solid var(--ink);background:#fff;font:inherit;font-size:14px}

/* more sessions */
.ev-more h2{font-family:var(--title);font-weight:900;font-size:clamp(26px,3vw,38px);margin:0 0 20px}
.ev-more-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:22px}
.ev-more-grid a{display:flex;flex-direction:column;background:var(--paper);color:var(--ink);text-decoration:none;box-shadow:0 8px 0 var(--ink);transition:transform .35s var(--ease),box-shadow .35s}
.ev-more-grid a:hover{transform:translateY(-6px);box-shadow:0 14px 0 var(--blue)}
.ev-more-grid .im{aspect-ratio:4/3;background:#B9BAB2;overflow:hidden}
.ev-more-grid img{width:100%;height:100%;object-fit:cover}
.ev-more-grid .tx{padding:14px 16px}
.ev-more-grid small{font-family:var(--label);font-weight:700;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--blue-deep)}
.ev-more-grid b{display:block;font-family:var(--title);font-size:20px;line-height:1.1;margin-top:4px}

.ev-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:12px 20px;font-weight:600;z-index:300;box-shadow:6px 6px 0 var(--blue)}
.ev-sticky{display:none}

@media (max-width:980px){
  .ev-hero,.ev-body{grid-template-columns:1fr}
  .ev-side{position:static}
  .ev-poster{max-width:560px}
}
@media (max-width:560px){
  .ev-facts{grid-template-columns:1fr}
  .ev-count div{min-width:0;flex:1;padding:8px}
  .ev-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:rgba(196,197,190,.95);backdrop-filter:blur(10px);border-top:2px solid var(--ink)}
  .ev-sticky .btn{width:100%}
  .ev-main{padding-bottom:110px}
}
@media (prefers-reduced-motion:reduce){
  .ev-poster-in{clip-path:none;animation:none}
  .ev-head h1 .wi,.ev-head>*:not(h1){animation:none;transform:none;opacity:1}
  .ev-deco .ln{animation:none;stroke-dashoffset:0}.ev-deco .sp{animation:none;opacity:.6}
  .js .rv{opacity:1;transform:none;transition:none}
}
