/* for-theater.html: "Kinematic for Theater". Written by tools/gen_for_theater.py; edit it there. */
.th-hero{position:relative;padding-block:calc(var(--barh) + var(--navh) + 40px) 56px;overflow:hidden}
.th-hero canvas{position:absolute;inset:0;width:100%;height:100%}
.th-hero .wrap{position:relative}
.th-top{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:20px clamp(28px,4vw,64px);align-items:end}
.th-hero .crumb b{color:var(--accent);font-weight:400}
.th-hero h1{font-size:clamp(40px,5.2vw,84px);line-height:.95;letter-spacing:-.05em;max-width:820px}
.th-hero h1 i{font-style:normal;background:linear-gradient(90deg,var(--accent),var(--accent2) 70%);-webkit-background-clip:text;background-clip:text;color:transparent}
.th-hero .sub{font-size:clamp(17px,1.3vw,20px);line-height:1.5;max-width:520px;color:var(--mute)}
.th-side{display:flex;flex-direction:column;gap:18px;min-width:0}
.th-side .fd-who{margin:0}
.th-side .ctas{margin:0}
.th-stage{margin-top:clamp(28px,3.4vw,44px)}
.th-fig{position:relative;margin:0;border:1px solid var(--line-2);border-radius:8px;overflow:hidden;background:#000;min-width:0}
.th-fig video,.th-fig img{width:100%;height:100%;object-fit:cover;display:block}
.th-fig figcaption{position:absolute;left:10px;top:10px;font-family:var(--mono);font-size:10.5px;background:rgba(6,8,11,.84);color:var(--fg);padding:3px 7px;border-radius:2px;max-width:calc(100% - 20px)}
.th-fig.hv{aspect-ratio:2/1;box-shadow:0 30px 90px rgba(80,40,150,.32),0 20px 50px rgba(0,0,0,.6)}
.th-fig.hv::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;z-index:1;background:linear-gradient(90deg,var(--accent),var(--accent2))}
.th-fig.light{background:#e9ecf0}
.th-fig.light img{object-fit:contain}
.th-under{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 28px;margin-top:14px}
.th-net{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.th-net > .mono{color:var(--dim)}
.th-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--mute)}
.th-meta span{display:flex;align-items:center;gap:8px}
.th-meta i{width:6px;height:6px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent2))}

/* the jobs */
.th-run{list-style:none;position:relative;display:grid;gap:0}
.th-run::before{content:"";position:absolute;left:21px;top:8px;bottom:8px;width:2px;background:linear-gradient(180deg,var(--create),var(--edit) 22%,var(--simulate) 42%,var(--perform) 62%,var(--play) 82%,var(--perform));opacity:.55}
.th-step{display:grid;grid-template-columns:150px minmax(0,7fr) minmax(0,5fr);gap:clamp(20px,3vw,44px);align-items:center;padding:28px 0;border-top:1px solid var(--line)}
.th-step:first-child{border-top:0;padding-top:4px}
.th-ph{align-self:start;display:flex;flex-direction:column;gap:6px;padding-left:48px;position:relative;padding-top:6px}
.th-ph::before{content:"";position:absolute;left:14px;top:9px;width:16px;height:16px;border-radius:50%;background:var(--ink);border:2px solid var(--c);box-shadow:0 0 14px color-mix(in srgb,var(--c) 60%,transparent)}
.th-ph .n{font-size:13px;color:var(--c)}
.th-ph .w{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--mute)}
.th-step .th-fig{aspect-ratio:16/10}
.th-tx{display:flex;flex-direction:column;gap:12px;min-width:0}
.th-tx h3{font-size:clamp(25px,2.2vw,34px);letter-spacing:-.035em;line-height:1.05}
.th-tx p,.th-tx2 p{color:var(--mute);font-size:clamp(16px,1.15vw,17.5px);line-height:1.55}
.th-go{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;font-size:15px;color:var(--fg);border-bottom:1px solid var(--line-2);padding-bottom:2px;transition:border-color .2s}
.th-go span{color:var(--accent);font-family:var(--mono)}
.th-go:hover{border-color:var(--accent)}
.th-next{display:flex;align-items:center;gap:14px;margin-top:8px;padding:18px 0 0 14px;border-top:1px solid var(--line);color:var(--mute)}
.th-next span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:2px solid var(--accent);color:var(--accent);font-size:9px;margin-right:16px}
.th-next b{color:var(--accent);font-weight:400}
.th-next:hover{color:var(--fg)}

