/* runneth.com/chief-marketer — reading layer over the event deck. */
html,body{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#viewport{inset:auto;display:block;overflow:hidden}
#stage{position:absolute;left:0;top:0;transform-origin:0 0}
/* Demos only animate; taps on them must reach the deck. */
.slide iframe{pointer-events:none}

#web-ui{position:fixed;left:0;right:0;bottom:0;z-index:50;font-family:"Inter",-apple-system,sans-serif;color:#f6f6f6}
#web-caption strong{display:block;font-weight:600;color:#f6f6f6;font-size:1.1em;line-height:1.3}
#web-caption span{display:block;margin-top:4px}
#web-caption{position:fixed;left:50%;transform:translateX(-50%);width:min(860px,calc(100vw - 40px));margin:0;
  font-size:19px;line-height:1.5;color:#d8d8d8;text-align:center;text-wrap:pretty}
body.web-portrait #web-caption{text-align:left;font-size:17px}
#web-nav{display:flex;align-items:center;gap:6px;height:56px;padding:0 10px env(safe-area-inset-bottom);box-sizing:content-box}
#web-nav button,#web-home{flex:none;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:22px;
  background:transparent;color:inherit;cursor:pointer;padding:0}
@media (hover:hover){#web-nav button:hover,#web-home:hover{background:rgba(255,255,255,.08)}}
#web-nav button:disabled{opacity:.25;cursor:default;background:transparent}
#web-nav svg{width:22px;height:22px}
#web-home img{width:26px;height:26px;border-radius:6px}
#web-progress{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.14);overflow:hidden;margin:0 6px}
#web-bar{height:100%;width:0;background:#aee1ed;transition:width .3s ease}
#web-count{flex:none;min-width:52px;text-align:right;font:500 13px/1 "JetBrains Mono",monospace;color:#8a8a8a;letter-spacing:.04em}
/* Desktop: the bar stays hidden until the mouse moves (keys and clicks always work). Touch keeps it visible. */
@media (hover:hover){#web-ui{opacity:0;transition:opacity .3s}#web-ui:hover,body.web-active #web-ui{opacity:1}}

/* Cover: statue cut-out on the right, title left, rolling strip of upcoming slides. */
.walk-up-slide{background:#f6f6f6 url('event-ribbon-background.webp') center/cover!important}
.web-cover{position:absolute;inset:0}
.wc-statue{position:absolute;right:-330px;bottom:0;height:1190px;width:auto;z-index:3;pointer-events:none;user-select:none}
.wc-copy{position:absolute;left:120px;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;z-index:2}
.wc-title{font-family:Astra Sans,"Inter",sans-serif;font-weight:700;font-size:176px;line-height:1;letter-spacing:-.04em;color:#000;white-space:nowrap}
.wc-sub{margin-top:30px;font-family:Astra Sans,"Inter",sans-serif;font-weight:600;font-size:122px;line-height:1;letter-spacing:-.04em;color:#111}
/* The gallery only appears in the share image (tools/build-og.cjs turns it on). */
.wc-strip{display:none;position:absolute;left:120px;right:0;bottom:70px;height:230px;overflow:hidden;z-index:1;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 36px);mask-image:linear-gradient(90deg,transparent 0,#000 36px)}
.wc-track{display:flex;width:max-content;height:100%;align-items:center;animation:wc-roll 60s linear infinite}
.wc-dup{display:contents}
.wc-strip:hover .wc-track{animation-play-state:paused}
@keyframes wc-roll{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.wc-track{animation:none}}
.wc-thumb{flex:none;width:352px;height:198px;margin-right:28px;padding:0;border:0;border-radius:14px;overflow:hidden;cursor:pointer;
  background:#fff;box-shadow:0 14px 34px rgba(0,0,0,.14),0 0 0 1px rgba(0,0,0,.06);transition:transform .2s ease}
.wc-thumb:hover{transform:translateY(-6px)}
.wc-thumb img{display:block;width:100%;height:100%;object-fit:cover}


/* Designed-in slide titles: centered headline on top; web.js fits the slide's art into the space below. */
.web-slide-title{position:absolute;left:120px;right:120px;top:96px;z-index:5;margin:0;text-align:center;
  font-family:Astra Sans,"Inter",sans-serif;font-weight:700;font-size:112px;line-height:1;letter-spacing:-.04em;color:#000;text-wrap:balance}
.web-slide-art{position:absolute;inset:0;transform-origin:0 0}
/* Headline swap on the first click (slide 5). Both lines share one grid cell so the height doesn't jump. */
.web-title-swap .web-slide-title{display:grid}
.web-title-swap .web-slide-title>span{grid-area:1/1;transition:opacity .45s ease}
.web-title-swap .t-after,.web-title-swap.built .t-before{opacity:0}
.web-title-swap.built .t-after{opacity:1}
/* After-click line is the setup for "super IC", not a second hero: smaller, deck gray (#6b6b6b, as on slide 9) with black emphasis. */
.web-title-swap .t-after{align-self:center;font-size:84px;color:#6b6b6b}
.web-title-swap .t-after b{font-weight:inherit;color:#000}
/* Slide 5: the headline now says "insane impact", so drop the small line under super IC. */
.web-titled[data-n="e2c"] .a4-impact p{display:none}
/* Slide 2: keep the ribbon full-bleed behind the fitted job cards. */
.web-titled[data-n="e1"]{background:#f6f6f6 url('event-ribbon-background.webp') center/cover}
.web-titled[data-n="e1"] .jb-wrap{background:none}
/* Off-screen measuring copy used by web.js (final state, no motion). */
.web-measure,.web-measure *{transition:none!important;animation:none!important}
.web-measure{visibility:hidden!important;pointer-events:none}
.web-titled[data-n="e2c"] .a4-impact{top:257px}
/* Slide 21: title appears once the three channels merge. */
.web-merge-title{position:absolute;left:0;right:0;top:150px;z-index:5;margin:0;text-align:center;
  font-family:Astra Sans,"Inter",sans-serif;font-weight:700;font-size:112px;line-height:1;letter-spacing:-.04em;color:#000;
  opacity:0;transform:translateY(16px);transition:opacity .5s ease .5s,transform .7s cubic-bezier(.22,.75,.2,1) .5s}
.ast-one-channel.built .web-merge-title{opacity:1;transform:none}
/* Slide 22: headline crossfades to the skills line on the extra click. */
.web-star-title{display:grid}
.web-star-title>span{grid-area:1/1;transition:opacity .45s ease}
.web-star-title .t-b,.web-star-title .t-c,.slide:has(.web-skill-step.on) .web-star-title .t-a,.slide:has(.web-all-three.on) .web-star-title .t-b{opacity:0}
.slide:has(.web-skill-step.on) .web-star-title .t-b,.slide:has(.web-all-three.on) .web-star-title .t-c{opacity:1}
.slide:has(.web-all-three.on) .web-star-title .t-b{opacity:0}
/* Last slide (Meet Runneth): the deck's one CTA, in the deck's sky blue (matches the skill bullets). */
.web-cta{display:inline-flex;align-items:center;gap:16px;margin-top:64px;padding:26px 46px;border-radius:999px;
  background:#aee1ed;color:#000;text-decoration:none;font-family:Astra Sans,"Inter",sans-serif;font-weight:700;font-size:40px;letter-spacing:-.02em;
  transition:transform .2s ease,background .2s ease}
.web-cta:hover{background:#c8ecf4;transform:translateY(-3px)}
/* No gradient underlines on the slide 29/30 headlines (web). */
.astra[data-n="v27"] h1>span,.astra[data-n="v22"] .fw-title>span{background:none!important;padding-bottom:0!important}
.astra[data-n="v22"] .fw-title>span{color:inherit!important}
/* Cover: where and when the talk was given. Hidden in the share image (its title says it). */
.wc-event{position:absolute;left:120px;bottom:84px;z-index:4;margin:0;font-family:"JetBrains Mono",monospace;font-weight:500;
  font-size:30px;letter-spacing:.14em;text-transform:uppercase;color:#4a4a4a}
/* Runneth wordmark: quiet watermark bottom-right; stronger, top-left on the cover. */
.web-mark{position:absolute;right:56px;bottom:44px;z-index:20;display:block;width:104px;color:rgba(0,0,0,.28);pointer-events:none}
.web-mark svg{display:block;width:100%;height:auto}
.web-mark-light{color:rgba(255,255,255,.32)}
.web-mark-cover{left:120px;right:auto;top:84px;bottom:auto;width:150px;color:rgba(0,0,0,.8)}
@media (hover:hover){#web-nav{background:linear-gradient(transparent,rgba(0,0,0,.55))}}
/* Phone: full-size Learn more below the last slide; the in-slide one hides. */
#web-cta-out{position:fixed;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:10px;padding:16px 30px;border-radius:999px;
  background:#aee1ed;color:#000;text-decoration:none;font:700 19px/1 Astra Sans,"Inter",sans-serif;letter-spacing:-.01em;white-space:nowrap}
#web-cta-out[hidden]{display:none}
body.web-small .web-cta{visibility:hidden}

/* Plain page areas count as tappable on iOS. */
#viewport{cursor:pointer}
/* Phone landscape: arrows in the side margins, thin progress line, counter top-right. */
body.web-land #web-nav{height:0;padding:0}
body.web-land #web-prev,body.web-land #web-next{position:fixed;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:24px;background:rgba(255,255,255,.08);z-index:60}
body.web-land #web-prev{left:max(8px,env(safe-area-inset-left))}
body.web-land #web-next{right:max(8px,env(safe-area-inset-right))}
body.web-land #web-progress{position:fixed;left:0;right:0;bottom:0;margin:0;height:3px;border-radius:0;z-index:60}
body.web-land #web-count{position:fixed;top:max(10px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:60;min-width:0;font-size:11px}
/* Cover hint (phone, portrait, first visit). */
#web-hint{position:fixed;left:0;right:0;margin:0;text-align:center;font:600 18px/1.3 Astra Sans,"Inter",sans-serif;color:#f6f6f6;letter-spacing:-.01em;pointer-events:none;animation:web-hint 2.4s ease-in-out infinite}
#web-hint small{display:block;margin-top:8px;font:500 13px/1.3 "JetBrains Mono",monospace;letter-spacing:.06em;color:#8a8a8a;animation:none}
#web-hint[hidden]{display:none}
@keyframes web-hint{50%{opacity:.55}}
