/* Talks & workshops page: the stage photo, the recap poster, and the chapter
   visuals. Builds on case-study.css; the accent is the talk deck's green. */

.cs.t-talk{--sage:#3f8f5c;--sage-d:#2a6a42;--tint:#dcebe0;--tint-2:#ebf4ee}

/* ---- hero: the photo from the night ---- */
.tk-photo{position:relative;margin:0;border-radius:24px;overflow:hidden;background:#1f2a3c;box-shadow:0 30px 60px -30px rgba(23,23,21,.45)}
.tk-photo img{display:block;width:100%;height:auto;aspect-ratio:704/476;object-fit:cover}
.tk-photo figcaption{
  position:absolute;left:0;right:0;bottom:0;padding:40px 20px 14px;margin:0;
  font-family:"JetBrains Mono",monospace;font-size:11px;color:rgba(246,245,241,.85);
  background:linear-gradient(to top,rgba(15,20,30,.78),rgba(15,20,30,0));
}
.tk-live{
  position:absolute;top:14px;left:14px;display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;
  font-family:"JetBrains Mono",monospace;font-size:10.5px;color:#f6f5f1;background:rgba(15,20,30,.62);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
.tk-live::before{content:"";width:7px;height:7px;border-radius:50%;background:#3ecf75;box-shadow:0 0 0 3px rgba(62,207,117,.25)}

/* ---- ch 1: the recap poster ---- */
.tk-poster-wrap{display:flex;justify-content:center;padding:8px 0}
.tk-poster{
  --g:#3ecf75;
  position:relative;width:min(100%,460px);min-height:560px;padding:32px 32px 26px;border-radius:14px;
  display:flex;flex-direction:column;gap:16px;overflow:hidden;
  color:#eef1f6;background:
    radial-gradient(120% 70% at 100% 0%,rgba(62,207,117,.16),transparent 60%),
    radial-gradient(90% 60% at 0% 100%,rgba(93,113,150,.35),transparent 60%),
    #1f2a3c;
  box-shadow:0 2px 0 rgba(23,23,21,.08),0 40px 70px -30px rgba(23,23,21,.55);
  transform:rotate(-1.4deg);transition:transform .5s cubic-bezier(.2,.7,.3,1);
}
.tk-poster:hover{transform:rotate(0)}
/* a strip of tape holding it up */
.tk-poster::before{
  content:"";position:absolute;top:-6px;left:50%;width:92px;height:24px;transform:translateX(-50%) rotate(2deg);
  background:rgba(246,245,241,.55);box-shadow:0 1px 2px rgba(0,0,0,.08);
}
.tk-top{display:flex;justify-content:space-between;gap:12px;font-family:"JetBrains Mono",monospace;font-size:10px;letter-spacing:.04em;color:rgba(238,241,246,.6);text-transform:uppercase}
.tk-badge{align-self:flex-start;padding:5px 10px;border-radius:4px;background:var(--g);color:#10261a;font-family:"JetBrains Mono",monospace;font-size:10.5px;font-weight:500;letter-spacing:.06em;text-transform:uppercase}
.tk-title{margin:0;font-size:clamp(30px,3.2vw,40px);line-height:.98;font-weight:500;letter-spacing:-.035em;color:#fff;text-wrap:balance}
.tk-title em{font-style:normal;color:var(--g)}
.tk-sub{margin:-4px 0 0;font-size:13.5px;line-height:1.45;color:rgba(238,241,246,.72);font-weight:300}
.tk-prog{list-style:none;margin:2px 0 0;padding:12px 0 0;border-top:1px solid rgba(238,241,246,.14);display:grid;gap:7px;counter-reset:tk}
.tk-prog li{display:grid;grid-template-columns:22px 1fr;gap:4px;font-size:12.5px;line-height:1.35;color:rgba(238,241,246,.66);font-weight:300;counter-increment:tk}
.tk-prog li::before{content:counter(tk,decimal-leading-zero);font-family:"JetBrains Mono",monospace;font-size:10px;color:var(--g);padding-top:2px}
.tk-prog b{color:#fff;font-weight:500}
.tk-pipe{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:auto;font-family:"JetBrains Mono",monospace;font-size:10px;color:rgba(238,241,246,.55)}
.tk-pipe span{padding:4px 7px;border-radius:5px;background:rgba(238,241,246,.1);color:#eef1f6}
.tk-pipe i{font-style:normal;color:var(--g)}
.tk-by{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding-top:12px;border-top:1px solid rgba(238,241,246,.14)}
.tk-by b{display:block;font-size:15px;font-weight:500;color:#fff;letter-spacing:-.01em}
.tk-by small{white-space:nowrap;font-family:"JetBrains Mono",monospace;font-size:10px;color:rgba(238,241,246,.55)}
.tk-by .tk-room{text-align:right}
.tk-poster-note{margin:16px 0 0;text-align:center;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--mute)}

/* ---- ch 2: one prompt vs a workflow ---- */
.shift{display:flex;flex-direction:column;justify-content:center;gap:30px;padding:30px 28px 46px}
.sh-row small{display:block;margin-bottom:10px;font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--soft)}
.sh-row small em{font-style:normal;color:var(--mute)}
.sh-row ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.sh-row li{padding:8px 11px;border-radius:10px;background:#fbfaf6;font-size:13px;color:var(--ink);box-shadow:0 6px 18px -12px rgba(23,23,21,.4)}
.sh-row li.ag{background:var(--sage-d);color:#f6f5f1}
.sh-row li.ar{padding:0;background:none;box-shadow:none;color:var(--mute)}
.sh-row li.more{background:none;box-shadow:none;color:var(--sage-d);font-weight:500}
.cs-vis.in .sh-flow li{animation:sh-in .5s both;animation-delay:calc(var(--i) * .16s)}
@keyframes sh-in{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}

/* ---- ch 3: the principles ---- */
.princ{display:grid;grid-template-columns:1fr;gap:10px;padding:22px;height:auto;min-height:320px;align-content:center}
.princ article{padding:14px 16px;border-radius:14px;background:#fbfaf6;box-shadow:0 8px 22px -16px rgba(23,23,21,.4)}
.princ h3{margin:0 0 4px;font-size:16px;font-weight:500;letter-spacing:-.01em;color:var(--ink)}
.princ h3 span{font-family:"JetBrains Mono",monospace;font-size:11px;font-weight:400;color:var(--sage-d);margin-right:8px}
.princ p{margin:0;font-size:13.5px;line-height:1.5;color:var(--soft);font-weight:300}
.cs-vis.in.princ article{animation:sh-in .55s both;animation-delay:calc(var(--i) * .2s)}

/* ---- ch 4: the live n8n build ---- */
.n8n{display:flex;flex-direction:column;justify-content:center;padding:26px 22px 46px;height:auto;min-height:320px}
.n8n ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;position:relative}
.n8n ol::before{content:"";position:absolute;left:8%;right:8%;top:26px;border-top:1.5px dashed rgba(42,106,66,.35)}
.n8n li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}
.n8n .nd{
  display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#fbfaf6;
  box-shadow:0 8px 20px -12px rgba(23,23,21,.45);font-family:"JetBrains Mono",monospace;font-size:10px;color:var(--sage-d)
}
.n8n li.ag .nd{background:var(--sage-d);color:#f6f5f1}
.n8n li > div{display:flex;flex-direction:column;gap:3px}
.n8n b{font-size:12.5px;font-weight:500;line-height:1.25;color:var(--ink)}
.n8n small{font-family:"JetBrains Mono",monospace;font-size:10px;line-height:1.35;color:var(--mute)}
.cs-vis.in.n8n .nd{animation:n8n-run 6s ease-in-out infinite;animation-delay:calc(var(--i) * .9s)}
@keyframes n8n-run{0%,12%,100%{box-shadow:0 8px 20px -12px rgba(23,23,21,.45)} 6%{box-shadow:0 8px 20px -12px rgba(23,23,21,.45),0 0 0 7px rgba(62,207,117,.28)}}

/* ---- ch 5: workshops at wix ---- */
.shops{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:22px;height:auto;min-height:320px;align-content:center}
.shops li{list-style:none;padding:16px;border-radius:14px;background:#fbfaf6;box-shadow:0 8px 22px -16px rgba(23,23,21,.4)}
.shops ul{display:contents}
.shops small{display:block;margin-bottom:6px;font-family:"JetBrains Mono",monospace;font-size:10.5px;color:var(--sage-d)}
.shops b{font-size:15px;font-weight:500;line-height:1.3;letter-spacing:-.01em;color:var(--ink)}
.cs-vis.in.shops li{animation:sh-in .55s both;animation-delay:calc(var(--i) * .15s)}

/* ---- ch 6: ten percent ---- */
.tenp{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;padding:30px 32px 46px;background:#1f2a3c}
.tenp b{font-size:clamp(72px,9vw,120px);line-height:.9;font-weight:500;letter-spacing:-.05em;color:#3ecf75}
.tenp span{max-width:16em;font-size:18px;line-height:1.4;color:rgba(238,241,246,.8);font-weight:300}
.tenp figcaption{color:rgba(238,241,246,.45) !important}
.tk-lessons{margin:22px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.tk-lessons li{position:relative;padding-left:18px;font-size:15px;line-height:1.5;color:var(--soft);font-weight:300}
.tk-lessons li::before{content:"✓";position:absolute;left:0;color:var(--sage)}

@media (max-width:600px){
  .tk-poster{padding:24px 22px 20px;gap:12px;min-height:0}
  .tk-prog li{font-size:11.5px}
  .n8n ol{grid-template-columns:1fr;gap:12px}
  .n8n ol::before{left:26px;right:auto;top:20px;bottom:20px;border-top:0;border-left:1.5px dashed rgba(42,106,66,.35)}
  .n8n li{flex-direction:row;text-align:left;gap:12px}
  .shops{grid-template-columns:1fr}
}
@media (prefers-reduced-motion: reduce){
  .tk-poster{transform:none}
}