/* showcase bands */
.th-band{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(28px,4vw,64px);align-items:center;padding-block:clamp(56px,6vw,96px);border-top:1px solid var(--line);scroll-margin-top:calc(var(--barh) + var(--navh) + 70px)}
.th-band.wide{display:block}
.th-band .eyebrow{margin:0 0 14px;color:var(--accent)}
.th-band h2{font-size:clamp(34px,3.7vw,58px);line-height:1;letter-spacing:-.045em}
.th-wtop{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:18px clamp(28px,4vw,64px);align-items:end;margin-bottom:30px}
.th-wtop > div:last-child{display:flex;flex-direction:column;gap:16px}
.th-wtop p{color:var(--mute);font-size:clamp(16.5px,1.2vw,18px);line-height:1.55;max-width:660px}
.th-links{display:flex;flex-wrap:wrap;gap:12px 24px}
.th-three{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;aspect-ratio:2.25/1}
.th-three .big{grid-row:1/3}
.th-three .th-fig{height:100%}
.th-mos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,2.2fr) minmax(0,1fr);gap:10px;aspect-ratio:4/3;min-width:0}
.th-mos .big{grid-column:1/-1}
.th-mos .th-fig{height:100%}
.th-mos .sm figcaption,.th-three .sm figcaption{font-size:9.5px;left:6px;top:6px}
.th-tx2{display:flex;flex-direction:column;gap:16px;min-width:0}
.th-fig.booth{background:#121018}
.th-fig.booth img{object-fit:contain;height:auto}
.th-fig.booth figcaption{position:static;max-width:none;background:none;color:var(--dim);border-top:1px solid var(--line);padding:10px 14px;font-size:11px;border-radius:0}
.th-fig.keys{background:#1d1d2d}
.th-fig.keys img{object-fit:contain}
.th-fig.keys figcaption{top:auto;left:auto;bottom:10px;right:10px}
.th-rfs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.th-rf{border:1px solid var(--line);border-radius:8px;background:var(--ink-2);padding:20px 20px 18px;display:flex;flex-direction:column;gap:10px;min-width:0}
.th-rf h3{font-size:19px;letter-spacing:-.02em;line-height:1.2}
.th-rf p{color:var(--mute);font-size:14.5px;line-height:1.5;flex:1}
.th-rf .code pre{font-size:12px;padding:12px 14px;white-space:pre-wrap}
.th-rf .code .tk{white-space:nowrap}
.th-rf .code .bar{height:28px}

/* how it fits */
.th-fits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.th-fit{border:1px solid var(--line);border-radius:8px;background:var(--ink-2);padding:20px 20px 10px;min-width:0;position:relative;overflow:hidden}
.th-fit::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--c)}
.th-fit h3{display:flex;align-items:center;gap:10px;font-size:20px;letter-spacing:-.02em;margin-bottom:8px}
.th-fit h3 i{width:8px;height:8px;border-radius:50%;background:var(--c)}
.th-fit ul{list-style:none}
.th-fit li{display:flex;flex-direction:column;gap:3px;padding:11px 0;border-top:1px solid var(--line)}
.th-fit li div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.th-fit li b{font-family:var(--display);font-weight:600;font-size:15.5px;letter-spacing:-.01em}
.th-fit li em{font-style:normal;font-family:var(--mono);font-size:10.5px;color:var(--c);white-space:nowrap}
.th-fit li > span{color:var(--mute);font-size:14px;line-height:1.45}
.th-fromrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.th-from{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line-2);border-radius:8px;padding:20px 22px;background:linear-gradient(135deg,color-mix(in srgb,var(--c) 12%,transparent),transparent 60%);transition:border-color .2s,transform .2s}
.th-from:hover{border-color:var(--c);transform:translateY(-2px)}
.th-from .mono{color:var(--dim)}
.th-from b{font-family:var(--display);font-size:26px;letter-spacing:-.03em;line-height:1}
.th-from p{color:var(--mute);font-size:15px;flex:1}
.th-from em{font-style:normal;font-size:14.5px;color:var(--fg)}

/* where to start */
.th-h3{font-size:clamp(20px,1.6vw,24px);letter-spacing:-.02em;margin:0 0 16px}
.th-h3 + .th-learns,.th-h3 + .th-demos{margin-bottom:40px}
.th-learns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.th-learn{display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);border:1px solid var(--line-2);border-radius:8px;background:var(--ink-2);overflow:hidden;min-width:0;transition:border-color .2s,transform .2s}
.th-learn:hover{border-color:var(--accent);transform:translateY(-2px)}
.th-learn .pic{display:block;background:#000;min-height:116px}
.th-learn .pic img{width:100%;height:100%;object-fit:cover}
.th-learn .t{display:flex;flex-direction:column;gap:8px;padding:16px 16px 18px;justify-content:center}
.th-learn em{font-style:normal;color:var(--accent);font-size:11px}
.th-learn b{font-family:var(--display);font-size:18px;letter-spacing:-.02em;line-height:1.2}
.th-demos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.th-demo{display:flex;flex-direction:column;border:1px solid var(--line-2);border-radius:8px;background:var(--ink-2);overflow:hidden;min-width:0;transition:border-color .2s,transform .2s}
.th-demo:hover{border-color:var(--accent);transform:translateY(-2px)}
.th-demo .pic{display:block;aspect-ratio:16/9;background:#000;overflow:hidden}
.th-demo .pic img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.th-demo:hover .pic img{transform:scale(1.04)}
.th-demo .t{display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px;flex:1}
.th-demo b{font-family:var(--display);font-size:19px;letter-spacing:-.02em}
.th-demo em{font-style:normal;color:var(--mute);font-size:14px;line-height:1.45}
.th-demo .go{margin-top:auto;padding-top:8px;display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:11.5px;color:var(--fg)}
.th-demo .go i{width:0;height:0;border-left:7px solid var(--accent);border-top:4.5px solid transparent;border-bottom:4.5px solid transparent}
.th-more{display:flex;flex-wrap:wrap;gap:12px 28px}

/* gaps */
.th-gapsec,.th-fitsec,.th-startsec,.th-endsec{border-top:1px solid var(--line)}
.th-gaps{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(28px,4vw,64px);align-items:start}
.th-gaps .lede{margin-top:18px}
.th-gaps .lede a{color:var(--fg);border-bottom:1px solid var(--line-2)}
.th-gaps .lede a:hover{border-color:var(--accent)}
.th-gaps ul{list-style:none;border-top:1px solid var(--line-2)}
.th-gaps li{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:6px 24px;padding:15px 0;border-bottom:1px solid var(--line)}
.th-gaps li b{font-family:var(--display);font-weight:600;font-size:18px;letter-spacing:-.02em;display:flex;gap:10px;align-items:baseline}
.th-gaps li b::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;border:1.5px solid var(--dim);transform:translateY(-1px)}
.th-gaps li span{color:var(--mute);font-size:15.5px;line-height:1.5}

/* the call to action */
.th-end{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px 40px;padding:clamp(28px,4vw,48px);border:1px solid var(--line-2);border-radius:10px;background:radial-gradient(120% 140% at 0% 0%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 55%),radial-gradient(120% 140% at 100% 100%,color-mix(in srgb,var(--accent2) 20%,transparent),transparent 55%),var(--ink-2)}
.th-end h2{font-size:clamp(30px,3.4vw,52px);line-height:1;letter-spacing:-.045em;max-width:620px}
.th-end p{color:var(--mute);margin-top:12px;max-width:560px;font-size:clamp(16px,1.2vw,18px)}
.th-endb{display:flex;flex-wrap:wrap;gap:12px}
.th-endmore{margin-top:28px}

@media (min-width:1081px){
  #sim{align-items:start}
  #sim .th-mos{position:sticky;top:calc(var(--barh) + var(--navh) + 84px)}
  .th-step:nth-child(even){grid-template-columns:150px minmax(0,5fr) minmax(0,7fr)}
  .th-step:nth-child(even) .th-fig{order:2}
  .th-step:nth-child(even) .th-tx{order:1}
}
@media (max-width:1180px){
  .th-fits{grid-template-columns:repeat(2,minmax(0,1fr))}
  .th-learns{grid-template-columns:repeat(2,minmax(0,1fr))}
  .th-rfs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1080px){
  .th-top,.th-band,.th-wtop,.th-gaps{grid-template-columns:1fr}
  .th-step,.th-step:nth-child(even){grid-template-columns:minmax(0,1fr);gap:14px;padding-left:48px;position:relative}
  .th-ph{flex-direction:row;align-items:baseline;gap:12px;padding:0;position:static}
  .th-step .th-ph::before{left:14px;top:30px}
  .th-step:first-child .th-ph::before{top:6px}
  .th-fromrow{grid-template-columns:1fr 1fr}
  .th-fromrow .ww{grid-column:1/-1}
  .th-demos{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .th-fig.hv{aspect-ratio:16/10}
  .th-fig.hv video{object-position:50% 40%}
  .th-run::before{left:8px}
  .th-step{padding-left:34px}
  .th-step .th-ph::before{left:2px;width:14px;height:14px}
  .th-next{padding-left:0}
  .th-next span{margin-right:4px}
  .th-three{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;aspect-ratio:auto}
  .th-three .big{grid-column:1/-1;grid-row:auto;aspect-ratio:16/10}
  .th-three .sm{aspect-ratio:4/3}
  .th-mos{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;aspect-ratio:auto}
  .th-mos .big{aspect-ratio:16/10}
  .th-mos .sm{aspect-ratio:4/3}
  .th-mos .sm:last-child{grid-column:1/-1;aspect-ratio:16/9}
  .th-rfs,.th-fits,.th-fromrow,.th-learns,.th-demos{grid-template-columns:1fr}
  .th-gaps li{grid-template-columns:1fr}
  .th-learn{grid-template-columns:38% minmax(0,1fr)}
  .th-learn b{font-size:16.5px}
  .th-demo{flex-direction:row}
  .th-demo .pic{flex:0 0 38%;aspect-ratio:auto;min-height:118px}
  .th-demo .t{padding:12px 14px 13px;gap:4px}
  .th-demo b{font-size:17px}
  .th-demo em{font-size:13px}
  .th-end{flex-direction:column;align-items:flex-start}
}
